actionpack-direct_routes 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a389d748b0ee8d8763f9c640a7b83442da5c8730
4
- data.tar.gz: 9b6f8e1f13c5b8d62875d73fafff1cf6296f9031
3
+ metadata.gz: 89701bacada4a996ccac6559e646f16076e37844
4
+ data.tar.gz: f57814f01be6a26acd88d2fcbb8262b8c74b0cc4
5
5
  SHA512:
6
- metadata.gz: b8d4194c1a1ea9ecac75b08430c3e94c5b87d2a50c84566da824e07ac905ae62642ab134511dfc1a07b0ce864b0deee173e1f1bbf3a1f909085366af14eb970b
7
- data.tar.gz: 99a148bae6858c94a4a7eb9c50bd2eab670ea0f3d7dff2588aac13bd37b2b2327fdb457aa4d49f8c299c036c18dfd7bb6b18f38e21c8dffdef43ba167502eec5
6
+ metadata.gz: 96af7efb398c1d54bd5aa732a8397bc65963da5712f38157e52b88793dba6999e0e6cf4c8505b3db1294cd49c40799868fb32adb827e389816cc6996b7d63cc9
7
+ data.tar.gz: ef73278154f31252693c8ee83ea6236d1d96c27e670de23160b31cd9c6604ed9d5495aeeb97aea9da8f00371cf2f3dd0997cf426c5588d24c0952b9fe07f959f
data/README.md CHANGED
@@ -1,3 +1,8 @@
1
+ [![Gem Version](https://badge.fury.io/rb/actionpack-direct_routes.svg)](https://badge.fury.io/rb/actionpack-direct_routes)
2
+ [![Build Status](https://travis-ci.org/hamuyuuki/actionpack-direct_routes.svg?branch=master)](https://travis-ci.org/hamuyuuki/actionpack-direct_routes)
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/37a26fb3d2dbec167997/maintainability)](https://codeclimate.com/github/hamuyuuki/actionpack-direct_routes/maintainability)
4
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/37a26fb3d2dbec167997/test_coverage)](https://codeclimate.com/github/hamuyuuki/actionpack-direct_routes/test_coverage)
5
+
1
6
  # actionpack-direct_routes
2
7
  `actionpack-direct_routes` backports Direct routes into Rails 4 and Rails 5.0.
3
8
 
data/Rakefile CHANGED
@@ -1,17 +1,19 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
- require 'bundler/setup'
4
+ require "bundler/setup"
3
5
  rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ puts "You must `gem install bundler` and `bundle install` to run rake tasks"
5
7
  end
6
8
 
7
- require 'rdoc/task'
9
+ require "rdoc/task"
8
10
 
9
11
  RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'DirectRoutes'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.rdoc')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
12
+ rdoc.rdoc_dir = "rdoc"
13
+ rdoc.title = "DirectRoutes"
14
+ rdoc.options << "--line-numbers"
15
+ rdoc.rdoc_files.include("README.rdoc")
16
+ rdoc.rdoc_files.include("lib/**/*.rb")
15
17
  end
16
18
 
17
19
 
@@ -21,12 +23,12 @@ end
21
23
 
22
24
  Bundler::GemHelper.install_tasks
23
25
 
24
- require 'rake/testtask'
26
+ require "rake/testtask"
25
27
 
26
28
  Rake::TestTask.new(:test) do |t|
27
- t.libs << 'lib'
28
- t.libs << 'test'
29
- t.pattern = 'test/**/*_test.rb'
29
+ t.libs << "lib"
30
+ t.libs << "test"
31
+ t.pattern = "test/**/*_test.rb"
30
32
  t.verbose = false
31
33
  end
32
34
 
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActionDispatch
4
+ module Routing
5
+ module DirectRoutes
6
+ module RouteSet
7
+ module UrlHelpers
8
+ def url_for(options)
9
+ proxy.url_for(options)
10
+ end
11
+
12
+ def optimize_routes_generation?
13
+ proxy.optimize_routes_generation?
14
+ end
15
+
16
+ def _routes; proxy._routes; end
17
+ def url_options; {}; end
18
+
19
+ private
20
+ def proxy
21
+ @proxy ||= proxy_class.new(@_routes)
22
+ end
23
+
24
+ def proxy_class
25
+ routes = @_routes
26
+
27
+ Class.new do
28
+ include ActionDispatch::Routing::UrlFor
29
+ include routes.named_routes.path_helpers_module
30
+ include routes.named_routes.url_helpers_module
31
+
32
+ attr_reader :_routes
33
+
34
+ def initialize(routes)
35
+ @_routes = routes
36
+ end
37
+
38
+ def optimize_routes_generation?
39
+ @_routes.optimize_routes_generation?
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "route_set/url_helpers"
4
+
3
5
  module ActionDispatch
4
6
  module Routing
5
7
  module DirectRoutes
@@ -9,79 +11,10 @@ module ActionDispatch
9
11
  end
10
12
 
11
13
  def url_helpers(supports_path = true)
12
- routes = self
13
-
14
- Module.new do
15
- extend ActiveSupport::Concern
16
- include ActionDispatch::Routing::UrlFor
17
-
18
- # Define url_for in the singleton level so one can do:
19
- # Rails.application.routes.url_helpers.url_for(args)
20
- proxy_class = Class.new do
21
- include ActionDispatch::Routing::UrlFor
22
- include routes.named_routes.path_helpers_module
23
- include routes.named_routes.url_helpers_module
24
-
25
- attr_reader :_routes
26
-
27
- def initialize(routes)
28
- @_routes = routes
29
- end
30
-
31
- def optimize_routes_generation?
32
- @_routes.optimize_routes_generation?
33
- end
34
- end
35
-
36
- @_proxy = proxy_class.new(routes)
37
-
38
- class << self
39
- def url_for(options)
40
- @_proxy.url_for(options)
41
- end
42
-
43
- def optimize_routes_generation?
44
- @_proxy.optimize_routes_generation?
45
- end
46
-
47
- def _routes; @_proxy._routes; end
48
- def url_options; {}; end
49
- end
50
-
51
- url_helpers = routes.named_routes.url_helpers_module
52
-
53
- # Make named_routes available in the module singleton
54
- # as well, so one can do:
55
- # Rails.application.routes.url_helpers.posts_path
56
- extend url_helpers
57
-
58
- # Any class that includes this module will get all
59
- # named routes...
60
- include url_helpers
61
-
62
- if supports_path
63
- path_helpers = routes.named_routes.path_helpers_module
64
-
65
- include path_helpers
66
- extend path_helpers
67
- end
68
-
69
- # plus a singleton class method called _routes ...
70
- included do
71
- singleton_class.send(:redefine_method, :_routes) { routes }
72
- end
73
-
74
- # And an instance method _routes. Note that
75
- # UrlFor (included in this module) add extra
76
- # conveniences for working with @_routes.
77
- define_method(:_routes) { @_routes || routes }
78
-
79
- define_method(:_generate_paths_by_default) do
80
- supports_path
81
- end
14
+ url_helpers_module = super(supports_path)
15
+ url_helpers_module.singleton_class.prepend(RouteSet::UrlHelpers)
82
16
 
83
- private :_generate_paths_by_default
84
- end
17
+ url_helpers_module
85
18
  end
86
19
  end
87
20
  end
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActionPack
2
4
  module DirectRoutes
3
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
4
6
  end
5
7
  end
@@ -1,3 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "test_helper"
4
+
1
5
  require "active_support"
2
6
  require "active_support/test_case"
3
7
  require "active_support/testing/autorun"
@@ -19,7 +23,7 @@ class RoutingTest < ActiveSupport::TestCase
19
23
  @app_template_path ||= File.join(File.expand_path("../", __dir__), "dummy")
20
24
  end
21
25
 
22
- def app_file(path, contents, mode = 'w')
26
+ def app_file(path, contents, mode = "w")
23
27
  FileUtils.mkdir_p File.dirname("#{app_path}/#{path}")
24
28
  File.open("#{app_path}/#{path}", mode) do |f|
25
29
  f.puts contents
File without changes
@@ -2,132 +2,42 @@
2
2
  ------------------------------------------------------------------------------
3
3
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
4
4
  ------------------------------------------------------------------------------
5
-  (0.1ms) rollback transaction
6
-  (0.2ms) begin transaction
7
- ----------------------------------------------------------------------
8
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
9
- ----------------------------------------------------------------------
10
-  (0.1ms) rollback transaction
11
-  (0.1ms) begin transaction
12
- --------------------------------------
13
- CustomUrlHelpersTest: test_direct_urls
14
- --------------------------------------
15
5
   (0.1ms) rollback transaction
16
6
   (0.1ms) begin transaction
17
7
  ---------------------------------------
18
8
  CustomUrlHelpersTest: test_direct_paths
19
9
  ---------------------------------------
20
-  (0.1ms) rollback transaction
21
-  (0.4ms) begin transaction
22
- ---------------------------------------------------------
23
- RoutingTest: test_named_routes_are_cleared_when_reloading
24
- ---------------------------------------------------------
25
-  (0.4ms) begin transaction
26
- -------------------------------------------------------------
27
- RoutingTest: test_routes_are_added_and_removed_when_reloading
28
- -------------------------------------------------------------
29
-  (0.1ms) rollback transaction
30
10
   (0.1ms) rollback transaction
31
11
   (0.1ms) begin transaction
32
- ------------------------------------------------------------------------------
33
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
34
- ------------------------------------------------------------------------------
35
-  (0.1ms) rollback transaction
36
-  (0.0ms) begin transaction
37
- ---------------------------------------
38
- CustomUrlHelpersTest: test_direct_paths
39
- ---------------------------------------
40
-  (0.0ms) rollback transaction
41
-  (0.1ms) begin transaction
42
- ----------------------------------------------------------------------
43
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
44
- ----------------------------------------------------------------------
45
-  (0.2ms) rollback transaction
46
-  (0.3ms) begin transaction
47
12
  --------------------------------------
48
13
  CustomUrlHelpersTest: test_direct_urls
49
14
  --------------------------------------
50
15
   (0.1ms) rollback transaction
51
16
   (0.1ms) begin transaction
52
- ---------------------------------------
53
- CustomUrlHelpersTest: test_direct_paths
54
- ---------------------------------------
55
-  (0.1ms) rollback transaction
56
-  (0.1ms) begin transaction
57
- ----------------------------------------------------------------------
58
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
59
- ----------------------------------------------------------------------
60
-  (0.1ms) rollback transaction
61
-  (0.4ms) begin transaction
62
- --------------------------------------
63
- CustomUrlHelpersTest: test_direct_urls
64
- --------------------------------------
65
-  (0.0ms) rollback transaction
66
-  (0.2ms) begin transaction
67
- ------------------------------------------------------------------------------
68
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
69
- ------------------------------------------------------------------------------
70
-  (0.1ms) rollback transaction
71
-  (0.2ms) begin transaction
72
17
  ----------------------------------------------------------------------
73
18
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
74
19
  ----------------------------------------------------------------------
75
-  (0.1ms) rollback transaction
76
-  (0.4ms) begin transaction
77
- --------------------------------------
78
- CustomUrlHelpersTest: test_direct_urls
79
- --------------------------------------
80
-  (0.3ms) rollback transaction
81
-  (0.1ms) begin transaction
82
- ---------------------------------------
83
- CustomUrlHelpersTest: test_direct_paths
84
- ---------------------------------------
85
20
   (0.1ms) rollback transaction
86
21
   (0.2ms) begin transaction
87
- ------------------------------------------------------------------------------
88
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
89
- ------------------------------------------------------------------------------
90
-  (0.0ms) rollback transaction
91
-  (0.1ms) begin transaction
92
22
  ---------------------------------------
93
23
  CustomUrlHelpersTest: test_direct_paths
94
24
  ---------------------------------------
95
-  (0.1ms) rollback transaction
25
+  (1.0ms) rollback transaction
96
26
   (0.1ms) begin transaction
97
27
  --------------------------------------
98
28
  CustomUrlHelpersTest: test_direct_urls
99
29
  --------------------------------------
100
-  (0.0ms) rollback transaction
101
-  (0.4ms) begin transaction
102
- ----------------------------------------------------------------------
103
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
104
- ----------------------------------------------------------------------
105
-  (0.0ms) rollback transaction
106
-  (0.1ms) begin transaction
107
- ------------------------------------------------------------------------------
108
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
109
- ------------------------------------------------------------------------------
110
30
   (0.1ms) rollback transaction
111
-  (0.1ms) begin transaction
31
+  (0.4ms) begin transaction
112
32
  ----------------------------------------------------------------------
113
33
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
114
34
  ----------------------------------------------------------------------
115
35
   (0.1ms) rollback transaction
116
36
   (0.1ms) begin transaction
117
- ---------------------------------------
118
- CustomUrlHelpersTest: test_direct_paths
119
- ---------------------------------------
120
-  (0.1ms) rollback transaction
121
-  (0.1ms) begin transaction
122
37
  ------------------------------------------------------------------------------
123
38
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
124
39
  ------------------------------------------------------------------------------
125
-  (0.2ms) rollback transaction
126
-  (0.1ms) begin transaction
127
- --------------------------------------
128
- CustomUrlHelpersTest: test_direct_urls
129
- --------------------------------------
130
-  (0.4ms) rollback transaction
40
+  (0.1ms) rollback transaction
131
41
   (0.1ms) begin transaction
132
42
  ----------------------------------------------------------------------
133
43
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
@@ -142,8 +52,8 @@ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
142
52
  --------------------------------------
143
53
  CustomUrlHelpersTest: test_direct_urls
144
54
  --------------------------------------
145
-  (0.2ms) rollback transaction
146
-  (0.1ms) begin transaction
55
+  (0.1ms) rollback transaction
56
+  (0.3ms) begin transaction
147
57
  ---------------------------------------
148
58
  CustomUrlHelpersTest: test_direct_paths
149
59
  ---------------------------------------
@@ -153,95 +63,35 @@ CustomUrlHelpersTest: test_direct_paths
153
63
  CustomUrlHelpersTest: test_direct_paths
154
64
  ---------------------------------------
155
65
   (0.1ms) rollback transaction
156
-  (0.1ms) begin transaction
157
- ----------------------------------------------------------------------
158
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
159
- ----------------------------------------------------------------------
160
-  (0.1ms) rollback transaction
161
-  (0.0ms) begin transaction
162
- ------------------------------------------------------------------------------
163
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
164
- ------------------------------------------------------------------------------
165
-  (0.1ms) rollback transaction
166
-  (0.0ms) begin transaction
66
+  (0.3ms) begin transaction
167
67
  --------------------------------------
168
68
  CustomUrlHelpersTest: test_direct_urls
169
69
  --------------------------------------
170
70
   (0.1ms) rollback transaction
171
-  (0.1ms) begin transaction
172
- ----------------------------------------------------------------------
173
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
174
- ----------------------------------------------------------------------
175
-  (0.1ms) rollback transaction
176
-  (0.0ms) begin transaction
177
- ---------------------------------------
178
- CustomUrlHelpersTest: test_direct_paths
179
- ---------------------------------------
180
-  (0.2ms) rollback transaction
181
-  (0.4ms) begin transaction
71
+  (0.5ms) begin transaction
182
72
  ------------------------------------------------------------------------------
183
73
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
184
74
  ------------------------------------------------------------------------------
185
75
   (0.1ms) rollback transaction
186
-  (0.1ms) begin transaction
187
- --------------------------------------
188
- CustomUrlHelpersTest: test_direct_urls
189
- --------------------------------------
190
-  (0.1ms) rollback transaction
191
-  (0.2ms) begin transaction
76
+  (0.0ms) begin transaction
192
77
  ----------------------------------------------------------------------
193
78
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
194
79
  ----------------------------------------------------------------------
195
80
   (0.1ms) rollback transaction
196
81
   (0.1ms) begin transaction
197
- --------------------------------------
198
- CustomUrlHelpersTest: test_direct_urls
199
- --------------------------------------
200
-  (0.0ms) rollback transaction
201
-  (0.0ms) begin transaction
202
- ------------------------------------------------------------------------------
203
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
204
- ------------------------------------------------------------------------------
205
-  (0.0ms) rollback transaction
206
-  (0.0ms) begin transaction
207
- ---------------------------------------
208
- CustomUrlHelpersTest: test_direct_paths
209
- ---------------------------------------
210
-  (0.0ms) rollback transaction
211
-  (0.2ms) begin transaction
212
82
  ----------------------------------------------------------------------
213
83
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
214
84
  ----------------------------------------------------------------------
215
85
   (0.1ms) rollback transaction
216
86
   (0.1ms) begin transaction
217
- ------------------------------------------------------------------------------
218
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
219
- ------------------------------------------------------------------------------
220
-  (0.0ms) rollback transaction
221
-  (0.0ms) begin transaction
222
- ---------------------------------------
223
- CustomUrlHelpersTest: test_direct_paths
224
- ---------------------------------------
225
-  (0.1ms) rollback transaction
226
-  (0.1ms) begin transaction
227
- --------------------------------------
228
- CustomUrlHelpersTest: test_direct_urls
229
- --------------------------------------
230
-  (0.1ms) rollback transaction
231
-  (0.1ms) begin transaction
232
87
  --------------------------------------
233
88
  CustomUrlHelpersTest: test_direct_urls
234
89
  --------------------------------------
235
-  (0.1ms) rollback transaction
90
+  (0.0ms) rollback transaction
236
91
   (0.1ms) begin transaction
237
92
  ------------------------------------------------------------------------------
238
93
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
239
94
  ------------------------------------------------------------------------------
240
-  (0.4ms) rollback transaction
241
-  (0.0ms) begin transaction
242
- ----------------------------------------------------------------------
243
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
244
- ----------------------------------------------------------------------
245
95
   (0.1ms) rollback transaction
246
96
   (0.1ms) begin transaction
247
97
  ---------------------------------------
@@ -249,30 +99,15 @@ CustomUrlHelpersTest: test_direct_paths
249
99
  ---------------------------------------
250
100
   (0.1ms) rollback transaction
251
101
   (0.1ms) begin transaction
252
- --------------------------------------
253
- CustomUrlHelpersTest: test_direct_urls
254
- --------------------------------------
255
-  (0.3ms) rollback transaction
256
-  (0.0ms) begin transaction
257
- ----------------------------------------------------------------------
258
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
259
- ----------------------------------------------------------------------
260
-  (0.1ms) rollback transaction
261
-  (0.0ms) begin transaction
262
102
  ------------------------------------------------------------------------------
263
103
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
264
104
  ------------------------------------------------------------------------------
265
-  (0.0ms) rollback transaction
105
+  (0.3ms) rollback transaction
266
106
   (0.0ms) begin transaction
267
107
  ---------------------------------------
268
108
  CustomUrlHelpersTest: test_direct_paths
269
109
  ---------------------------------------
270
-  (0.1ms) rollback transaction
271
-  (0.1ms) begin transaction
272
- ------------------------------------------------------------------------------
273
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
274
- ------------------------------------------------------------------------------
275
-  (0.1ms) rollback transaction
110
+  (0.0ms) rollback transaction
276
111
   (0.1ms) begin transaction
277
112
  --------------------------------------
278
113
  CustomUrlHelpersTest: test_direct_urls
@@ -281,38 +116,8 @@ CustomUrlHelpersTest: test_direct_urls
281
116
   (0.0ms) begin transaction
282
117
  ----------------------------------------------------------------------
283
118
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
284
- ----------------------------------------------------------------------
285
-  (0.0ms) rollback transaction
286
-  (0.0ms) begin transaction
287
- ---------------------------------------
288
- CustomUrlHelpersTest: test_direct_paths
289
- ---------------------------------------
290
-  (0.6ms) rollback transaction
291
-  (0.1ms) begin transaction
292
- ------------------------------------------------------------------------------
293
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
294
- ------------------------------------------------------------------------------
295
-  (0.0ms) rollback transaction
296
-  (0.2ms) begin transaction
297
- --------------------------------------
298
- CustomUrlHelpersTest: test_direct_urls
299
- --------------------------------------
300
-  (0.4ms) rollback transaction
301
-  (0.1ms) begin transaction
302
- ----------------------------------------------------------------------
303
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
304
119
  ----------------------------------------------------------------------
305
120
   (0.1ms) rollback transaction
306
-  (0.0ms) begin transaction
307
- ---------------------------------------
308
- CustomUrlHelpersTest: test_direct_paths
309
- ---------------------------------------
310
-  (0.0ms) rollback transaction
311
-  (0.1ms) begin transaction
312
- --------------------------------------
313
- CustomUrlHelpersTest: test_direct_urls
314
- --------------------------------------
315
-  (0.0ms) rollback transaction
316
121
   (0.1ms) begin transaction
317
122
  ------------------------------------------------------------------------------
318
123
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
@@ -322,148 +127,93 @@ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
322
127
  ---------------------------------------
323
128
  CustomUrlHelpersTest: test_direct_paths
324
129
  ---------------------------------------
325
-  (0.0ms) rollback transaction
130
+  (0.1ms) rollback transaction
326
131
   (0.1ms) begin transaction
327
132
  ----------------------------------------------------------------------
328
133
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
329
134
  ----------------------------------------------------------------------
330
135
   (0.1ms) rollback transaction
331
136
   (0.1ms) begin transaction
332
- ---------------------------------------
333
- CustomUrlHelpersTest: test_direct_paths
334
- ---------------------------------------
335
-  (0.1ms) rollback transaction
336
-  (0.0ms) begin transaction
337
137
  --------------------------------------
338
138
  CustomUrlHelpersTest: test_direct_urls
339
139
  --------------------------------------
340
-  (0.0ms) rollback transaction
341
-  (0.0ms) begin transaction
342
- ------------------------------------------------------------------------------
343
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
344
- ------------------------------------------------------------------------------
345
-  (0.0ms) rollback transaction
346
-  (0.1ms) begin transaction
347
- ----------------------------------------------------------------------
348
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
349
- ----------------------------------------------------------------------
350
-  (0.0ms) rollback transaction
351
-  (0.1ms) begin transaction
352
- ---------------------------------------
353
- CustomUrlHelpersTest: test_direct_paths
354
- ---------------------------------------
355
140
   (0.1ms) rollback transaction
356
141
   (0.1ms) begin transaction
357
- ----------------------------------------------------------------------
358
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
359
- ----------------------------------------------------------------------
360
-  (0.0ms) rollback transaction
361
-  (0.0ms) begin transaction
362
142
  --------------------------------------
363
143
  CustomUrlHelpersTest: test_direct_urls
364
144
  --------------------------------------
365
145
   (0.1ms) rollback transaction
366
-  (0.1ms) begin transaction
367
- ------------------------------------------------------------------------------
368
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
369
- ------------------------------------------------------------------------------
370
-  (0.1ms) rollback transaction
371
-  (0.3ms) begin transaction
146
+  (0.0ms) begin transaction
372
147
  ----------------------------------------------------------------------
373
148
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
374
149
  ----------------------------------------------------------------------
375
150
   (0.1ms) rollback transaction
376
-  (0.0ms) begin transaction
377
- --------------------------------------
378
- CustomUrlHelpersTest: test_direct_urls
379
- --------------------------------------
380
-  (0.0ms) rollback transaction
381
-  (0.0ms) begin transaction
151
+  (0.2ms) begin transaction
382
152
  ------------------------------------------------------------------------------
383
153
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
384
154
  ------------------------------------------------------------------------------
385
155
   (0.1ms) rollback transaction
386
-  (0.0ms) begin transaction
156
+  (0.1ms) begin transaction
387
157
  ---------------------------------------
388
158
  CustomUrlHelpersTest: test_direct_paths
389
159
  ---------------------------------------
390
-  (0.1ms) rollback transaction
391
-  (0.2ms) begin transaction
392
- --------------------------------------
393
- CustomUrlHelpersTest: test_direct_urls
394
- --------------------------------------
395
160
   (0.1ms) rollback transaction
396
161
   (0.1ms) begin transaction
397
162
  ------------------------------------------------------------------------------
398
163
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
399
164
  ------------------------------------------------------------------------------
400
-  (0.0ms) rollback transaction
401
-  (0.0ms) begin transaction
402
- ----------------------------------------------------------------------
403
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
404
- ----------------------------------------------------------------------
405
165
   (0.1ms) rollback transaction
406
166
   (0.1ms) begin transaction
407
167
  ---------------------------------------
408
168
  CustomUrlHelpersTest: test_direct_paths
409
169
  ---------------------------------------
410
170
   (0.1ms) rollback transaction
411
-  (0.2ms) begin transaction
171
+  (0.1ms) begin transaction
412
172
  --------------------------------------
413
173
  CustomUrlHelpersTest: test_direct_urls
414
174
  --------------------------------------
415
175
   (0.1ms) rollback transaction
416
-  (0.0ms) begin transaction
417
- ---------------------------------------
418
- CustomUrlHelpersTest: test_direct_paths
419
- ---------------------------------------
420
-  (0.0ms) rollback transaction
421
-  (0.0ms) begin transaction
422
- ------------------------------------------------------------------------------
423
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
424
- ------------------------------------------------------------------------------
425
-  (0.0ms) rollback transaction
426
176
   (0.1ms) begin transaction
427
177
  ----------------------------------------------------------------------
428
178
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
429
179
  ----------------------------------------------------------------------
430
180
   (0.1ms) rollback transaction
431
-  (0.1ms) begin transaction
432
- ----------------------------------------------------------------------
433
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
434
- ----------------------------------------------------------------------
181
+  (0.3ms) begin transaction
182
+ ----------------------------------------------------------------------------
183
+ RoutingTest: test_reloads_routes_when_configuration_is_changed_in_production
184
+ ----------------------------------------------------------------------------
185
+  (0.2ms) begin transaction
186
+ -----------------------------------------------------------------------------
187
+ RoutingTest: test_reloads_routes_when_configuration_is_changed_in_development
188
+ -----------------------------------------------------------------------------
189
+  (0.1ms) rollback transaction
435
190
   (0.1ms) rollback transaction
436
-  (0.1ms) begin transaction
437
- ---------------------------------------
438
- CustomUrlHelpersTest: test_direct_paths
439
- ---------------------------------------
440
-  (0.5ms) rollback transaction
441
191
   (0.2ms) begin transaction
192
+ -------------------------------------------------------------
193
+ RoutingTest: test_routes_are_added_and_removed_when_reloading
194
+ -------------------------------------------------------------
195
+  (0.4ms) begin transaction
196
+ ---------------------------------------------------------
197
+ RoutingTest: test_named_routes_are_cleared_when_reloading
198
+ ---------------------------------------------------------
199
+  (0.1ms) rollback transaction
200
+  (0.0ms) rollback transaction
201
+  (0.1ms) begin transaction
442
202
  ------------------------------------------------------------------------------
443
203
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
444
204
  ------------------------------------------------------------------------------
445
205
   (0.1ms) rollback transaction
446
-  (0.1ms) begin transaction
206
+  (0.0ms) begin transaction
447
207
  --------------------------------------
448
208
  CustomUrlHelpersTest: test_direct_urls
449
209
  --------------------------------------
450
210
   (0.1ms) rollback transaction
451
211
   (0.1ms) begin transaction
452
- --------------------------------------
453
- CustomUrlHelpersTest: test_direct_urls
454
- --------------------------------------
455
-  (0.2ms) rollback transaction
456
-  (0.0ms) begin transaction
457
212
  ---------------------------------------
458
213
  CustomUrlHelpersTest: test_direct_paths
459
214
  ---------------------------------------
460
-  (0.0ms) rollback transaction
461
-  (0.1ms) begin transaction
462
- ------------------------------------------------------------------------------
463
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
464
- ------------------------------------------------------------------------------
465
215
   (0.1ms) rollback transaction
466
-  (0.0ms) begin transaction
216
+  (0.2ms) begin transaction
467
217
  ----------------------------------------------------------------------
468
218
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
469
219
  ----------------------------------------------------------------------
@@ -472,47 +222,32 @@ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
472
222
  ------------------------------------------------------------------------------
473
223
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
474
224
  ------------------------------------------------------------------------------
475
-  (0.0ms) rollback transaction
476
-  (0.2ms) begin transaction
477
- --------------------------------------
478
- CustomUrlHelpersTest: test_direct_urls
479
- --------------------------------------
480
-  (0.3ms) rollback transaction
225
+  (0.1ms) rollback transaction
481
226
   (0.0ms) begin transaction
482
227
  ----------------------------------------------------------------------
483
228
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
484
229
  ----------------------------------------------------------------------
485
-  (0.2ms) rollback transaction
486
-  (0.2ms) begin transaction
487
- ---------------------------------------
488
- CustomUrlHelpersTest: test_direct_paths
489
- ---------------------------------------
490
230
   (0.1ms) rollback transaction
491
231
   (0.1ms) begin transaction
492
232
  ---------------------------------------
493
233
  CustomUrlHelpersTest: test_direct_paths
494
234
  ---------------------------------------
495
235
   (0.1ms) rollback transaction
496
-  (0.1ms) begin transaction
497
- ------------------------------------------------------------------------------
498
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
499
- ------------------------------------------------------------------------------
500
-  (0.0ms) rollback transaction
501
236
   (0.0ms) begin transaction
502
- ----------------------------------------------------------------------
503
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
504
- ----------------------------------------------------------------------
505
-  (0.1ms) rollback transaction
506
-  (0.1ms) begin transaction
507
237
  --------------------------------------
508
238
  CustomUrlHelpersTest: test_direct_urls
509
239
  --------------------------------------
510
240
   (0.1ms) rollback transaction
511
241
   (0.1ms) begin transaction
242
+ ------------------------------------------------------------------------------
243
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
244
+ ------------------------------------------------------------------------------
245
+  (0.1ms) rollback transaction
246
+  (0.2ms) begin transaction
512
247
  ----------------------------------------------------------------------
513
248
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
514
249
  ----------------------------------------------------------------------
515
-  (0.1ms) rollback transaction
250
+  (0.2ms) rollback transaction
516
251
   (0.1ms) begin transaction
517
252
  ---------------------------------------
518
253
  CustomUrlHelpersTest: test_direct_paths
@@ -528,7 +263,12 @@ CustomUrlHelpersTest: test_direct_urls
528
263
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
529
264
  ------------------------------------------------------------------------------
530
265
   (0.1ms) rollback transaction
531
-  (0.1ms) begin transaction
266
+  (0.3ms) begin transaction
267
+ ---------------------------------------
268
+ CustomUrlHelpersTest: test_direct_paths
269
+ ---------------------------------------
270
+  (0.1ms) rollback transaction
271
+  (0.7ms) begin transaction
532
272
  ----------------------------------------------------------------------
533
273
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
534
274
  ----------------------------------------------------------------------
@@ -537,77 +277,52 @@ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
537
277
  --------------------------------------
538
278
  CustomUrlHelpersTest: test_direct_urls
539
279
  --------------------------------------
540
-  (0.1ms) rollback transaction
541
-  (0.0ms) begin transaction
280
+  (0.4ms) rollback transaction
281
+  (0.1ms) begin transaction
542
282
  ------------------------------------------------------------------------------
543
283
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
544
284
  ------------------------------------------------------------------------------
545
-  (0.0ms) rollback transaction
546
-  (0.0ms) begin transaction
547
- ---------------------------------------
548
- CustomUrlHelpersTest: test_direct_paths
549
- ---------------------------------------
550
285
   (0.1ms) rollback transaction
551
286
   (0.1ms) begin transaction
552
287
  ----------------------------------------------------------------------
553
288
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
554
289
  ----------------------------------------------------------------------
555
-  (0.1ms) rollback transaction
556
-  (0.0ms) begin transaction
557
- ------------------------------------------------------------------------------
558
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
559
- ------------------------------------------------------------------------------
560
-  (0.0ms) rollback transaction
561
-  (0.0ms) begin transaction
290
+  (0.5ms) rollback transaction
291
+  (0.1ms) begin transaction
562
292
  ---------------------------------------
563
293
  CustomUrlHelpersTest: test_direct_paths
564
294
  ---------------------------------------
565
295
   (0.1ms) rollback transaction
566
-  (0.0ms) begin transaction
296
+  (0.2ms) begin transaction
567
297
  --------------------------------------
568
298
  CustomUrlHelpersTest: test_direct_urls
569
299
  --------------------------------------
570
300
   (0.1ms) rollback transaction
571
-  (0.2ms) begin transaction
301
+  (0.1ms) begin transaction
572
302
  ------------------------------------------------------------------------------
573
303
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
574
304
  ------------------------------------------------------------------------------
575
305
   (0.1ms) rollback transaction
576
306
   (0.1ms) begin transaction
577
- ---------------------------------------
578
- CustomUrlHelpersTest: test_direct_paths
579
- ---------------------------------------
580
-  (0.1ms) rollback transaction
581
-  (0.0ms) begin transaction
582
307
  ----------------------------------------------------------------------
583
308
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
584
309
  ----------------------------------------------------------------------
585
310
   (0.1ms) rollback transaction
586
-  (0.0ms) begin transaction
311
+  (0.7ms) begin transaction
312
+ ---------------------------------------
313
+ CustomUrlHelpersTest: test_direct_paths
314
+ ---------------------------------------
315
+  (0.1ms) rollback transaction
316
+  (0.1ms) begin transaction
587
317
  --------------------------------------
588
318
  CustomUrlHelpersTest: test_direct_urls
589
319
  --------------------------------------
590
320
   (0.1ms) rollback transaction
591
321
   (0.1ms) begin transaction
592
- ----------------------------------------------------------------------
593
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
594
- ----------------------------------------------------------------------
595
-  (0.0ms) rollback transaction
596
-  (0.0ms) begin transaction
597
- ---------------------------------------
598
- CustomUrlHelpersTest: test_direct_paths
599
- ---------------------------------------
600
-  (0.2ms) rollback transaction
601
-  (0.2ms) begin transaction
602
322
  ------------------------------------------------------------------------------
603
323
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
604
324
  ------------------------------------------------------------------------------
605
325
   (0.1ms) rollback transaction
606
-  (0.0ms) begin transaction
607
- --------------------------------------
608
- CustomUrlHelpersTest: test_direct_urls
609
- --------------------------------------
610
-  (0.3ms) rollback transaction
611
326
   (0.1ms) begin transaction
612
327
  --------------------------------------
613
328
  CustomUrlHelpersTest: test_direct_urls
@@ -618,27 +333,17 @@ CustomUrlHelpersTest: test_direct_urls
618
333
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
619
334
  ----------------------------------------------------------------------
620
335
   (0.1ms) rollback transaction
621
-  (0.0ms) begin transaction
336
+  (0.1ms) begin transaction
622
337
  ---------------------------------------
623
338
  CustomUrlHelpersTest: test_direct_paths
624
339
  ---------------------------------------
625
-  (0.4ms) rollback transaction
626
-  (0.3ms) begin transaction
627
- ------------------------------------------------------------------------------
628
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
629
- ------------------------------------------------------------------------------
630
-  (0.3ms) rollback transaction
340
+  (0.1ms) rollback transaction
631
341
   (0.1ms) begin transaction
632
342
  --------------------------------------
633
343
  CustomUrlHelpersTest: test_direct_urls
634
344
  --------------------------------------
635
345
   (0.1ms) rollback transaction
636
-  (0.3ms) begin transaction
637
- ------------------------------------------------------------------------------
638
- CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
639
- ------------------------------------------------------------------------------
640
-  (0.4ms) rollback transaction
641
-  (0.1ms) begin transaction
346
+  (0.0ms) begin transaction
642
347
  ----------------------------------------------------------------------
643
348
  CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
644
349
  ----------------------------------------------------------------------
@@ -648,43 +353,8 @@ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
648
353
  CustomUrlHelpersTest: test_direct_paths
649
354
  ---------------------------------------
650
355
   (0.1ms) rollback transaction
651
-  (0.1ms) begin transaction
356
+  (0.0ms) begin transaction
652
357
  ------------------------------------------------------------------------------
653
358
  CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
654
359
  ------------------------------------------------------------------------------
655
-  (0.0ms) rollback transaction
656
-  (0.0ms) begin transaction
657
- ----------------------------------------------------------------------
658
- CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
659
- ----------------------------------------------------------------------
660
-  (0.0ms) rollback transaction
661
-  (0.0ms) begin transaction
662
- ---------------------------------------
663
- CustomUrlHelpersTest: test_direct_paths
664
- ---------------------------------------
665
-  (0.2ms) rollback transaction
666
-  (0.1ms) begin transaction
667
- --------------------------------------
668
- CustomUrlHelpersTest: test_direct_urls
669
- --------------------------------------
670
-  (0.1ms) rollback transaction
671
-  (1.1ms) begin transaction
672
- ----------------------------------------------------------------------------
673
- RoutingTest: test_reloads_routes_when_configuration_is_changed_in_production
674
- ----------------------------------------------------------------------------
675
-  (0.3ms) begin transaction
676
- -----------------------------------------------------------------------------
677
- RoutingTest: test_reloads_routes_when_configuration_is_changed_in_development
678
- -----------------------------------------------------------------------------
679
-  (0.1ms) rollback transaction
680
-  (0.4ms) begin transaction
681
- ---------------------------------------------------------
682
- RoutingTest: test_named_routes_are_cleared_when_reloading
683
- ---------------------------------------------------------
684
-  (0.1ms) rollback transaction
685
-  (0.1ms) rollback transaction
686
-  (0.3ms) begin transaction
687
- -------------------------------------------------------------
688
- RoutingTest: test_routes_are_added_and_removed_when_reloading
689
- -------------------------------------------------------------
690
360
   (0.1ms) rollback transaction
@@ -1,5 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "test_helper"
2
4
 
5
+ require File.expand_path("../../../test/dummy/config/environment.rb", __FILE__)
6
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../../test/dummy/db/migrate", __FILE__)]
7
+ require "rails/test_help"
8
+
3
9
  class CustomUrlHelpersTest < ActionDispatch::IntegrationTest
4
10
  class Linkable
5
11
  attr_reader :id
@@ -235,4 +241,4 @@ class CustomUrlHelpersTest < ActionDispatch::IntegrationTest
235
241
  assert_equal true, Routes.named_routes.route_defined?(:symbol_url), "'symbol_url' named helper not found"
236
242
  assert_equal true, Routes.named_routes.route_defined?(:symbol_path), "'symbol_path' named helper not found"
237
243
  end
238
- end
244
+ end
data/test/test_helper.rb CHANGED
@@ -1,20 +1,16 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Configure Rails Environment
2
4
  ENV["RAILS_ENV"] = "test"
3
5
 
4
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
- ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
- require "rails/test_help"
7
-
8
6
  # Filter out Minitest backtrace while allowing backtrace from other libraries
9
7
  # to be shown.
8
+ require "minitest"
10
9
  Minitest.backtrace_filter = Minitest::BacktraceFilter.new
11
10
 
12
- # Load support files
13
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
14
-
15
- # Load fixtures from the engine
16
- if ActiveSupport::TestCase.respond_to?(:fixture_path=)
17
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
18
- ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
19
- ActiveSupport::TestCase.fixtures :all
11
+ if ENV["CI"]
12
+ require "simplecov"
13
+ SimpleCov.start "rails" do
14
+ add_filter "/test/"
15
+ end
20
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack-direct_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - hamuyuuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-30 00:00:00.000000000 Z
11
+ date: 2019-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -80,6 +80,48 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-performance
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
83
125
  - !ruby/object:Gem::Dependency
84
126
  name: sqlite3
85
127
  requirement: !ruby/object:Gem::Requirement
@@ -110,6 +152,7 @@ files:
110
152
  - lib/action_dispatch/routing/direct_routes/route_set.rb
111
153
  - lib/action_dispatch/routing/direct_routes/route_set/custom_url_helper.rb
112
154
  - lib/action_dispatch/routing/direct_routes/route_set/named_route_collection.rb
155
+ - lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb
113
156
  - lib/actionpack/direct_routes.rb
114
157
  - lib/actionpack/direct_routes/version.rb
115
158
  - test/application/routing_test.rb
@@ -145,6 +188,7 @@ files:
145
188
  - test/dummy/config/routes.rb
146
189
  - test/dummy/config/secrets.yml
147
190
  - test/dummy/db/test.sqlite3
191
+ - test/dummy/log/development.log
148
192
  - test/dummy/log/test.log
149
193
  - test/dummy/public/404.html
150
194
  - test/dummy/public/422.html
@@ -172,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
216
  version: '0'
173
217
  requirements: []
174
218
  rubyforge_project:
175
- rubygems_version: 2.6.14.4
219
+ rubygems_version: 2.6.14.1
176
220
  signing_key:
177
221
  specification_version: 4
178
222
  summary: Backport Direct routes into Rails 4 and Rails 5.0.
@@ -216,4 +260,5 @@ test_files:
216
260
  - test/dummy/config.ru
217
261
  - test/dummy/db/test.sqlite3
218
262
  - test/dummy/Rakefile
263
+ - test/dummy/log/development.log
219
264
  - test/dummy/log/test.log