nodes 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/nodes/nodes_controller.rb +62 -0
- data/app/models/nodes/node.rb +5 -0
- data/app/views/nodes/nodes/_form.html.haml +13 -0
- data/app/views/nodes/nodes/edit.html.haml +7 -0
- data/app/views/nodes/nodes/index.html.haml +21 -0
- data/app/views/nodes/nodes/new.html.haml +5 -0
- data/app/views/nodes/nodes/show.html.haml +9 -0
- data/config/routes.rb +1 -0
- data/db/migrate/20170712092306_create_nodes_nodes.rb +9 -0
- data/lib/nodes/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +21 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +255 -0
- data/spec/dummy/log/test.log +353 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0Q/0QgQUG6-7bofI1Thip-BKQJNwYidylmgaUKZNEIRr_E.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1c/1c1ZRswAEkyNaWf4s6UnvAbP2Iqo3pcikbj6wZibTOc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7e/7ezrQjos9fEK-QX5aCNvojpP0XaBJTUjDDwjCOXunvg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8u/8uVDolLxDX4iPr5j7T6V5v-GrZceDq2X7BFbWs8Bh2s.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9g/9gJjkoyqBvLhSIdSET0D42I5x06QzL0IoEV3lF6ZDN0.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AX/AXkqZ642-X_QKvWmGlU8aB65djkrO9ZbOjG6C5YFO6E.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bp/Bp8gbKK4PN8VPKJdiQzi0J1a7nVvRmckePDrJPLuZSQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CO/COxeJ6XvgGfoCKur5WbmN_e-3ggZY7ReE2u9w_mn2I0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cg/Cg5wk86kgq-cs_H-b4kTMveYaePrYYY4kbtOMHNotHM.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H9/H9VktQ3XG9d3aN-BpRDFqmLGYgTGSgfFXFI46dfBmyo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/KU/KU9ez36HgE1lZ5sLVAqh5csg3JR0-enPWj7wCFX3Pks.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/L1/L1kkiOMzfTJOjzxoCQoBOx2FvNT4dnEK_86xAOvYSDE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LQ/LQ97kr3e8EuRX1DT37tpFWIrGf_4P3T9vqaBVJxv8TE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MB/MBJrLeklYxiYcAnv8Kkd7LT7dUxX67MrGE8Br-dHI4M.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OO/OOm9D2yedwHuaCkd3MOrZBG62diRBt4iQ2DgB6KgnAk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qn/QnOcfvNaTxvndOXPUdVB6Tfm9i_Wb9g-z5QUrv9ZOmM.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R6/R6hW77ommJtbH6tfYt5UIgFj6bzqregHAbCwYkAcOUQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Sg/SgRG7G4mZvaeN7066cBSa-V9f3QHH7GeV9bEQwNcr6Y.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TA/TAecvGLrKxx1RLpkjUrEQdM23MhqQwGs89vfpwTGF_Y.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TT/TTSbDQvXLRqFRVqRkAE0WG3XuAL1c9qYgEEzqul_5aA.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UG/UGdUf5YZW3Ta3FHpXkIo4y74FxwesROtVpYTClWeZ4A.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ut/UtZQlzOuLQ3tkGQDAEwzKl8-lSICrIfeddYOtxBd86s.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VA/VAeS11MswdHLHVqRdQj1kD5Pg7yuP1VIZrc5CX-eavc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VV/VVK8SjpPBEn0puErnWINnHtMNXKpbVAw_WCvgtksmO0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/We/WehEWVQzFqLGB2ZamnXhpX0e_rh95KQobHGxTw2kWeo.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wi/WiUreM316IrAy3_FOX_HSGFL1Aqid9anMul2-kmNOco.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wp/WpU0Sqz3NX3BJ7gEQZy2vS6LsMeedVoeCsTB1MdATn4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yx/Yx7FtdnF1Y9DKJpbqt7XQBejq4vvUJ9nrdJNlz32eSk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zg/ZgA80RsX8xTmPF_UG4Hn1A5xzKVxE4AL9SgwsWq6KLU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ap/apn4Ww46vqqaO3_HadeMvpnrXTaeAVaGu3izlagNR_A.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bA/bALvjQBu8sEZtRLIYxv3CSkrnf4a7u-bmRQ8aY3vzWo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bM/bMg0vZClFosrBK0aGp2w7catCYGZNR8crZ9yGCU0Fxw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/c0/c0AoMBBRkZ2YGdHy-Y3lqSVJqC2J4AMG1VLtsawa-tQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dP/dPLswfLPO40GtUwTzKuZCYcqzcoLZPMEM38UDJW0bck.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eS/eS6VGvw5uWa2Q6a2O-G46EMaiCRkrenzLRRSZoRdOY8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fL/fLBQg0k7YtCHb7EN5zPX01XspwpG-8FE6JsFdXH9Aw4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gE/gEGsBDhnJP8f4LYtE0MK9YtYMBLl0ML6KNcmidXemVk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/j6/j6_sun9AcTvJAE1yMYYy4YqhlKzV1TVIHsKNHJLLArs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jv/jvKvb7scFMN5X-mbAL1N4F6ZvhND3Ga9VE6dtY9jwws.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kf/kfVNtSegnvqewYkl5V7EdNlTjq8VCxs60nNElCBIfHQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l7/l7VVklFqAfPuK3okrtF59Se1W_wSKPCtun9PNBCQpNI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lN/lNQkGUVeKmN0Rm12VOuc1OJjTyUORm_opsizgIK52HY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nJ/nJ0vFRDc-j4Z2nK0mGkDVPkggxbPq9F6t80MTdpSW-c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q1/q1oadflrkv_1uq3d9GL5hwCr9_OgPX68cR2w3h-XCCc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rv/rv4kdSRbIvaOWzA3DV-b9R8rjq2iM9jpElIflcFJs88.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tW/tWtnlgHdLPkIaibigZ1KAKz5c_dwQ-z3GRQHCBtveZw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xL/xLSK93vZBGRiZki9JjU7DYz2tYor-lowev9vJbcM0Mk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xg/xg4ZboAEwXZ2FzzTObCYXd5c2dqFqc0RVbIDuInHwnA.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zE/zE3zB9GeKok5ENqCtrdhPxYvYQ793Fw6I_SeQZ72KxM.cache +0 -0
- data/spec/dummy/tmp/pids/server.pid +1 -1
- data/spec/factories/nodes_nodes.rb +5 -0
- data/spec/models/nodes/node_spec.rb +19 -0
- data/spec/rails_helper.rb +14 -0
- data/spec/spec_helper.rb +1 -8
- data/spec/support/database_cleaner.rb +23 -0
- data/spec/support/factory_girl.rb +5 -0
- data/spec/support/seeds.rb +5 -0
- data/spec/support/test_helpers.rb +21 -0
- data/spec/support/watir.rb +43 -0
- metadata +200 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4b38ffcb267c9584e0ee8d1d6c20c9ba7269610
|
4
|
+
data.tar.gz: 81941c88269e6a30604f35cb5acd2de5bc987a0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 397c9da37a9c3cb935c4a829229725f89100ffe7482ec69080a39fcaa9344b68719ce31e0531e133266b5a02c0ef773e1ee43c1debe05ec8fffe2db86c0c6179
|
7
|
+
data.tar.gz: 18001b8ef3e34c3eb713ab833ab1551dc0782bff9b06b1c38c57c1ecc41b3b1c526cac59478c87fabd59c9201bfadea545f0ff05fe8ec4c18fcf716637422f86
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require_dependency "nodes/application_controller"
|
2
|
+
|
3
|
+
module Nodes
|
4
|
+
class NodesController < ApplicationController
|
5
|
+
before_action :set_node, only: [:show, :edit, :update, :destroy]
|
6
|
+
|
7
|
+
# GET /nodes
|
8
|
+
def index
|
9
|
+
@nodes = Node.all
|
10
|
+
end
|
11
|
+
|
12
|
+
# GET /nodes/1
|
13
|
+
def show
|
14
|
+
end
|
15
|
+
|
16
|
+
# GET /nodes/new
|
17
|
+
def new
|
18
|
+
@node = Node.new
|
19
|
+
end
|
20
|
+
|
21
|
+
# GET /nodes/1/edit
|
22
|
+
def edit
|
23
|
+
end
|
24
|
+
|
25
|
+
# POST /nodes
|
26
|
+
def create
|
27
|
+
@node = Node.new(node_params)
|
28
|
+
|
29
|
+
if @node.save
|
30
|
+
redirect_to @node, notice: 'Node was successfully created.'
|
31
|
+
else
|
32
|
+
render :new
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# PATCH/PUT /nodes/1
|
37
|
+
def update
|
38
|
+
if @node.update(node_params)
|
39
|
+
redirect_to @node, notice: 'Node was successfully updated.'
|
40
|
+
else
|
41
|
+
render :edit
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# DELETE /nodes/1
|
46
|
+
def destroy
|
47
|
+
@node.destroy
|
48
|
+
redirect_to nodes_url, notice: 'Node was successfully destroyed.'
|
49
|
+
end
|
50
|
+
|
51
|
+
private
|
52
|
+
# Use callbacks to share common setup or constraints between actions.
|
53
|
+
def set_node
|
54
|
+
@node = Node.find(params[:id])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Only allow a trusted parameter "white list" through.
|
58
|
+
def node_params
|
59
|
+
params.require(:node).permit(:name)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
= form_for @node do |f|
|
2
|
+
- if @node.errors.any?
|
3
|
+
#error_explanation
|
4
|
+
%h2= "#{pluralize(@node.errors.count, "error")} prohibited this node from being saved:"
|
5
|
+
%ul
|
6
|
+
- @node.errors.full_messages.each do |message|
|
7
|
+
%li= message
|
8
|
+
|
9
|
+
.field
|
10
|
+
= f.label :name
|
11
|
+
= f.text_field :name
|
12
|
+
.actions
|
13
|
+
= f.submit 'Save'
|
@@ -0,0 +1,21 @@
|
|
1
|
+
%h1 Listing nodes
|
2
|
+
|
3
|
+
%table
|
4
|
+
%thead
|
5
|
+
%tr
|
6
|
+
%th Name
|
7
|
+
%th
|
8
|
+
%th
|
9
|
+
%th
|
10
|
+
|
11
|
+
%tbody
|
12
|
+
- @nodes.each do |node|
|
13
|
+
%tr
|
14
|
+
%td= node.name
|
15
|
+
%td= link_to 'Show', node
|
16
|
+
%td= link_to 'Edit', edit_node_path(node)
|
17
|
+
%td= link_to 'Destroy', node, method: :delete, data: { confirm: 'Are you sure?' }
|
18
|
+
|
19
|
+
%br
|
20
|
+
|
21
|
+
= link_to 'New Node', new_node_path
|
data/config/routes.rb
CHANGED
data/lib/nodes/version.rb
CHANGED
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 20170712092306) do
|
14
|
+
|
15
|
+
create_table "nodes_nodes", force: :cascade do |t|
|
16
|
+
t.string "name"
|
17
|
+
t.datetime "created_at", null: false
|
18
|
+
t.datetime "updated_at", null: false
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
Binary file
|
@@ -5,3 +5,258 @@ Processing by Rails::WelcomeController#index as HTML
|
|
5
5
|
Completed 200 OK in 105ms (Views: 5.4ms)
|
6
6
|
|
7
7
|
|
8
|
+
Started GET "/" for 127.0.0.1 at 2017-07-12 11:11:53 +0200
|
9
|
+
Processing by Rails::WelcomeController#index as HTML
|
10
|
+
Rendering /home/eugene/.rvm/gems/ruby-2.3.3/gems/railties-5.1.2/lib/rails/templates/rails/welcome/index.html.erb
|
11
|
+
Rendered /home/eugene/.rvm/gems/ruby-2.3.3/gems/railties-5.1.2/lib/rails/templates/rails/welcome/index.html.erb (3.1ms)
|
12
|
+
Completed 200 OK in 130ms (Views: 7.0ms)
|
13
|
+
|
14
|
+
|
15
|
+
Started GET "/" for 127.0.0.1 at 2017-07-13 22:56:37 +0200
|
16
|
+
Processing by Rails::WelcomeController#index as HTML
|
17
|
+
Rendering /home/eugene/.rvm/gems/ruby-2.3.3/gems/railties-5.1.2/lib/rails/templates/rails/welcome/index.html.erb
|
18
|
+
Rendered /home/eugene/.rvm/gems/ruby-2.3.3/gems/railties-5.1.2/lib/rails/templates/rails/welcome/index.html.erb (3.1ms)
|
19
|
+
Completed 200 OK in 110ms (Views: 5.9ms)
|
20
|
+
|
21
|
+
|
22
|
+
Started GET "/nodes" for 127.0.0.1 at 2017-07-13 22:56:42 +0200
|
23
|
+
|
24
|
+
ActionController::RoutingError (No route matches [GET] "/nodes"):
|
25
|
+
|
26
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
|
27
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
|
28
|
+
railties (5.1.2) lib/rails/rack/logger.rb:36:in `call_app'
|
29
|
+
railties (5.1.2) lib/rails/rack/logger.rb:24:in `block in call'
|
30
|
+
activesupport (5.1.2) lib/active_support/tagged_logging.rb:69:in `block in tagged'
|
31
|
+
activesupport (5.1.2) lib/active_support/tagged_logging.rb:26:in `tagged'
|
32
|
+
activesupport (5.1.2) lib/active_support/tagged_logging.rb:69:in `tagged'
|
33
|
+
railties (5.1.2) lib/rails/rack/logger.rb:24:in `call'
|
34
|
+
sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
|
35
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
|
36
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/request_id.rb:25:in `call'
|
37
|
+
rack (2.0.3) lib/rack/method_override.rb:22:in `call'
|
38
|
+
rack (2.0.3) lib/rack/runtime.rb:22:in `call'
|
39
|
+
activesupport (5.1.2) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
|
40
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
41
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/static.rb:125:in `call'
|
42
|
+
rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
|
43
|
+
railties (5.1.2) lib/rails/engine.rb:522:in `call'
|
44
|
+
rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
|
45
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
|
46
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
|
47
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
|
48
|
+
Started GET "/nodes/nodes" for 127.0.0.1 at 2017-07-13 22:56:51 +0200
|
49
|
+
Processing by Nodes::NodesController#index as HTML
|
50
|
+
Rendering /home/nodes/app/views/nodes/nodes/index.html.erb within layouts/nodes/application
|
51
|
+
[1m[36mNodes::Node Load (0.3ms)[0m [1m[34mSELECT "nodes_nodes".* FROM "nodes_nodes"[0m
|
52
|
+
Rendered /home/nodes/app/views/nodes/nodes/index.html.erb within layouts/nodes/application (5.0ms)
|
53
|
+
Completed 500 Internal Server Error in 45ms (ActiveRecord: 0.6ms)
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
ActionView::Template::Error (SQLite3::SQLException: no such table: nodes_nodes: SELECT "nodes_nodes".* FROM "nodes_nodes"):
|
58
|
+
11: </thead>
|
59
|
+
12:
|
60
|
+
13: <tbody>
|
61
|
+
14: <% @nodes.each do |node| %>
|
62
|
+
15: <tr>
|
63
|
+
16: <td><%= node.name %></td>
|
64
|
+
17: <td><%= link_to 'Show', node %></td>
|
65
|
+
|
66
|
+
sqlite3 (1.3.13) lib/sqlite3/database.rb:91:in `initialize'
|
67
|
+
sqlite3 (1.3.13) lib/sqlite3/database.rb:91:in `new'
|
68
|
+
sqlite3 (1.3.13) lib/sqlite3/database.rb:91:in `prepare'
|
69
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:212:in `block (2 levels) in exec_query'
|
70
|
+
activesupport (5.1.2) lib/active_support/dependencies/interlock.rb:46:in `block in permit_concurrent_loads'
|
71
|
+
activesupport (5.1.2) lib/active_support/concurrency/share_lock.rb:185:in `yield_shares'
|
72
|
+
activesupport (5.1.2) lib/active_support/dependencies/interlock.rb:45:in `permit_concurrent_loads'
|
73
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:209:in `block in exec_query'
|
74
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/abstract_adapter.rb:612:in `block (2 levels) in log'
|
75
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
|
76
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/abstract_adapter.rb:611:in `block in log'
|
77
|
+
activesupport (5.1.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
|
78
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/abstract_adapter.rb:603:in `log'
|
79
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:208:in `exec_query'
|
80
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/abstract/database_statements.rb:361:in `select'
|
81
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/abstract/database_statements.rb:42:in `select_all'
|
82
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/abstract/query_cache.rb:95:in `block in select_all'
|
83
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/abstract/query_cache.rb:117:in `block in cache_sql'
|
84
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
|
85
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/abstract/query_cache.rb:104:in `cache_sql'
|
86
|
+
activerecord (5.1.2) lib/active_record/connection_adapters/abstract/query_cache.rb:95:in `select_all'
|
87
|
+
activerecord (5.1.2) lib/active_record/querying.rb:39:in `find_by_sql'
|
88
|
+
activerecord (5.1.2) lib/active_record/relation.rb:659:in `exec_queries'
|
89
|
+
activerecord (5.1.2) lib/active_record/relation.rb:546:in `load'
|
90
|
+
activerecord (5.1.2) lib/active_record/relation.rb:255:in `records'
|
91
|
+
activerecord (5.1.2) lib/active_record/relation/delegation.rb:39:in `each'
|
92
|
+
/home/nodes/app/views/nodes/nodes/index.html.erb:14:in `__home_nodes_app_views_nodes_nodes_index_html_erb___496421289752954670_46951603150600'
|
93
|
+
actionview (5.1.2) lib/action_view/template.rb:157:in `block in render'
|
94
|
+
activesupport (5.1.2) lib/active_support/notifications.rb:168:in `instrument'
|
95
|
+
actionview (5.1.2) lib/action_view/template.rb:352:in `instrument_render_template'
|
96
|
+
actionview (5.1.2) lib/action_view/template.rb:155:in `render'
|
97
|
+
actionview (5.1.2) lib/action_view/renderer/template_renderer.rb:52:in `block (2 levels) in render_template'
|
98
|
+
actionview (5.1.2) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
|
99
|
+
activesupport (5.1.2) lib/active_support/notifications.rb:166:in `block in instrument'
|
100
|
+
activesupport (5.1.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
|
101
|
+
activesupport (5.1.2) lib/active_support/notifications.rb:166:in `instrument'
|
102
|
+
actionview (5.1.2) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
|
103
|
+
actionview (5.1.2) lib/action_view/renderer/template_renderer.rb:51:in `block in render_template'
|
104
|
+
actionview (5.1.2) lib/action_view/renderer/template_renderer.rb:59:in `render_with_layout'
|
105
|
+
actionview (5.1.2) lib/action_view/renderer/template_renderer.rb:50:in `render_template'
|
106
|
+
actionview (5.1.2) lib/action_view/renderer/template_renderer.rb:14:in `render'
|
107
|
+
actionview (5.1.2) lib/action_view/renderer/renderer.rb:42:in `render_template'
|
108
|
+
actionview (5.1.2) lib/action_view/renderer/renderer.rb:23:in `render'
|
109
|
+
actionview (5.1.2) lib/action_view/rendering.rb:103:in `_render_template'
|
110
|
+
actionpack (5.1.2) lib/action_controller/metal/streaming.rb:217:in `_render_template'
|
111
|
+
actionview (5.1.2) lib/action_view/rendering.rb:83:in `render_to_body'
|
112
|
+
actionpack (5.1.2) lib/action_controller/metal/rendering.rb:52:in `render_to_body'
|
113
|
+
actionpack (5.1.2) lib/action_controller/metal/renderers.rb:141:in `render_to_body'
|
114
|
+
actionpack (5.1.2) lib/abstract_controller/rendering.rb:24:in `render'
|
115
|
+
actionpack (5.1.2) lib/action_controller/metal/rendering.rb:36:in `render'
|
116
|
+
actionpack (5.1.2) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
|
117
|
+
activesupport (5.1.2) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
|
118
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
|
119
|
+
activesupport (5.1.2) lib/active_support/core_ext/benchmark.rb:12:in `ms'
|
120
|
+
actionpack (5.1.2) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
|
121
|
+
actionpack (5.1.2) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
|
122
|
+
activerecord (5.1.2) lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
|
123
|
+
actionpack (5.1.2) lib/action_controller/metal/instrumentation.rb:43:in `render'
|
124
|
+
actionpack (5.1.2) lib/action_controller/metal/implicit_render.rb:33:in `default_render'
|
125
|
+
actionpack (5.1.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action'
|
126
|
+
actionpack (5.1.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap'
|
127
|
+
actionpack (5.1.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
|
128
|
+
actionpack (5.1.2) lib/abstract_controller/base.rb:186:in `process_action'
|
129
|
+
actionpack (5.1.2) lib/action_controller/metal/rendering.rb:30:in `process_action'
|
130
|
+
actionpack (5.1.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
|
131
|
+
activesupport (5.1.2) lib/active_support/callbacks.rb:131:in `run_callbacks'
|
132
|
+
actionpack (5.1.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
|
133
|
+
actionpack (5.1.2) lib/action_controller/metal/rescue.rb:20:in `process_action'
|
134
|
+
actionpack (5.1.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
|
135
|
+
activesupport (5.1.2) lib/active_support/notifications.rb:166:in `block in instrument'
|
136
|
+
activesupport (5.1.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
|
137
|
+
activesupport (5.1.2) lib/active_support/notifications.rb:166:in `instrument'
|
138
|
+
actionpack (5.1.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
|
139
|
+
actionpack (5.1.2) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
|
140
|
+
activerecord (5.1.2) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
|
141
|
+
actionpack (5.1.2) lib/abstract_controller/base.rb:124:in `process'
|
142
|
+
actionview (5.1.2) lib/action_view/rendering.rb:30:in `process'
|
143
|
+
actionpack (5.1.2) lib/action_controller/metal.rb:189:in `dispatch'
|
144
|
+
actionpack (5.1.2) lib/action_controller/metal.rb:253:in `dispatch'
|
145
|
+
actionpack (5.1.2) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
|
146
|
+
actionpack (5.1.2) lib/action_dispatch/routing/route_set.rb:31:in `serve'
|
147
|
+
actionpack (5.1.2) lib/action_dispatch/journey/router.rb:46:in `block in serve'
|
148
|
+
actionpack (5.1.2) lib/action_dispatch/journey/router.rb:33:in `each'
|
149
|
+
actionpack (5.1.2) lib/action_dispatch/journey/router.rb:33:in `serve'
|
150
|
+
actionpack (5.1.2) lib/action_dispatch/routing/route_set.rb:832:in `call'
|
151
|
+
railties (5.1.2) lib/rails/engine.rb:522:in `call'
|
152
|
+
railties (5.1.2) lib/rails/railtie.rb:185:in `public_send'
|
153
|
+
railties (5.1.2) lib/rails/railtie.rb:185:in `method_missing'
|
154
|
+
actionpack (5.1.2) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
|
155
|
+
actionpack (5.1.2) lib/action_dispatch/routing/mapper.rb:46:in `serve'
|
156
|
+
actionpack (5.1.2) lib/action_dispatch/journey/router.rb:46:in `block in serve'
|
157
|
+
actionpack (5.1.2) lib/action_dispatch/journey/router.rb:33:in `each'
|
158
|
+
actionpack (5.1.2) lib/action_dispatch/journey/router.rb:33:in `serve'
|
159
|
+
actionpack (5.1.2) lib/action_dispatch/routing/route_set.rb:832:in `call'
|
160
|
+
rack (2.0.3) lib/rack/etag.rb:25:in `call'
|
161
|
+
rack (2.0.3) lib/rack/conditional_get.rb:25:in `call'
|
162
|
+
rack (2.0.3) lib/rack/head.rb:12:in `call'
|
163
|
+
rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
|
164
|
+
rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
|
165
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/cookies.rb:613:in `call'
|
166
|
+
activerecord (5.1.2) lib/active_record/migration.rb:556:in `call'
|
167
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
|
168
|
+
activesupport (5.1.2) lib/active_support/callbacks.rb:97:in `run_callbacks'
|
169
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
|
170
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
171
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
|
172
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
|
173
|
+
railties (5.1.2) lib/rails/rack/logger.rb:36:in `call_app'
|
174
|
+
railties (5.1.2) lib/rails/rack/logger.rb:24:in `block in call'
|
175
|
+
activesupport (5.1.2) lib/active_support/tagged_logging.rb:69:in `block in tagged'
|
176
|
+
activesupport (5.1.2) lib/active_support/tagged_logging.rb:26:in `tagged'
|
177
|
+
activesupport (5.1.2) lib/active_support/tagged_logging.rb:69:in `tagged'
|
178
|
+
railties (5.1.2) lib/rails/rack/logger.rb:24:in `call'
|
179
|
+
sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
|
180
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
|
181
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/request_id.rb:25:in `call'
|
182
|
+
rack (2.0.3) lib/rack/method_override.rb:22:in `call'
|
183
|
+
rack (2.0.3) lib/rack/runtime.rb:22:in `call'
|
184
|
+
activesupport (5.1.2) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
|
185
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
186
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/static.rb:125:in `call'
|
187
|
+
rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
|
188
|
+
railties (5.1.2) lib/rails/engine.rb:522:in `call'
|
189
|
+
rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
|
190
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
|
191
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
|
192
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
|
193
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
194
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
195
|
+
[1m[35m (6.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
196
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
197
|
+
Migrating to CreateNodesNodes (20170712092306)
|
198
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
199
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "nodes_nodes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
200
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170712092306"]]
|
201
|
+
[1m[35m (6.7ms)[0m [1m[36mcommit transaction[0m
|
202
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
203
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
204
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-07-13 20:57:14.312852"], ["updated_at", "2017-07-13 20:57:14.312852"]]
|
205
|
+
[1m[35m (9.1ms)[0m [1m[36mcommit transaction[0m
|
206
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
207
|
+
Started GET "/nodes/nodes" for 127.0.0.1 at 2017-07-13 22:57:18 +0200
|
208
|
+
Processing by Nodes::NodesController#index as HTML
|
209
|
+
Rendering /home/nodes/app/views/nodes/nodes/index.html.erb within layouts/nodes/application
|
210
|
+
[1m[36mNodes::Node Load (0.8ms)[0m [1m[34mSELECT "nodes_nodes".* FROM "nodes_nodes"[0m
|
211
|
+
Rendered /home/nodes/app/views/nodes/nodes/index.html.erb within layouts/nodes/application (4.7ms)
|
212
|
+
Completed 200 OK in 229ms (Views: 226.5ms | ActiveRecord: 1.6ms)
|
213
|
+
|
214
|
+
|
215
|
+
Started GET "/nodes/" for 127.0.0.1 at 2017-07-13 22:57:40 +0200
|
216
|
+
|
217
|
+
ActionController::RoutingError (No route matches [GET] "/nodes"):
|
218
|
+
|
219
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
|
220
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
|
221
|
+
railties (5.1.2) lib/rails/rack/logger.rb:36:in `call_app'
|
222
|
+
railties (5.1.2) lib/rails/rack/logger.rb:24:in `block in call'
|
223
|
+
activesupport (5.1.2) lib/active_support/tagged_logging.rb:69:in `block in tagged'
|
224
|
+
activesupport (5.1.2) lib/active_support/tagged_logging.rb:26:in `tagged'
|
225
|
+
activesupport (5.1.2) lib/active_support/tagged_logging.rb:69:in `tagged'
|
226
|
+
railties (5.1.2) lib/rails/rack/logger.rb:24:in `call'
|
227
|
+
sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
|
228
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
|
229
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/request_id.rb:25:in `call'
|
230
|
+
rack (2.0.3) lib/rack/method_override.rb:22:in `call'
|
231
|
+
rack (2.0.3) lib/rack/runtime.rb:22:in `call'
|
232
|
+
activesupport (5.1.2) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
|
233
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
234
|
+
actionpack (5.1.2) lib/action_dispatch/middleware/static.rb:125:in `call'
|
235
|
+
rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
|
236
|
+
railties (5.1.2) lib/rails/engine.rb:522:in `call'
|
237
|
+
rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
|
238
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
|
239
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
|
240
|
+
/home/eugene/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
|
241
|
+
Started GET "/nodes/nodes" for 127.0.0.1 at 2017-07-13 22:57:43 +0200
|
242
|
+
Processing by Nodes::NodesController#index as HTML
|
243
|
+
Rendering /home/nodes/app/views/nodes/nodes/index.html.erb within layouts/nodes/application
|
244
|
+
[1m[36mNodes::Node Load (0.2ms)[0m [1m[34mSELECT "nodes_nodes".* FROM "nodes_nodes"[0m
|
245
|
+
Rendered /home/nodes/app/views/nodes/nodes/index.html.erb within layouts/nodes/application (3.1ms)
|
246
|
+
Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.2ms)
|
247
|
+
|
248
|
+
|
249
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
250
|
+
[1m[35m (6.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
251
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
252
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
253
|
+
Migrating to CreateNodesNodes (20170712092306)
|
254
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
255
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "nodes_nodes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
256
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170712092306"]]
|
257
|
+
[1m[35m (11.7ms)[0m [1m[36mcommit transaction[0m
|
258
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
259
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
260
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-07-13 21:35:24.441457"], ["updated_at", "2017-07-13 21:35:24.441457"]]
|
261
|
+
[1m[35m (9.6ms)[0m [1m[36mcommit transaction[0m
|
262
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|