chanko 2.3.0 → 3.0.0

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.
@@ -47,20 +47,15 @@ module Dummy
47
47
  # config.active_record.schema_format = :sql
48
48
 
49
49
  # Version of your assets, change this if you want to expire all your assets
50
- config.assets.version = '1.0'
51
- config.assets.quiet = true if ::Rails::VERSION::MAJOR >= 5
52
- if Rails::VERSION::MAJOR >= 6
53
- if ENV['AUTOLOADER'] == 'zeitwerk'
54
- Chanko::Test.logger.info("Autoloader: zeitwerk")
55
- config.autoloader = :zeitwerk
56
- else
57
- Chanko::Test.logger.info("Autoloader: classic")
58
- config.autoloader = :classic
59
- end
50
+
51
+ # for Rails 6.1
52
+ if config.respond_to?("assets")
53
+ config.assets.version = '1.0'
54
+ config.assets.quiet = true
60
55
  end
56
+
57
+ config.autoloader = :zeitwerk
61
58
  end
62
59
  end
63
60
 
64
- if Rails::VERSION::MAJOR >= 6 && Rails.autoloaders.zeitwerk_enabled?
65
- Rails.autoloaders.main.collapse(Rails.root.join('app', 'units', '*'))
66
- end
61
+ Rails.autoloaders.main.collapse(Rails.root.join('app', 'units', '*'))
@@ -27,7 +27,7 @@ module ExampleUnit
27
27
  end
28
28
 
29
29
  function(:render) do
30
- render_to_string :partial => "/test", :locals => { :local => "test" }
30
+ render_to_string :partial => "/units/example_unit/test", :locals => { :local => "test" }
31
31
  end
32
32
 
33
33
  function(:nesting_locals_outer) do
@@ -78,7 +78,7 @@ module ExampleUnit
78
78
  end
79
79
 
80
80
  function(:render) do
81
- render "/test", :local => "test"
81
+ render "/units/example_unit/test", :local => "test"
82
82
  end
83
83
 
84
84
  function(:blank) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chanko
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MORITA shingo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-06-30 00:00:00.000000000 Z
12
+ date: 2024-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 5.0.0
20
+ version: 6.1.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 5.0.0
27
+ version: 6.1.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: byebug
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -171,14 +171,14 @@ dependencies:
171
171
  requirements:
172
172
  - - ">="
173
173
  - !ruby/object:Gem::Version
174
- version: '0'
174
+ version: '1.4'
175
175
  type: :development
176
176
  prerelease: false
177
177
  version_requirements: !ruby/object:Gem::Requirement
178
178
  requirements:
179
179
  - - ">="
180
180
  - !ruby/object:Gem::Version
181
- version: '0'
181
+ version: '1.4'
182
182
  - !ruby/object:Gem::Dependency
183
183
  name: thin
184
184
  requirement: !ruby/object:Gem::Requirement
@@ -210,9 +210,7 @@ dependencies:
210
210
  description: Chanko is a Rails extension tool
211
211
  email:
212
212
  - tech@cookpad.com
213
- executables:
214
- - setup
215
- - test
213
+ executables: []
216
214
  extensions: []
217
215
  extra_rdoc_files: []
218
216
  files:
@@ -225,16 +223,9 @@ files:
225
223
  - bin/setup
226
224
  - bin/test
227
225
  - chanko.gemspec
228
- - gemfiles/Gemfile_rails_5.0.rb
229
- - gemfiles/Gemfile_rails_5.0.rb.lock
230
- - gemfiles/Gemfile_rails_5.1.rb
231
- - gemfiles/Gemfile_rails_5.1.rb.lock
232
- - gemfiles/Gemfile_rails_5.2.rb
233
- - gemfiles/Gemfile_rails_5.2.rb.lock
234
- - gemfiles/Gemfile_rails_6.0.rb
235
- - gemfiles/Gemfile_rails_6.0.rb.lock
236
226
  - gemfiles/Gemfile_rails_6.1.rb
237
- - gemfiles/Gemfile_rails_6.1.rb.lock
227
+ - gemfiles/Gemfile_rails_7.0.rb
228
+ - gemfiles/Gemfile_rails_7.1.rb
238
229
  - lib/chanko.rb
239
230
  - lib/chanko/active_if.rb
240
231
  - lib/chanko/config.rb
@@ -252,7 +243,6 @@ files:
252
243
  - lib/chanko/test.rb
253
244
  - lib/chanko/unit.rb
254
245
  - lib/chanko/unit/extender.rb
255
- - lib/chanko/unit/extender/active_record_class_methods.rb
256
246
  - lib/chanko/unit/extender/extension.rb
257
247
  - lib/chanko/unit/scope_finder.rb
258
248
  - lib/chanko/unit_proxy.rb
@@ -294,6 +284,7 @@ files:
294
284
  - spec/dummy/app/views/entries/index.html.slim
295
285
  - spec/dummy/app/views/entries/show.html.slim
296
286
  - spec/dummy/app/views/layouts/application.html.slim
287
+ - spec/dummy/app/views/units/example_unit
297
288
  - spec/dummy/config.ru
298
289
  - spec/dummy/config/application.rb
299
290
  - spec/dummy/config/boot.rb
@@ -339,14 +330,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
339
330
  requirements:
340
331
  - - ">="
341
332
  - !ruby/object:Gem::Version
342
- version: 2.6.0
333
+ version: 3.0.0
343
334
  required_rubygems_version: !ruby/object:Gem::Requirement
344
335
  requirements:
345
336
  - - ">="
346
337
  - !ruby/object:Gem::Version
347
338
  version: '0'
348
339
  requirements: []
349
- rubygems_version: 3.3.7
340
+ rubygems_version: 3.5.3
350
341
  signing_key:
351
342
  specification_version: 4
352
343
  summary: Rails extension tool
@@ -385,6 +376,7 @@ test_files:
385
376
  - spec/dummy/app/views/entries/index.html.slim
386
377
  - spec/dummy/app/views/entries/show.html.slim
387
378
  - spec/dummy/app/views/layouts/application.html.slim
379
+ - spec/dummy/app/views/units/example_unit
388
380
  - spec/dummy/config.ru
389
381
  - spec/dummy/config/application.rb
390
382
  - spec/dummy/config/boot.rb
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '..'
4
-
5
- gem 'rails', '~> 5.0.0'
6
- gem 'sqlite3', '~> 1.3.6'
@@ -1,203 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- chanko (2.3.0)
5
- rails (>= 5.0.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (5.0.7.2)
11
- actionpack (= 5.0.7.2)
12
- nio4r (>= 1.2, < 3.0)
13
- websocket-driver (~> 0.6.1)
14
- actionmailer (5.0.7.2)
15
- actionpack (= 5.0.7.2)
16
- actionview (= 5.0.7.2)
17
- activejob (= 5.0.7.2)
18
- mail (~> 2.5, >= 2.5.4)
19
- rails-dom-testing (~> 2.0)
20
- actionpack (5.0.7.2)
21
- actionview (= 5.0.7.2)
22
- activesupport (= 5.0.7.2)
23
- rack (~> 2.0)
24
- rack-test (~> 0.6.3)
25
- rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.0.7.2)
28
- activesupport (= 5.0.7.2)
29
- builder (~> 3.1)
30
- erubis (~> 2.7.0)
31
- rails-dom-testing (~> 2.0)
32
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activejob (5.0.7.2)
34
- activesupport (= 5.0.7.2)
35
- globalid (>= 0.3.6)
36
- activemodel (5.0.7.2)
37
- activesupport (= 5.0.7.2)
38
- activerecord (5.0.7.2)
39
- activemodel (= 5.0.7.2)
40
- activesupport (= 5.0.7.2)
41
- arel (~> 7.0)
42
- activesupport (5.0.7.2)
43
- concurrent-ruby (~> 1.0, >= 1.0.2)
44
- i18n (>= 0.7, < 2)
45
- minitest (~> 5.1)
46
- tzinfo (~> 1.1)
47
- arel (7.1.4)
48
- builder (3.2.4)
49
- byebug (11.1.3)
50
- coderay (1.1.3)
51
- coffee-rails (4.2.2)
52
- coffee-script (>= 2.2.0)
53
- railties (>= 4.0.0)
54
- coffee-script (2.4.1)
55
- coffee-script-source
56
- execjs
57
- coffee-script-source (1.12.2)
58
- concurrent-ruby (1.1.10)
59
- crass (1.0.6)
60
- daemons (1.4.1)
61
- diff-lcs (1.5.0)
62
- docile (1.4.0)
63
- erubis (2.7.0)
64
- eventmachine (1.2.7)
65
- execjs (2.8.1)
66
- ffi (1.15.5)
67
- globalid (1.0.0)
68
- activesupport (>= 5.0)
69
- i18n (1.12.0)
70
- concurrent-ruby (~> 1.0)
71
- jquery-rails (4.5.1)
72
- rails-dom-testing (>= 1, < 3)
73
- railties (>= 4.2.0)
74
- thor (>= 0.14, < 2.0)
75
- loofah (2.19.0)
76
- crass (~> 1.0.2)
77
- nokogiri (>= 1.5.9)
78
- mail (2.7.1)
79
- mini_mime (>= 0.1.1)
80
- method_source (1.0.0)
81
- mini_mime (1.1.2)
82
- mini_portile2 (2.8.0)
83
- minitest (5.16.3)
84
- nio4r (2.5.8)
85
- nokogiri (1.13.9)
86
- mini_portile2 (~> 2.8.0)
87
- racc (~> 1.4)
88
- pry (0.14.1)
89
- coderay (~> 1.1)
90
- method_source (~> 1.0)
91
- pry-rails (0.3.9)
92
- pry (>= 0.10.4)
93
- racc (1.6.0)
94
- rack (2.2.4)
95
- rack-test (0.6.3)
96
- rack (>= 1.0)
97
- rails (5.0.7.2)
98
- actioncable (= 5.0.7.2)
99
- actionmailer (= 5.0.7.2)
100
- actionpack (= 5.0.7.2)
101
- actionview (= 5.0.7.2)
102
- activejob (= 5.0.7.2)
103
- activemodel (= 5.0.7.2)
104
- activerecord (= 5.0.7.2)
105
- activesupport (= 5.0.7.2)
106
- bundler (>= 1.3.0)
107
- railties (= 5.0.7.2)
108
- sprockets-rails (>= 2.0.0)
109
- rails-dom-testing (2.0.3)
110
- activesupport (>= 4.2.0)
111
- nokogiri (>= 1.6)
112
- rails-html-sanitizer (1.4.3)
113
- loofah (~> 2.3)
114
- railties (5.0.7.2)
115
- actionpack (= 5.0.7.2)
116
- activesupport (= 5.0.7.2)
117
- method_source
118
- rake (>= 0.8.7)
119
- thor (>= 0.18.1, < 2.0)
120
- rake (13.0.6)
121
- rspec-core (3.12.0)
122
- rspec-support (~> 3.12.0)
123
- rspec-expectations (3.12.0)
124
- diff-lcs (>= 1.2.0, < 2.0)
125
- rspec-support (~> 3.12.0)
126
- rspec-mocks (3.12.0)
127
- diff-lcs (>= 1.2.0, < 2.0)
128
- rspec-support (~> 3.12.0)
129
- rspec-rails (4.1.2)
130
- actionpack (>= 4.2)
131
- activesupport (>= 4.2)
132
- railties (>= 4.2)
133
- rspec-core (~> 3.10)
134
- rspec-expectations (~> 3.10)
135
- rspec-mocks (~> 3.10)
136
- rspec-support (~> 3.10)
137
- rspec-support (3.12.0)
138
- sass-rails (6.0.0)
139
- sassc-rails (~> 2.1, >= 2.1.1)
140
- sassc (2.4.0)
141
- ffi (~> 1.9)
142
- sassc-rails (2.1.2)
143
- railties (>= 4.0.0)
144
- sassc (>= 2.0)
145
- sprockets (> 3.0)
146
- sprockets-rails
147
- tilt
148
- simplecov (0.21.2)
149
- docile (~> 1.1)
150
- simplecov-html (~> 0.11)
151
- simplecov_json_formatter (~> 0.1)
152
- simplecov-html (0.12.3)
153
- simplecov-lcov (0.8.0)
154
- simplecov_json_formatter (0.1.4)
155
- slim (4.1.0)
156
- temple (>= 0.7.6, < 0.9)
157
- tilt (>= 2.0.6, < 2.1)
158
- sprockets (4.1.1)
159
- concurrent-ruby (~> 1.0)
160
- rack (> 1, < 3)
161
- sprockets-rails (3.2.2)
162
- actionpack (>= 4.0)
163
- activesupport (>= 4.0)
164
- sprockets (>= 3.0.0)
165
- sqlite3 (1.3.13)
166
- temple (0.8.2)
167
- thin (1.8.1)
168
- daemons (~> 1.0, >= 1.0.9)
169
- eventmachine (~> 1.0, >= 1.0.4)
170
- rack (>= 1, < 3)
171
- thor (1.2.1)
172
- thread_safe (0.3.6)
173
- tilt (2.0.11)
174
- tzinfo (1.2.10)
175
- thread_safe (~> 0.1)
176
- uglifier (4.2.0)
177
- execjs (>= 0.3.0, < 3)
178
- websocket-driver (0.6.5)
179
- websocket-extensions (>= 0.1.0)
180
- websocket-extensions (0.1.5)
181
-
182
- PLATFORMS
183
- ruby
184
-
185
- DEPENDENCIES
186
- byebug
187
- chanko!
188
- coffee-rails (>= 3.0.10)
189
- jquery-rails
190
- pry
191
- pry-rails
192
- rails (~> 5.0.0)
193
- rspec-rails (>= 3.0.0)
194
- sass-rails (>= 3.0.10)
195
- simplecov
196
- simplecov-lcov
197
- slim
198
- sqlite3 (~> 1.3.6)
199
- thin
200
- uglifier
201
-
202
- BUNDLED WITH
203
- 2.3.26
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '..'
4
-
5
- gem 'rails', '~> 5.1.0'
6
- gem 'sqlite3', '~> 1.3.6'
@@ -1,203 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- chanko (2.3.0)
5
- rails (>= 5.0.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (5.1.7)
11
- actionpack (= 5.1.7)
12
- nio4r (~> 2.0)
13
- websocket-driver (~> 0.6.1)
14
- actionmailer (5.1.7)
15
- actionpack (= 5.1.7)
16
- actionview (= 5.1.7)
17
- activejob (= 5.1.7)
18
- mail (~> 2.5, >= 2.5.4)
19
- rails-dom-testing (~> 2.0)
20
- actionpack (5.1.7)
21
- actionview (= 5.1.7)
22
- activesupport (= 5.1.7)
23
- rack (~> 2.0)
24
- rack-test (>= 0.6.3)
25
- rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.1.7)
28
- activesupport (= 5.1.7)
29
- builder (~> 3.1)
30
- erubi (~> 1.4)
31
- rails-dom-testing (~> 2.0)
32
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activejob (5.1.7)
34
- activesupport (= 5.1.7)
35
- globalid (>= 0.3.6)
36
- activemodel (5.1.7)
37
- activesupport (= 5.1.7)
38
- activerecord (5.1.7)
39
- activemodel (= 5.1.7)
40
- activesupport (= 5.1.7)
41
- arel (~> 8.0)
42
- activesupport (5.1.7)
43
- concurrent-ruby (~> 1.0, >= 1.0.2)
44
- i18n (>= 0.7, < 2)
45
- minitest (~> 5.1)
46
- tzinfo (~> 1.1)
47
- arel (8.0.0)
48
- builder (3.2.4)
49
- byebug (11.1.3)
50
- coderay (1.1.3)
51
- coffee-rails (4.2.2)
52
- coffee-script (>= 2.2.0)
53
- railties (>= 4.0.0)
54
- coffee-script (2.4.1)
55
- coffee-script-source
56
- execjs
57
- coffee-script-source (1.12.2)
58
- concurrent-ruby (1.1.10)
59
- crass (1.0.6)
60
- daemons (1.4.1)
61
- diff-lcs (1.5.0)
62
- docile (1.4.0)
63
- erubi (1.11.0)
64
- eventmachine (1.2.7)
65
- execjs (2.8.1)
66
- ffi (1.15.5)
67
- globalid (1.0.0)
68
- activesupport (>= 5.0)
69
- i18n (1.12.0)
70
- concurrent-ruby (~> 1.0)
71
- jquery-rails (4.5.1)
72
- rails-dom-testing (>= 1, < 3)
73
- railties (>= 4.2.0)
74
- thor (>= 0.14, < 2.0)
75
- loofah (2.19.0)
76
- crass (~> 1.0.2)
77
- nokogiri (>= 1.5.9)
78
- mail (2.7.1)
79
- mini_mime (>= 0.1.1)
80
- method_source (1.0.0)
81
- mini_mime (1.1.2)
82
- mini_portile2 (2.8.0)
83
- minitest (5.16.3)
84
- nio4r (2.5.8)
85
- nokogiri (1.13.9)
86
- mini_portile2 (~> 2.8.0)
87
- racc (~> 1.4)
88
- pry (0.14.1)
89
- coderay (~> 1.1)
90
- method_source (~> 1.0)
91
- pry-rails (0.3.9)
92
- pry (>= 0.10.4)
93
- racc (1.6.0)
94
- rack (2.2.4)
95
- rack-test (2.0.2)
96
- rack (>= 1.3)
97
- rails (5.1.7)
98
- actioncable (= 5.1.7)
99
- actionmailer (= 5.1.7)
100
- actionpack (= 5.1.7)
101
- actionview (= 5.1.7)
102
- activejob (= 5.1.7)
103
- activemodel (= 5.1.7)
104
- activerecord (= 5.1.7)
105
- activesupport (= 5.1.7)
106
- bundler (>= 1.3.0)
107
- railties (= 5.1.7)
108
- sprockets-rails (>= 2.0.0)
109
- rails-dom-testing (2.0.3)
110
- activesupport (>= 4.2.0)
111
- nokogiri (>= 1.6)
112
- rails-html-sanitizer (1.4.3)
113
- loofah (~> 2.3)
114
- railties (5.1.7)
115
- actionpack (= 5.1.7)
116
- activesupport (= 5.1.7)
117
- method_source
118
- rake (>= 0.8.7)
119
- thor (>= 0.18.1, < 2.0)
120
- rake (13.0.6)
121
- rspec-core (3.12.0)
122
- rspec-support (~> 3.12.0)
123
- rspec-expectations (3.12.0)
124
- diff-lcs (>= 1.2.0, < 2.0)
125
- rspec-support (~> 3.12.0)
126
- rspec-mocks (3.12.0)
127
- diff-lcs (>= 1.2.0, < 2.0)
128
- rspec-support (~> 3.12.0)
129
- rspec-rails (4.1.2)
130
- actionpack (>= 4.2)
131
- activesupport (>= 4.2)
132
- railties (>= 4.2)
133
- rspec-core (~> 3.10)
134
- rspec-expectations (~> 3.10)
135
- rspec-mocks (~> 3.10)
136
- rspec-support (~> 3.10)
137
- rspec-support (3.12.0)
138
- sass-rails (6.0.0)
139
- sassc-rails (~> 2.1, >= 2.1.1)
140
- sassc (2.4.0)
141
- ffi (~> 1.9)
142
- sassc-rails (2.1.2)
143
- railties (>= 4.0.0)
144
- sassc (>= 2.0)
145
- sprockets (> 3.0)
146
- sprockets-rails
147
- tilt
148
- simplecov (0.21.2)
149
- docile (~> 1.1)
150
- simplecov-html (~> 0.11)
151
- simplecov_json_formatter (~> 0.1)
152
- simplecov-html (0.12.3)
153
- simplecov-lcov (0.8.0)
154
- simplecov_json_formatter (0.1.4)
155
- slim (4.1.0)
156
- temple (>= 0.7.6, < 0.9)
157
- tilt (>= 2.0.6, < 2.1)
158
- sprockets (4.1.1)
159
- concurrent-ruby (~> 1.0)
160
- rack (> 1, < 3)
161
- sprockets-rails (3.2.2)
162
- actionpack (>= 4.0)
163
- activesupport (>= 4.0)
164
- sprockets (>= 3.0.0)
165
- sqlite3 (1.3.13)
166
- temple (0.8.2)
167
- thin (1.8.1)
168
- daemons (~> 1.0, >= 1.0.9)
169
- eventmachine (~> 1.0, >= 1.0.4)
170
- rack (>= 1, < 3)
171
- thor (1.2.1)
172
- thread_safe (0.3.6)
173
- tilt (2.0.11)
174
- tzinfo (1.2.10)
175
- thread_safe (~> 0.1)
176
- uglifier (4.2.0)
177
- execjs (>= 0.3.0, < 3)
178
- websocket-driver (0.6.5)
179
- websocket-extensions (>= 0.1.0)
180
- websocket-extensions (0.1.5)
181
-
182
- PLATFORMS
183
- ruby
184
-
185
- DEPENDENCIES
186
- byebug
187
- chanko!
188
- coffee-rails (>= 3.0.10)
189
- jquery-rails
190
- pry
191
- pry-rails
192
- rails (~> 5.1.0)
193
- rspec-rails (>= 3.0.0)
194
- sass-rails (>= 3.0.10)
195
- simplecov
196
- simplecov-lcov
197
- slim
198
- sqlite3 (~> 1.3.6)
199
- thin
200
- uglifier
201
-
202
- BUNDLED WITH
203
- 2.3.26
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '..'
4
-
5
- gem 'rails', '~> 5.2.0'
6
- gem 'sqlite3', '~> 1.3.6'