nodes 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/nodes/nodes_controller.rb +62 -0
  3. data/app/models/nodes/node.rb +5 -0
  4. data/app/views/nodes/nodes/_form.html.haml +13 -0
  5. data/app/views/nodes/nodes/edit.html.haml +7 -0
  6. data/app/views/nodes/nodes/index.html.haml +21 -0
  7. data/app/views/nodes/nodes/new.html.haml +5 -0
  8. data/app/views/nodes/nodes/show.html.haml +9 -0
  9. data/config/routes.rb +1 -0
  10. data/db/migrate/20170712092306_create_nodes_nodes.rb +9 -0
  11. data/lib/nodes/version.rb +1 -1
  12. data/spec/dummy/db/development.sqlite3 +0 -0
  13. data/spec/dummy/db/schema.rb +21 -0
  14. data/spec/dummy/db/test.sqlite3 +0 -0
  15. data/spec/dummy/log/development.log +255 -0
  16. data/spec/dummy/log/test.log +353 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0Q/0QgQUG6-7bofI1Thip-BKQJNwYidylmgaUKZNEIRr_E.cache +1 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1c/1c1ZRswAEkyNaWf4s6UnvAbP2Iqo3pcikbj6wZibTOc.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7e/7ezrQjos9fEK-QX5aCNvojpP0XaBJTUjDDwjCOXunvg.cache +1 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8u/8uVDolLxDX4iPr5j7T6V5v-GrZceDq2X7BFbWs8Bh2s.cache +2 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9g/9gJjkoyqBvLhSIdSET0D42I5x06QzL0IoEV3lF6ZDN0.cache +3 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AX/AXkqZ642-X_QKvWmGlU8aB65djkrO9ZbOjG6C5YFO6E.cache +0 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bp/Bp8gbKK4PN8VPKJdiQzi0J1a7nVvRmckePDrJPLuZSQ.cache +2 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CO/COxeJ6XvgGfoCKur5WbmN_e-3ggZY7ReE2u9w_mn2I0.cache +1 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cg/Cg5wk86kgq-cs_H-b4kTMveYaePrYYY4kbtOMHNotHM.cache +2 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H9/H9VktQ3XG9d3aN-BpRDFqmLGYgTGSgfFXFI46dfBmyo.cache +0 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +2 -0
  28. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/KU/KU9ez36HgE1lZ5sLVAqh5csg3JR0-enPWj7wCFX3Pks.cache +0 -0
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/L1/L1kkiOMzfTJOjzxoCQoBOx2FvNT4dnEK_86xAOvYSDE.cache +1 -0
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LQ/LQ97kr3e8EuRX1DT37tpFWIrGf_4P3T9vqaBVJxv8TE.cache +1 -0
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MB/MBJrLeklYxiYcAnv8Kkd7LT7dUxX67MrGE8Br-dHI4M.cache +1 -0
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OO/OOm9D2yedwHuaCkd3MOrZBG62diRBt4iQ2DgB6KgnAk.cache +1 -0
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qn/QnOcfvNaTxvndOXPUdVB6Tfm9i_Wb9g-z5QUrv9ZOmM.cache +2 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R6/R6hW77ommJtbH6tfYt5UIgFj6bzqregHAbCwYkAcOUQ.cache +1 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Sg/SgRG7G4mZvaeN7066cBSa-V9f3QHH7GeV9bEQwNcr6Y.cache +2 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TA/TAecvGLrKxx1RLpkjUrEQdM23MhqQwGs89vfpwTGF_Y.cache +0 -0
  37. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TT/TTSbDQvXLRqFRVqRkAE0WG3XuAL1c9qYgEEzqul_5aA.cache +2 -0
  38. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UG/UGdUf5YZW3Ta3FHpXkIo4y74FxwesROtVpYTClWeZ4A.cache +0 -0
  39. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ut/UtZQlzOuLQ3tkGQDAEwzKl8-lSICrIfeddYOtxBd86s.cache +0 -0
  40. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VA/VAeS11MswdHLHVqRdQj1kD5Pg7yuP1VIZrc5CX-eavc.cache +0 -0
  41. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VV/VVK8SjpPBEn0puErnWINnHtMNXKpbVAw_WCvgtksmO0.cache +1 -0
  42. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/We/WehEWVQzFqLGB2ZamnXhpX0e_rh95KQobHGxTw2kWeo.cache +2 -0
  43. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wi/WiUreM316IrAy3_FOX_HSGFL1Aqid9anMul2-kmNOco.cache +1 -0
  44. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wp/WpU0Sqz3NX3BJ7gEQZy2vS6LsMeedVoeCsTB1MdATn4.cache +1 -0
  45. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yx/Yx7FtdnF1Y9DKJpbqt7XQBejq4vvUJ9nrdJNlz32eSk.cache +1 -0
  46. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zg/ZgA80RsX8xTmPF_UG4Hn1A5xzKVxE4AL9SgwsWq6KLU.cache +1 -0
  47. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ap/apn4Ww46vqqaO3_HadeMvpnrXTaeAVaGu3izlagNR_A.cache +0 -0
  48. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bA/bALvjQBu8sEZtRLIYxv3CSkrnf4a7u-bmRQ8aY3vzWo.cache +0 -0
  49. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bM/bMg0vZClFosrBK0aGp2w7catCYGZNR8crZ9yGCU0Fxw.cache +0 -0
  50. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache +2 -0
  51. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/c0/c0AoMBBRkZ2YGdHy-Y3lqSVJqC2J4AMG1VLtsawa-tQ.cache +1 -0
  52. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dP/dPLswfLPO40GtUwTzKuZCYcqzcoLZPMEM38UDJW0bck.cache +1 -0
  53. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eS/eS6VGvw5uWa2Q6a2O-G46EMaiCRkrenzLRRSZoRdOY8.cache +1 -0
  54. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fL/fLBQg0k7YtCHb7EN5zPX01XspwpG-8FE6JsFdXH9Aw4.cache +0 -0
  55. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gE/gEGsBDhnJP8f4LYtE0MK9YtYMBLl0ML6KNcmidXemVk.cache +0 -0
  56. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/j6/j6_sun9AcTvJAE1yMYYy4YqhlKzV1TVIHsKNHJLLArs.cache +1 -0
  57. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jv/jvKvb7scFMN5X-mbAL1N4F6ZvhND3Ga9VE6dtY9jwws.cache +0 -0
  58. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kf/kfVNtSegnvqewYkl5V7EdNlTjq8VCxs60nNElCBIfHQ.cache +2 -0
  59. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l7/l7VVklFqAfPuK3okrtF59Se1W_wSKPCtun9PNBCQpNI.cache +2 -0
  60. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lN/lNQkGUVeKmN0Rm12VOuc1OJjTyUORm_opsizgIK52HY.cache +0 -0
  61. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache +2 -0
  62. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nJ/nJ0vFRDc-j4Z2nK0mGkDVPkggxbPq9F6t80MTdpSW-c.cache +1 -0
  63. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
  64. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
  65. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q1/q1oadflrkv_1uq3d9GL5hwCr9_OgPX68cR2w3h-XCCc.cache +1 -0
  66. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rv/rv4kdSRbIvaOWzA3DV-b9R8rjq2iM9jpElIflcFJs88.cache +1 -0
  67. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tW/tWtnlgHdLPkIaibigZ1KAKz5c_dwQ-z3GRQHCBtveZw.cache +1 -0
  68. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xL/xLSK93vZBGRiZki9JjU7DYz2tYor-lowev9vJbcM0Mk.cache +1 -0
  69. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xg/xg4ZboAEwXZ2FzzTObCYXd5c2dqFqc0RVbIDuInHwnA.cache +2 -0
  70. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zE/zE3zB9GeKok5ENqCtrdhPxYvYQ793Fw6I_SeQZ72KxM.cache +0 -0
  71. data/spec/dummy/tmp/pids/server.pid +1 -1
  72. data/spec/factories/nodes_nodes.rb +5 -0
  73. data/spec/models/nodes/node_spec.rb +19 -0
  74. data/spec/rails_helper.rb +14 -0
  75. data/spec/spec_helper.rb +1 -8
  76. data/spec/support/database_cleaner.rb +23 -0
  77. data/spec/support/factory_girl.rb +5 -0
  78. data/spec/support/seeds.rb +5 -0
  79. data/spec/support/test_helpers.rb +21 -0
  80. data/spec/support/watir.rb +43 -0
  81. metadata +200 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba17e83b0629e0eb336062b33c2d0c39d322c164
4
- data.tar.gz: d898d0f5f220dcb16cec47a418e87d7c23e547d0
3
+ metadata.gz: c4b38ffcb267c9584e0ee8d1d6c20c9ba7269610
4
+ data.tar.gz: 81941c88269e6a30604f35cb5acd2de5bc987a0c
5
5
  SHA512:
6
- metadata.gz: 9d1268979099ba390c9c120ca6ce329dc227c209fae5146bc9a3244aa01a955d132693799c1225656b2accbb1058efc8c0a74b9c1383c5730b7fc54b887490b2
7
- data.tar.gz: f4324641822ff718b4201f5598486f0a51acb9dc86d5cac249045384b91b18cf66424ab6b9eea7b92ca98368bcf31450cbea0c3f5909bb7ef7b3ee1a8df6d5a8
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,5 @@
1
+ module Nodes
2
+ class Node < ApplicationRecord
3
+ validates :name, presence: true
4
+ end
5
+ 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,7 @@
1
+ %h1 Editing node
2
+
3
+ = render 'form'
4
+
5
+ = link_to 'Show', @node
6
+ \|
7
+ = link_to 'Back', nodes_path
@@ -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
@@ -0,0 +1,5 @@
1
+ %h1 New node
2
+
3
+ = render 'form'
4
+
5
+ = link_to 'Back', nodes_path
@@ -0,0 +1,9 @@
1
+ %p#notice= notice
2
+
3
+ %p
4
+ %b Name:
5
+ = @node.name
6
+
7
+ = link_to 'Edit', edit_node_path(@node)
8
+ \|
9
+ = link_to 'Back', nodes_path
data/config/routes.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  Nodes::Engine.routes.draw do
2
+ resources :nodes
2
3
  end
@@ -0,0 +1,9 @@
1
+ class CreateNodesNodes < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :nodes_nodes do |t|
4
+ t.string :name
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
data/lib/nodes/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nodes
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
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
+ Nodes::Node Load (0.3ms) SELECT "nodes_nodes".* FROM "nodes_nodes"
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
+  (0.1ms) SELECT sqlite_version(*)
194
+  (7.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
195
+  (6.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
196
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
197
+ Migrating to CreateNodesNodes (20170712092306)
198
+  (0.1ms) begin transaction
199
+  (0.3ms) CREATE TABLE "nodes_nodes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
200
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170712092306"]]
201
+  (6.7ms) commit transaction
202
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
203
+  (0.0ms) begin transaction
204
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-07-13 20:57:14.312852"], ["updated_at", "2017-07-13 20:57:14.312852"]]
205
+  (9.1ms) commit transaction
206
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
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
+ Nodes::Node Load (0.8ms) SELECT "nodes_nodes".* FROM "nodes_nodes"
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
+ Nodes::Node Load (0.2ms) SELECT "nodes_nodes".* FROM "nodes_nodes"
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
+  (0.1ms) SELECT sqlite_version(*)
250
+  (6.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
251
+  (6.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
252
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
253
+ Migrating to CreateNodesNodes (20170712092306)
254
+  (0.0ms) begin transaction
255
+  (0.3ms) CREATE TABLE "nodes_nodes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
256
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170712092306"]]
257
+  (11.7ms) commit transaction
258
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
259
+  (0.1ms) begin transaction
260
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-07-13 21:35:24.441457"], ["updated_at", "2017-07-13 21:35:24.441457"]]
261
+  (9.6ms) commit transaction
262
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC