rows_controller 2.1.0 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +8 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +22 -0
  6. data/Appraisals +21 -0
  7. data/Gemfile +14 -0
  8. data/Gemfile.lock +169 -0
  9. data/MIT-LICENSE +1 -1
  10. data/NOTES +87 -0
  11. data/README.md +1 -1
  12. data/Rakefile +1 -19
  13. data/app/controllers/.keep +0 -0
  14. data/app/views/.keep +0 -0
  15. data/bin/rails +12 -0
  16. data/gemfiles/rails_4.2.0.gemfile +13 -0
  17. data/gemfiles/rails_4.2.4.gemfile +13 -0
  18. data/gemfiles/rails_5.1.gemfile +17 -0
  19. data/gemfiles/rails_5.2.gemfile +17 -0
  20. data/lib/rows/version.rb +1 -1
  21. data/rows_controller.gemspec +25 -0
  22. data/script/rails +8 -0
  23. data/test/.watchr +61 -0
  24. data/test/controllers/order/items_controller_test.rb +64 -0
  25. data/test/controllers/orders_test.rb +83 -0
  26. data/test/controllers/rows_controller_test.rb +52 -0
  27. data/test/controllers/rows_ext_controller_test.rb +25 -0
  28. data/test/dummy3/Rakefile +6 -0
  29. data/test/dummy3/app/controllers/application_controller.rb +3 -0
  30. data/test/dummy3/app/controllers/order/items_controller.rb +8 -0
  31. data/test/dummy3/app/controllers/orders_controller.rb +8 -0
  32. data/test/dummy3/app/models/order.rb +14 -0
  33. data/test/dummy3/app/models/order/item.rb +4 -0
  34. data/test/dummy3/app/views/layouts/application.html.erb +12 -0
  35. data/test/dummy3/app/views/order/items/_form.html.erb +8 -0
  36. data/test/dummy3/app/views/orders/_form.html.erb +8 -0
  37. data/test/dummy3/config.ru +4 -0
  38. data/test/dummy3/config/application.rb +58 -0
  39. data/test/dummy3/config/boot.rb +10 -0
  40. data/test/dummy3/config/database.yml +25 -0
  41. data/test/dummy3/config/environment.rb +5 -0
  42. data/test/dummy3/config/environments/development.rb +37 -0
  43. data/test/dummy3/config/environments/production.rb +67 -0
  44. data/test/dummy3/config/environments/test.rb +37 -0
  45. data/test/dummy3/config/initializers/secret_token.rb +7 -0
  46. data/test/dummy3/config/initializers/session_store.rb +8 -0
  47. data/test/dummy3/config/initializers/wrap_parameters.rb +14 -0
  48. data/test/dummy3/config/routes.rb +9 -0
  49. data/test/dummy3/db/migrate/001_create_orders.rb +9 -0
  50. data/test/dummy3/db/migrate/002_create_order_items.rb +9 -0
  51. data/test/dummy3/db/schema.rb +28 -0
  52. data/test/dummy3/script/rails +6 -0
  53. data/test/dummy4/Rakefile +6 -0
  54. data/test/dummy4/app/controllers/application_controller.rb +3 -0
  55. data/test/dummy4/app/controllers/order/items_controller.rb +8 -0
  56. data/test/dummy4/app/controllers/orders_controller.rb +8 -0
  57. data/test/dummy4/app/models/order.rb +13 -0
  58. data/test/dummy4/app/models/order/item.rb +2 -0
  59. data/test/dummy4/app/views/layouts/application.html.erb +12 -0
  60. data/test/dummy4/app/views/order/items/_form.html.erb +8 -0
  61. data/test/dummy4/app/views/orders/_form.html.erb +8 -0
  62. data/test/dummy4/bin/bundle +3 -0
  63. data/test/dummy4/bin/rails +4 -0
  64. data/test/dummy4/bin/rake +4 -0
  65. data/test/dummy4/bin/setup +29 -0
  66. data/test/dummy4/config.ru +4 -0
  67. data/test/dummy4/config/application.rb +25 -0
  68. data/test/dummy4/config/boot.rb +5 -0
  69. data/test/dummy4/config/database.yml +25 -0
  70. data/test/dummy4/config/environment.rb +5 -0
  71. data/test/dummy4/config/environments/development.rb +41 -0
  72. data/test/dummy4/config/environments/production.rb +79 -0
  73. data/test/dummy4/config/environments/test.rb +42 -0
  74. data/test/dummy4/config/initializers/cookies_serializer.rb +3 -0
  75. data/test/dummy4/config/initializers/filter_parameter_logging.rb +4 -0
  76. data/test/dummy4/config/initializers/session_store.rb +3 -0
  77. data/test/dummy4/config/initializers/wrap_parameters.rb +14 -0
  78. data/test/dummy4/config/routes.rb +9 -0
  79. data/test/dummy4/config/secrets.yml +22 -0
  80. data/test/dummy4/db/migrate/001_create_orders.rb +9 -0
  81. data/test/dummy4/db/migrate/002_create_order_items.rb +9 -0
  82. data/test/dummy4/db/schema.rb +28 -0
  83. data/test/dummy4/log/.keep +0 -0
  84. data/test/dummy5/Rakefile +6 -0
  85. data/test/dummy5/app/controllers/application_controller.rb +3 -0
  86. data/test/dummy5/app/controllers/order/items_controller.rb +8 -0
  87. data/test/dummy5/app/controllers/orders_controller.rb +8 -0
  88. data/test/dummy5/app/models/application_record.rb +3 -0
  89. data/test/dummy5/app/models/order.rb +12 -0
  90. data/test/dummy5/app/models/order/item.rb +2 -0
  91. data/test/dummy5/app/views/layouts/application.html.erb +12 -0
  92. data/test/dummy5/app/views/order/items/_form.html.erb +8 -0
  93. data/test/dummy5/app/views/orders/_form.html.erb +8 -0
  94. data/test/dummy5/bin/rails +9 -0
  95. data/test/dummy5/config.ru +5 -0
  96. data/test/dummy5/config/application.rb +19 -0
  97. data/test/dummy5/config/boot.rb +6 -0
  98. data/test/dummy5/config/database.yml +25 -0
  99. data/test/dummy5/config/environment.rb +5 -0
  100. data/test/dummy5/config/environments/test.rb +42 -0
  101. data/test/dummy5/config/routes.rb +9 -0
  102. data/test/dummy5/config/secrets.yml +32 -0
  103. data/test/dummy5/config/spring.rb +6 -0
  104. data/test/dummy5/db/migrate/001_create_orders.rb +9 -0
  105. data/test/dummy5/db/migrate/002_create_order_items.rb +9 -0
  106. data/test/dummy5/db/schema.rb +27 -0
  107. data/test/dummy5/log/.keep +0 -0
  108. data/test/fixtures/order/items.yml +5 -0
  109. data/test/fixtures/orders.yml +5 -0
  110. data/test/test_helper.rb +31 -0
  111. metadata +231 -12
  112. data/app/controllers/rows_controller.rb.bak +0 -88
  113. data/lib/rows/resources.rb.bak +0 -80
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 308a225c28bf1ea9ad3fdd9c2ab5da6a84432574
4
- data.tar.gz: 92655caa6f8cac627066921b8845052c12faea9d
2
+ SHA256:
3
+ metadata.gz: 87e6df22abe036d33f2bd6aa6e513f0f5e15a5f8f9de5ae645eca50730cbba6e
4
+ data.tar.gz: 79ef0642e4b33729b8de5190172068227a09509907fa0e4f90995d8a057865a3
5
5
  SHA512:
6
- metadata.gz: 15bd3f3928c8ac9af4114d35d46b190af2278ed72292e23817c272574c5b69bff123ba118e106e50702815fabf5664017b970be66a5e0aeaeb1e6fd95b78aaf8
7
- data.tar.gz: 71b004b2703c3010b5d5ccbbfcec489275d76ac4fa1d4ed8d7c623141afcde5f846edae450472e762ee91bd0fbfe9bde73c42f52811f305f58098d6e6450bc96
6
+ metadata.gz: 25defacd7e6a960996651a488576debaf4e6e1bdc7dff203925ecd4a46ef958b96b532d0344905cebe7a48deb1332ea5d8f7c4fc621073a867853e0b9ffe8195
7
+ data.tar.gz: e3dd6c1cf3ebcb85e09a6962e3c0be75b54f6dd3e2817e0e908092bb4a7bac3294df92e2ddeffceb3393976eab0913af5ee0979a5e1d0c8bcfa70c9af67da154
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ .bundle/
2
+ coverage/
3
+
4
+ *.gem
5
+ *.log
6
+ *.lock
7
+ *.sqlite3
8
+ test/internal/tmp/
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ rails-5.2
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.5.1
data/.travis.yml ADDED
@@ -0,0 +1,22 @@
1
+ language: ruby
2
+ sudo: false
3
+
4
+ bundler_args: --without production
5
+ before_install: gem update bundler --no-document
6
+ script: 'bundle exec rake test'
7
+
8
+ rvm:
9
+ - 2.5.1
10
+ - 2.4.1
11
+ - 2.2.3
12
+ # - 2.0.0
13
+
14
+ gemfile:
15
+ - gemfiles/rails_5.2.gemfile
16
+ - gemfiles/rails_5.1.gemfile
17
+
18
+ matrix:
19
+ fast_finish: true
20
+
21
+ notifications:
22
+ email: false
data/Appraisals ADDED
@@ -0,0 +1,21 @@
1
+ appraise 'rails-5.2' do
2
+ gem 'rails', '~> 5.2.0'
3
+ end
4
+
5
+ appraise 'rails-5.1' do
6
+ gem 'rails', '~> 5.1.0'
7
+ end
8
+
9
+ #appraise 'rails-4.2.4' do
10
+ # gem 'rails', '4.2.4'
11
+ #end
12
+
13
+ #appraise 'rails-4.2.0' do
14
+ # gem 'rails', '4.2.0'
15
+ #end
16
+
17
+ #appraise "rails-3.2" do
18
+ # gem "rails", "3.2.22"
19
+ # gem 'test-unit', '~> 3.0'
20
+ # gem 'minitest'
21
+ #end
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ gem 'rails'
5
+
6
+ group :test do
7
+ gem 'rails-controller-testing'
8
+ gem 'observr'
9
+ gem 'simplecov', require: false
10
+ gem 'minitest'
11
+ gem 'capybara'
12
+ gem 'sqlite3'
13
+ gem 'slim'
14
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,169 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rows_controller (2.1.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ actioncable (5.2.0)
10
+ actionpack (= 5.2.0)
11
+ nio4r (~> 2.0)
12
+ websocket-driver (>= 0.6.1)
13
+ actionmailer (5.2.0)
14
+ actionpack (= 5.2.0)
15
+ actionview (= 5.2.0)
16
+ activejob (= 5.2.0)
17
+ mail (~> 2.5, >= 2.5.4)
18
+ rails-dom-testing (~> 2.0)
19
+ actionpack (5.2.0)
20
+ actionview (= 5.2.0)
21
+ activesupport (= 5.2.0)
22
+ rack (~> 2.0)
23
+ rack-test (>= 0.6.3)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
26
+ actionview (5.2.0)
27
+ activesupport (= 5.2.0)
28
+ builder (~> 3.1)
29
+ erubi (~> 1.4)
30
+ rails-dom-testing (~> 2.0)
31
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
32
+ activejob (5.2.0)
33
+ activesupport (= 5.2.0)
34
+ globalid (>= 0.3.6)
35
+ activemodel (5.2.0)
36
+ activesupport (= 5.2.0)
37
+ activerecord (5.2.0)
38
+ activemodel (= 5.2.0)
39
+ activesupport (= 5.2.0)
40
+ arel (>= 9.0)
41
+ activestorage (5.2.0)
42
+ actionpack (= 5.2.0)
43
+ activerecord (= 5.2.0)
44
+ marcel (~> 0.3.1)
45
+ activesupport (5.2.0)
46
+ concurrent-ruby (~> 1.0, >= 1.0.2)
47
+ i18n (>= 0.7, < 2)
48
+ minitest (~> 5.1)
49
+ tzinfo (~> 1.1)
50
+ addressable (2.5.2)
51
+ public_suffix (>= 2.0.2, < 4.0)
52
+ appraisal (2.2.0)
53
+ bundler
54
+ rake
55
+ thor (>= 0.14.0)
56
+ arel (9.0.0)
57
+ builder (3.2.3)
58
+ capybara (3.0.2)
59
+ addressable
60
+ mini_mime (>= 0.1.3)
61
+ nokogiri (~> 1.8)
62
+ rack (>= 1.6.0)
63
+ rack-test (>= 0.6.3)
64
+ xpath (~> 3.0)
65
+ concurrent-ruby (1.0.5)
66
+ crass (1.0.4)
67
+ docile (1.3.0)
68
+ erubi (1.7.1)
69
+ globalid (0.4.1)
70
+ activesupport (>= 4.2.0)
71
+ i18n (1.0.1)
72
+ concurrent-ruby (~> 1.0)
73
+ json (2.1.0)
74
+ loofah (2.2.2)
75
+ crass (~> 1.0.2)
76
+ nokogiri (>= 1.5.9)
77
+ mail (2.7.0)
78
+ mini_mime (>= 0.1.1)
79
+ marcel (0.3.2)
80
+ mimemagic (~> 0.3.2)
81
+ method_source (0.9.0)
82
+ mimemagic (0.3.2)
83
+ mini_mime (1.0.0)
84
+ mini_portile2 (2.3.0)
85
+ minitest (5.11.3)
86
+ nio4r (2.3.0)
87
+ nokogiri (1.8.2)
88
+ mini_portile2 (~> 2.3.0)
89
+ observr (1.0.5)
90
+ public_suffix (3.0.2)
91
+ rack (2.0.5)
92
+ rack-test (1.0.0)
93
+ rack (>= 1.0, < 3)
94
+ rails (5.2.0)
95
+ actioncable (= 5.2.0)
96
+ actionmailer (= 5.2.0)
97
+ actionpack (= 5.2.0)
98
+ actionview (= 5.2.0)
99
+ activejob (= 5.2.0)
100
+ activemodel (= 5.2.0)
101
+ activerecord (= 5.2.0)
102
+ activestorage (= 5.2.0)
103
+ activesupport (= 5.2.0)
104
+ bundler (>= 1.3.0)
105
+ railties (= 5.2.0)
106
+ sprockets-rails (>= 2.0.0)
107
+ rails-controller-testing (1.0.2)
108
+ actionpack (~> 5.x, >= 5.0.1)
109
+ actionview (~> 5.x, >= 5.0.1)
110
+ activesupport (~> 5.x)
111
+ rails-dom-testing (2.0.3)
112
+ activesupport (>= 4.2.0)
113
+ nokogiri (>= 1.6)
114
+ rails-html-sanitizer (1.0.4)
115
+ loofah (~> 2.2, >= 2.2.2)
116
+ railties (5.2.0)
117
+ actionpack (= 5.2.0)
118
+ activesupport (= 5.2.0)
119
+ method_source
120
+ rake (>= 0.8.7)
121
+ thor (>= 0.18.1, < 2.0)
122
+ rake (12.3.1)
123
+ simplecov (0.16.1)
124
+ docile (~> 1.1)
125
+ json (>= 1.8, < 3)
126
+ simplecov-html (~> 0.10.0)
127
+ simplecov-html (0.10.2)
128
+ slim (3.0.9)
129
+ temple (>= 0.7.6, < 0.9)
130
+ tilt (>= 1.3.3, < 2.1)
131
+ sprockets (3.7.1)
132
+ concurrent-ruby (~> 1.0)
133
+ rack (> 1, < 3)
134
+ sprockets-rails (3.2.1)
135
+ actionpack (>= 4.0)
136
+ activesupport (>= 4.0)
137
+ sprockets (>= 3.0.0)
138
+ sqlite3 (1.3.13)
139
+ temple (0.8.0)
140
+ thor (0.20.0)
141
+ thread_safe (0.3.6)
142
+ tilt (2.0.8)
143
+ tzinfo (1.2.5)
144
+ thread_safe (~> 0.1)
145
+ websocket-driver (0.7.0)
146
+ websocket-extensions (>= 0.1.0)
147
+ websocket-extensions (0.1.3)
148
+ xpath (3.0.0)
149
+ nokogiri (~> 1.8)
150
+
151
+ PLATFORMS
152
+ ruby
153
+
154
+ DEPENDENCIES
155
+ appraisal (~> 2)
156
+ bundler (~> 1)
157
+ capybara
158
+ minitest
159
+ observr
160
+ rails
161
+ rails-controller-testing
162
+ rake (~> 12)
163
+ rows_controller!
164
+ simplecov
165
+ slim
166
+ sqlite3
167
+
168
+ BUNDLED WITH
169
+ 1.16.1
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2009-2015 Dittmar Krall http://matique.de
1
+ Copyright 2009-2018 Dittmar Krall http://matique.de
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/NOTES ADDED
@@ -0,0 +1,87 @@
1
+ Just notes for me.
2
+
3
+ rails plugin new rows --full
4
+
5
+ mv rows rows_controller
6
+
7
+ cd rows_controller
8
+ med NOTES
9
+
10
+ cd test/dummy
11
+ rails g scaffold order name:string
12
+ rails g scaffold order::items price:string
13
+ rake db:drop db:create db:migrate db:seed
14
+ bin/setup
15
+
16
+ ---------
17
+ gem install appraisal
18
+ appraisal generate --travis
19
+ appraisal install
20
+ appraisal rake test
21
+ appraisal rails-4.2.4 rake test
22
+
23
+ gem install wwtd
24
+ wwtd --local
25
+
26
+
27
+ -----------------------------------------------------
28
+ ruby -v; rails -v
29
+
30
+ ----------
31
+ git clone rows3 rows4
32
+
33
+ cd rows4
34
+ cd test/dummy
35
+ rake db:drop db:create db:migrate
36
+ rake
37
+
38
+ cd rows4
39
+ rake
40
+
41
+ ----------
42
+ git mv test/dummy test/dummy3
43
+ med Rakefile
44
+ med test/test_helper.rb
45
+ rake
46
+
47
+
48
+ --------
49
+ Problem?
50
+
51
+ Rails used 3.2.22 4.2.0 4.2.4
52
+
53
+ appraisal in GemFile a gem 'rails', "3.2.22" working fine with all rails
54
+ appraisal in GemFile a gem 'rails', "~> 4.2" error:
55
+ in Rakefile
56
+ before load 'rails/tasks/engine.rake' Rails 3.2.22
57
+ after load 'rails/tasks/engine.rake' Rails 4.2.4
58
+
59
+ ENV['BUNDLE_GEMFILE'] may help?
60
+
61
+ ==> ./test/dummy3/config/boot.rb:
62
+ ENV['BUNDLE_GEMFILE'] ||= gemfile # notice ||
63
+
64
+ wwtd --local OK
65
+
66
+ Appraisal
67
+ ---------
68
+ https://github.com/thoughtbot/appraisal
69
+
70
+ gem "appraisal"
71
+
72
+ appraise 'rails-5.1' do
73
+ gem 'rails', '~> 5.1'
74
+ end
75
+
76
+ rvm:
77
+ - 2.2.3
78
+ - 2.4.1
79
+
80
+
81
+ $ gem install appraisal
82
+ $ appraisal install
83
+ $ appraisal generate --travis
84
+ $ appraisal rails-4.2.0 rake test
85
+ $ appraisal rails-4.2.4 rake test
86
+ $ appraisal rails-5.1 rails test
87
+ $ appraisal rake test
data/README.md CHANGED
@@ -131,4 +131,4 @@ Look for:
131
131
  - inherited_resources
132
132
  - decent_exposure
133
133
 
134
- Copyright (c) 2009-2015 [Dittmar Krall], released under the MIT license.
134
+ Copyright (c) 2009-2017 [Dittmar Krall], released under the MIT license.
data/Rakefile CHANGED
@@ -1,22 +1,4 @@
1
- #!/usr/bin/env rake
2
-
3
- require "rubygems"
4
-
5
- begin
6
- require 'bundler/setup'
7
- rescue LoadError
8
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
9
- end
10
-
11
- rails_version = `rails -v`.strip
12
- rails_version =~ /Rails (\d*)\./
13
- dir = "dummy#{$1}"
14
- APP_RAKEFILE = File.expand_path("../test/#{dir}/Rakefile", __FILE__)
15
- load 'rails/tasks/engine.rake'
16
-
17
- load 'rails/tasks/statistics.rake'
18
-
19
- Bundler::GemHelper.install_tasks
1
+ require 'bundler/setup'
20
2
 
21
3
  require 'rake/testtask'
22
4
 
File without changes
data/app/views/.keep ADDED
File without changes
data/bin/rails ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application.
3
+
4
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
5
+ ENGINE_PATH = File.expand_path('../../lib/rows/engine', __FILE__)
6
+
7
+ # Set up gems listed in the Gemfile.
8
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
9
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
10
+
11
+ require 'rails/all'
12
+ require 'rails/engine/commands'
@@ -0,0 +1,13 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "4.2.0"
6
+ gem "slim"
7
+
8
+ group :development, :test do
9
+ gem "appraisal"
10
+ gem "observr"
11
+ end
12
+
13
+ gemspec path: "../"
@@ -0,0 +1,13 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "4.2.4"
6
+ gem "slim"
7
+
8
+ group :development, :test do
9
+ gem "appraisal"
10
+ gem "observr"
11
+ end
12
+
13
+ gemspec path: "../"
@@ -0,0 +1,17 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.1.0"
6
+
7
+ group :test do
8
+ gem "rails-controller-testing"
9
+ gem "observr"
10
+ gem "simplecov", require: false
11
+ gem "minitest"
12
+ gem "capybara"
13
+ gem "sqlite3"
14
+ gem "slim"
15
+ end
16
+
17
+ gemspec path: "../"