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.
- checksums.yaml +5 -5
- data/.gitignore +8 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +22 -0
- data/Appraisals +21 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +169 -0
- data/MIT-LICENSE +1 -1
- data/NOTES +87 -0
- data/README.md +1 -1
- data/Rakefile +1 -19
- data/app/controllers/.keep +0 -0
- data/app/views/.keep +0 -0
- data/bin/rails +12 -0
- data/gemfiles/rails_4.2.0.gemfile +13 -0
- data/gemfiles/rails_4.2.4.gemfile +13 -0
- data/gemfiles/rails_5.1.gemfile +17 -0
- data/gemfiles/rails_5.2.gemfile +17 -0
- data/lib/rows/version.rb +1 -1
- data/rows_controller.gemspec +25 -0
- data/script/rails +8 -0
- data/test/.watchr +61 -0
- data/test/controllers/order/items_controller_test.rb +64 -0
- data/test/controllers/orders_test.rb +83 -0
- data/test/controllers/rows_controller_test.rb +52 -0
- data/test/controllers/rows_ext_controller_test.rb +25 -0
- data/test/dummy3/Rakefile +6 -0
- data/test/dummy3/app/controllers/application_controller.rb +3 -0
- data/test/dummy3/app/controllers/order/items_controller.rb +8 -0
- data/test/dummy3/app/controllers/orders_controller.rb +8 -0
- data/test/dummy3/app/models/order.rb +14 -0
- data/test/dummy3/app/models/order/item.rb +4 -0
- data/test/dummy3/app/views/layouts/application.html.erb +12 -0
- data/test/dummy3/app/views/order/items/_form.html.erb +8 -0
- data/test/dummy3/app/views/orders/_form.html.erb +8 -0
- data/test/dummy3/config.ru +4 -0
- data/test/dummy3/config/application.rb +58 -0
- data/test/dummy3/config/boot.rb +10 -0
- data/test/dummy3/config/database.yml +25 -0
- data/test/dummy3/config/environment.rb +5 -0
- data/test/dummy3/config/environments/development.rb +37 -0
- data/test/dummy3/config/environments/production.rb +67 -0
- data/test/dummy3/config/environments/test.rb +37 -0
- data/test/dummy3/config/initializers/secret_token.rb +7 -0
- data/test/dummy3/config/initializers/session_store.rb +8 -0
- data/test/dummy3/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy3/config/routes.rb +9 -0
- data/test/dummy3/db/migrate/001_create_orders.rb +9 -0
- data/test/dummy3/db/migrate/002_create_order_items.rb +9 -0
- data/test/dummy3/db/schema.rb +28 -0
- data/test/dummy3/script/rails +6 -0
- data/test/dummy4/Rakefile +6 -0
- data/test/dummy4/app/controllers/application_controller.rb +3 -0
- data/test/dummy4/app/controllers/order/items_controller.rb +8 -0
- data/test/dummy4/app/controllers/orders_controller.rb +8 -0
- data/test/dummy4/app/models/order.rb +13 -0
- data/test/dummy4/app/models/order/item.rb +2 -0
- data/test/dummy4/app/views/layouts/application.html.erb +12 -0
- data/test/dummy4/app/views/order/items/_form.html.erb +8 -0
- data/test/dummy4/app/views/orders/_form.html.erb +8 -0
- data/test/dummy4/bin/bundle +3 -0
- data/test/dummy4/bin/rails +4 -0
- data/test/dummy4/bin/rake +4 -0
- data/test/dummy4/bin/setup +29 -0
- data/test/dummy4/config.ru +4 -0
- data/test/dummy4/config/application.rb +25 -0
- data/test/dummy4/config/boot.rb +5 -0
- data/test/dummy4/config/database.yml +25 -0
- data/test/dummy4/config/environment.rb +5 -0
- data/test/dummy4/config/environments/development.rb +41 -0
- data/test/dummy4/config/environments/production.rb +79 -0
- data/test/dummy4/config/environments/test.rb +42 -0
- data/test/dummy4/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy4/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy4/config/initializers/session_store.rb +3 -0
- data/test/dummy4/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy4/config/routes.rb +9 -0
- data/test/dummy4/config/secrets.yml +22 -0
- data/test/dummy4/db/migrate/001_create_orders.rb +9 -0
- data/test/dummy4/db/migrate/002_create_order_items.rb +9 -0
- data/test/dummy4/db/schema.rb +28 -0
- data/test/dummy4/log/.keep +0 -0
- data/test/dummy5/Rakefile +6 -0
- data/test/dummy5/app/controllers/application_controller.rb +3 -0
- data/test/dummy5/app/controllers/order/items_controller.rb +8 -0
- data/test/dummy5/app/controllers/orders_controller.rb +8 -0
- data/test/dummy5/app/models/application_record.rb +3 -0
- data/test/dummy5/app/models/order.rb +12 -0
- data/test/dummy5/app/models/order/item.rb +2 -0
- data/test/dummy5/app/views/layouts/application.html.erb +12 -0
- data/test/dummy5/app/views/order/items/_form.html.erb +8 -0
- data/test/dummy5/app/views/orders/_form.html.erb +8 -0
- data/test/dummy5/bin/rails +9 -0
- data/test/dummy5/config.ru +5 -0
- data/test/dummy5/config/application.rb +19 -0
- data/test/dummy5/config/boot.rb +6 -0
- data/test/dummy5/config/database.yml +25 -0
- data/test/dummy5/config/environment.rb +5 -0
- data/test/dummy5/config/environments/test.rb +42 -0
- data/test/dummy5/config/routes.rb +9 -0
- data/test/dummy5/config/secrets.yml +32 -0
- data/test/dummy5/config/spring.rb +6 -0
- data/test/dummy5/db/migrate/001_create_orders.rb +9 -0
- data/test/dummy5/db/migrate/002_create_order_items.rb +9 -0
- data/test/dummy5/db/schema.rb +27 -0
- data/test/dummy5/log/.keep +0 -0
- data/test/fixtures/order/items.yml +5 -0
- data/test/fixtures/orders.yml +5 -0
- data/test/test_helper.rb +31 -0
- metadata +231 -12
- data/app/controllers/rows_controller.rb.bak +0 -88
- data/lib/rows/resources.rb.bak +0 -80
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 87e6df22abe036d33f2bd6aa6e513f0f5e15a5f8f9de5ae645eca50730cbba6e
|
4
|
+
data.tar.gz: 79ef0642e4b33729b8de5190172068227a09509907fa0e4f90995d8a057865a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25defacd7e6a960996651a488576debaf4e6e1bdc7dff203925ecd4a46ef958b96b532d0344905cebe7a48deb1332ea5d8f7c4fc621073a867853e0b9ffe8195
|
7
|
+
data.tar.gz: e3dd6c1cf3ebcb85e09a6962e3c0be75b54f6dd3e2817e0e908092bb4a7bac3294df92e2ddeffceb3393976eab0913af5ee0979a5e1d0c8bcfa70c9af67da154
|
data/.gitignore
ADDED
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
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
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
data/Rakefile
CHANGED
@@ -1,22 +1,4 @@
|
|
1
|
-
|
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,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: "../"
|