Skip to content

Instantly share code, notes, and snippets.

View vikdotdev's full-sized avatar
📎

Viktor Habchak vikdotdev

📎
View GitHub Profile
rails db:reset
Connecting to redis: redis://localhost:6379/0, namespace: default
Dropped database 'discount_web_development'
Dropped database 'discount_web_test'
Created database 'discount_web_development'
Created database 'discount_web_test'
Create admin
Users added
Posts added
Feedbacks added
vik@localhost ~/Downloads psql discount_web_staging < sqlfile.sql
psql: /usr/pgsql-12/lib/libpq.so.5: no version information available (required by psql)
psql: /usr/pgsql-12/lib/libpq.so.5: no version information available (required by psql)
SET
SET
SET
SET
SET
set_config
------------
#cocoon.field.mb-5
= f.simple_fields_for :photos do |photo|
= render 'account/contributions/photo_fields', f: photo
.links
= link_to_add_association 'Додати фото', f, :photos
.d-flex.align-items-center.mb-3
= f.submit class: 'btn btn-default mr-3 mb-0'
= link_to 'Скасувати', [:account, contribution.hospital, contribution], class: 'hospital-cancel'
# /account/contributions/_photo_fields.html.slim
"
<!DOCTYPE html>
<html class=\ "loading\" data-textdirection=\ "ltr\" lang=\ "en\">
<head>
<meta content=\ "text/html; charset=UTF-8\" http-equiv=\ "Content-Type\" />
<meta content=\ "IE=edge\" http-equiv=\ "X-UA-Compatible\" />
<meta content=\ "width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui\" name=\ "viewport\" />
<meta content=\ "width=device-width, initial-scale=1\" name=\ "viewport\" />
<link href=\ "https://fonts.googleapis.com/css?family=Rubik:300,400,500,600%7CIBM+Plex+Sans:300,400,500,600,700\" rel=\ "stylesheet\" />
vik@core ~/repos/remote-flow [presentation-thumbnails] rspec
........................................FF......................................................................................................F............................................................................................F........................
Failures:
1) Account::ContentsController when a user tries to GET #index sort by descending id
Failure/Error: expect(assigns(:contents).to_a).to eq Content.all.order('id DESC').to_a
expected: [#<Presentation id: 417, type: "Presentation", video_url: nil, created_at: "2020-01-05 17:32:40", upd...t: "2020-01-05 13:32:57", organization_id: 1959, title: "Fine Art", body: nil, file: "example.pdf">]
got: [#<Presentation id: 417, type: "Presentation", video_url: nil, created_at: "2020-01-05 17:32:40", upd...pdated_at: "2020-01-05 17:32:40", organization_id: 2057, title: "Danialberg", body: nil, file: nil>]
Started POST "/users" for ::1 at 2019-12-12 15:11:29 +0200
Processing by Users::RegistrationsController#create as HTML
Parameters: {"authenticity_token"=>"gxR/P3BjS4PmHHsItH9hrJOjjwN1H1XJgKzk+s4E7fFnEyxT/5dW5iJ9DvnXcu0S1aJJrpe0b3mZKMU2Y38Skg==", "user"=>{"organization_attributes"=>{"name"=>"name"}, "email"=>"tests@mail", "first_name"=>"adsfasdf", "last_name"=>"asdfsadf", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
(0.3ms) BEGIN
↳ app/controllers/users/registrations_controller.rb:15:in `create'
User Exists? (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "tests@mail"], ["LIMIT", 1]]
↳ app/controllers/users/registrations_controller.rb:15:in `create'
Organization Exists? (0.4ms) SELECT 1 AS one FROM "organizations" WHERE "organizations"."name" = $1 LIMIT $2 [["name", "name"], ["LIMIT", 1]]
↳ app/controllers/users/registrations_controller.rb:15:in `create'
(0.2ms) ROLLBACK
vik@core ~/repos/remote-flow [user-invite *]
vik@core ~/repos/remote-flow [user-invite *]
vik@core ~/repos/remote-flow [user-invite *]
vik@core ~/repos/remote-flow [user-invite *]
vik@core ~/repos/remote-flow [user-invite *]
vik@core ~/repos/remote-flow [user-invite *]
vik@core ~/repos/remote-flow [user-invite *]
vik@core ~/repos/remote-flow [user-invite *]
vik@core ~/repos/remote-flow [user-invite *]
vik@core ~/repos/remote-flow [user-invite *]
{
"name": "web-boilerplate",
"version": "1.0.0",
"description": "A simple boilerplate to jumpstart simple front-end project using jquery and bulma.",
"main": "src/main.js",
"repository": {
"type": "git",
"url": "git+https://github.com/viktorhbk/web-boilerplate.git"
},
"keywords": [],
const path = require("path");
const webpack = require("webpack");
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
// const devMode = process.env.NODE_ENV !== "production";
const autoprefixer = require("autoprefixer");
const fs = require("fs");
const path = require("path");
const webpack = require("webpack");
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
const devMode = process.env.NODE_ENV !== "production";
const autoprefixer = require('autoprefixer');
const fs = require("fs");