actionpack-direct_routes 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/action_dispatch/routing/direct_routes/route_set/custom_url_helper.rb +1 -1
- data/lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb +4 -0
- data/lib/action_dispatch/routing/direct_routes/url_for.rb +15 -0
- data/lib/actionpack/direct_routes.rb +2 -0
- data/lib/actionpack/direct_routes/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +2 -0
- data/test/dummy/log/test.log +610 -0
- data/test/integration/direct_routes_test.rb +53 -0
- metadata +39 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c611d4a1232d18dcd4e3ced61f65b49cb7bfac97
|
4
|
+
data.tar.gz: 3c3e2639108b0ca64391242483f4742bd1d47067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2296422d9978c7cf51351ddd218bf449eec57d1eba7c3dbc33de79cf9c1d69909af10dc4aecb0e729f7ef6042a53ffa748e89786c0874b61e7a5c15b9fb4852
|
7
|
+
data.tar.gz: 576cfb2fc04e49a48370ecb58e80ba91cce741c6b9c28d094b16b86787886c9012ec1a08b0c8d2558c42c029de0fa9a1cd5dd6c3285fbfa7a94027f769a99da4
|
@@ -15,7 +15,7 @@ module ActionDispatch
|
|
15
15
|
|
16
16
|
def call(t, args, only_path = false)
|
17
17
|
options = args.extract_options!
|
18
|
-
url = t.
|
18
|
+
url = t.full_url_for(eval_block(t, args, options))
|
19
19
|
|
20
20
|
if only_path
|
21
21
|
"/" + url.partition(%r{(?<!/)/(?!/)}).last
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "route_set/url_helpers"
|
4
|
+
|
5
|
+
module ActionDispatch
|
6
|
+
module Routing
|
7
|
+
module DirectRoutes
|
8
|
+
module UrlFor
|
9
|
+
def self.included(url_for_module)
|
10
|
+
url_for_module.module_exec { alias full_url_for url_for }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -7,9 +7,11 @@ ActiveSupport.on_load(:before_initialize) do
|
|
7
7
|
require "action_dispatch/routing/direct_routes/mapper/scope"
|
8
8
|
require "action_dispatch/routing/direct_routes/route_set"
|
9
9
|
require "action_dispatch/routing/direct_routes/route_set/named_route_collection"
|
10
|
+
require "action_dispatch/routing/direct_routes/url_for"
|
10
11
|
|
11
12
|
ActionDispatch::Routing::Mapper.include(ActionDispatch::Routing::DirectRoutes::Mapper)
|
12
13
|
ActionDispatch::Routing::Mapper::Scope.include(ActionDispatch::Routing::DirectRoutes::Mapper::Scope)
|
13
14
|
ActionDispatch::Routing::RouteSet.prepend(ActionDispatch::Routing::DirectRoutes::RouteSet)
|
14
15
|
ActionDispatch::Routing::RouteSet::NamedRouteCollection.include(ActionDispatch::Routing::DirectRoutes::RouteSet::NamedRouteCollection)
|
16
|
+
ActionDispatch::Routing::UrlFor.include(ActionDispatch::Routing::DirectRoutes::UrlFor)
|
15
17
|
end
|
File without changes
|
@@ -0,0 +1,2 @@
|
|
1
|
+
DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from require at test/dummy/bin/rails:4)
|
2
|
+
DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from require at test/dummy/bin/rails:4)
|
@@ -0,0 +1,610 @@
|
|
1
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2
|
+
------------------------------------------------------------------------------
|
3
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
4
|
+
------------------------------------------------------------------------------
|
5
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
7
|
+
----------------------------------------------------------------------
|
8
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
9
|
+
----------------------------------------------------------------------
|
10
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12
|
+
---------------------------------------
|
13
|
+
CustomUrlHelpersTest: test_direct_paths
|
14
|
+
---------------------------------------
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17
|
+
--------------------------------------
|
18
|
+
CustomUrlHelpersTest: test_direct_urls
|
19
|
+
--------------------------------------
|
20
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
22
|
+
---------------------------------------------------------
|
23
|
+
RoutingTest: test_named_routes_are_cleared_when_reloading
|
24
|
+
---------------------------------------------------------
|
25
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
26
|
+
-----------------------------------------------------------------------------
|
27
|
+
RoutingTest: test_reloads_routes_when_configuration_is_changed_in_development
|
28
|
+
-----------------------------------------------------------------------------
|
29
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
30
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
31
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
32
|
+
----------------------------------------------------------------------------
|
33
|
+
RoutingTest: test_reloads_routes_when_configuration_is_changed_in_production
|
34
|
+
----------------------------------------------------------------------------
|
35
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
36
|
+
-------------------------------------------------------------
|
37
|
+
RoutingTest: test_routes_are_added_and_removed_when_reloading
|
38
|
+
-------------------------------------------------------------
|
39
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
40
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.9ms)[0m [1mbegin transaction[0m
|
42
|
+
--------------------------------------
|
43
|
+
CustomUrlHelpersTest: test_direct_urls
|
44
|
+
--------------------------------------
|
45
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
46
|
+
----------------------------------------------------------------------
|
47
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
48
|
+
----------------------------------------------------------------------
|
49
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
50
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
52
|
+
---------------------------------------
|
53
|
+
CustomUrlHelpersTest: test_direct_paths
|
54
|
+
---------------------------------------
|
55
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
56
|
+
------------------------------------------------------------------------------
|
57
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
58
|
+
------------------------------------------------------------------------------
|
59
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
60
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
61
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
62
|
+
----------------------------------------------------------------------
|
63
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
64
|
+
----------------------------------------------------------------------
|
65
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
67
|
+
--------------------------------------
|
68
|
+
CustomUrlHelpersTest: test_direct_urls
|
69
|
+
--------------------------------------
|
70
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
72
|
+
------------------------------------------------------------------------------
|
73
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
74
|
+
------------------------------------------------------------------------------
|
75
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
76
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
77
|
+
---------------------------------------
|
78
|
+
CustomUrlHelpersTest: test_direct_paths
|
79
|
+
---------------------------------------
|
80
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
81
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
82
|
+
---------------------------------------------------------
|
83
|
+
RoutingTest: test_named_routes_are_cleared_when_reloading
|
84
|
+
---------------------------------------------------------
|
85
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
86
|
+
----------------------------------------------------------------------------
|
87
|
+
RoutingTest: test_reloads_routes_when_configuration_is_changed_in_production
|
88
|
+
----------------------------------------------------------------------------
|
89
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
90
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
91
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
92
|
+
-----------------------------------------------------------------------------
|
93
|
+
RoutingTest: test_reloads_routes_when_configuration_is_changed_in_development
|
94
|
+
-----------------------------------------------------------------------------
|
95
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
96
|
+
-------------------------------------------------------------
|
97
|
+
RoutingTest: test_routes_are_added_and_removed_when_reloading
|
98
|
+
-------------------------------------------------------------
|
99
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
100
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
101
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
102
|
+
----------------------------------------------------------------------
|
103
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
104
|
+
----------------------------------------------------------------------
|
105
|
+
[1m[36m (1.0ms)[0m [1mbegin transaction[0m
|
106
|
+
---------------------------------------
|
107
|
+
CustomUrlHelpersTest: test_direct_paths
|
108
|
+
---------------------------------------
|
109
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
110
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
111
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
112
|
+
--------------------------------------
|
113
|
+
CustomUrlHelpersTest: test_direct_urls
|
114
|
+
--------------------------------------
|
115
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
116
|
+
------------------------------------------------------------------------------
|
117
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
118
|
+
------------------------------------------------------------------------------
|
119
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
120
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
121
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
122
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
123
|
+
--------------------------------------
|
124
|
+
CustomUrlHelpersTest: test_direct_urls
|
125
|
+
--------------------------------------
|
126
|
+
---------------------------------------
|
127
|
+
CustomUrlHelpersTest: test_direct_paths
|
128
|
+
---------------------------------------
|
129
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
132
|
+
------------------------------------------------------------------------------
|
133
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
134
|
+
------------------------------------------------------------------------------
|
135
|
+
[1m[36m (1.0ms)[0m [1mbegin transaction[0m
|
136
|
+
----------------------------------------------------------------------
|
137
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
138
|
+
----------------------------------------------------------------------
|
139
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
141
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142
|
+
--------------------------------------
|
143
|
+
CustomUrlHelpersTest: test_direct_urls
|
144
|
+
--------------------------------------
|
145
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
146
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
147
|
+
------------------------------------------------------------------------------
|
148
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
149
|
+
------------------------------------------------------------------------------
|
150
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
151
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
152
|
+
---------------------------------------
|
153
|
+
CustomUrlHelpersTest: test_direct_paths
|
154
|
+
---------------------------------------
|
155
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
156
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
157
|
+
----------------------------------------------------------------------
|
158
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
159
|
+
----------------------------------------------------------------------
|
160
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
161
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
162
|
+
------------------------------------------------------------------------------
|
163
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
164
|
+
------------------------------------------------------------------------------
|
165
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
166
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
167
|
+
----------------------------------------------------------------------
|
168
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
169
|
+
----------------------------------------------------------------------
|
170
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
171
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
172
|
+
--------------------------------------
|
173
|
+
CustomUrlHelpersTest: test_direct_urls
|
174
|
+
--------------------------------------
|
175
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
176
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
177
|
+
---------------------------------------
|
178
|
+
CustomUrlHelpersTest: test_direct_paths
|
179
|
+
---------------------------------------
|
180
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
181
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
182
|
+
---------------------------------------
|
183
|
+
CustomUrlHelpersTest: test_direct_paths
|
184
|
+
---------------------------------------
|
185
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
186
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
187
|
+
---------------------------------------
|
188
|
+
CustomUrlHelpersTest: test_direct_paths
|
189
|
+
---------------------------------------
|
190
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
191
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
192
|
+
---------------------------------------
|
193
|
+
CustomUrlHelpersTest: test_direct_paths
|
194
|
+
---------------------------------------
|
195
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
196
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
197
|
+
---------------------------------------
|
198
|
+
CustomUrlHelpersTest: test_direct_paths
|
199
|
+
---------------------------------------
|
200
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
201
|
+
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
202
|
+
---------------------------------------
|
203
|
+
CustomUrlHelpersTest: test_direct_paths
|
204
|
+
---------------------------------------
|
205
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
206
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
207
|
+
---------------------------------------
|
208
|
+
CustomUrlHelpersTest: test_direct_paths
|
209
|
+
---------------------------------------
|
210
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
211
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
212
|
+
---------------------------------------
|
213
|
+
CustomUrlHelpersTest: test_direct_paths
|
214
|
+
---------------------------------------
|
215
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
216
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
217
|
+
---------------------------------------
|
218
|
+
CustomUrlHelpersTest: test_direct_paths
|
219
|
+
---------------------------------------
|
220
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
221
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
222
|
+
---------------------------------------
|
223
|
+
CustomUrlHelpersTest: test_direct_paths
|
224
|
+
---------------------------------------
|
225
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
226
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
227
|
+
---------------------------------------
|
228
|
+
CustomUrlHelpersTest: test_direct_paths
|
229
|
+
---------------------------------------
|
230
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
231
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
232
|
+
---------------------------------------
|
233
|
+
CustomUrlHelpersTest: test_direct_paths
|
234
|
+
---------------------------------------
|
235
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
236
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
237
|
+
---------------------------------------
|
238
|
+
CustomUrlHelpersTest: test_direct_paths
|
239
|
+
---------------------------------------
|
240
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
241
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
242
|
+
---------------------------------------
|
243
|
+
CustomUrlHelpersTest: test_direct_paths
|
244
|
+
---------------------------------------
|
245
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
246
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
247
|
+
---------------------------------------
|
248
|
+
CustomUrlHelpersTest: test_direct_paths
|
249
|
+
---------------------------------------
|
250
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
251
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
252
|
+
----------------------------------------------------------------------
|
253
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
254
|
+
----------------------------------------------------------------------
|
255
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
256
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
257
|
+
---------------------------------------
|
258
|
+
CustomUrlHelpersTest: test_direct_paths
|
259
|
+
---------------------------------------
|
260
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
261
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
262
|
+
------------------------------------------------------------------------------
|
263
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
264
|
+
------------------------------------------------------------------------------
|
265
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
266
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
267
|
+
--------------------------------------
|
268
|
+
CustomUrlHelpersTest: test_direct_urls
|
269
|
+
--------------------------------------
|
270
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
271
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
272
|
+
----------------------------------------------------------------------
|
273
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
274
|
+
----------------------------------------------------------------------
|
275
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
276
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
277
|
+
---------------------------------------
|
278
|
+
CustomUrlHelpersTest: test_direct_paths
|
279
|
+
---------------------------------------
|
280
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
281
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
282
|
+
------------------------------------------------------------------------------
|
283
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
284
|
+
------------------------------------------------------------------------------
|
285
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
286
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
287
|
+
--------------------------------------
|
288
|
+
CustomUrlHelpersTest: test_direct_urls
|
289
|
+
--------------------------------------
|
290
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
291
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
292
|
+
---------------------------------------
|
293
|
+
CustomUrlHelpersTest: test_direct_paths
|
294
|
+
---------------------------------------
|
295
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
296
|
+
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
297
|
+
----------------------------------------------------------------------
|
298
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
299
|
+
----------------------------------------------------------------------
|
300
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
301
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
302
|
+
--------------------------------------
|
303
|
+
CustomUrlHelpersTest: test_direct_urls
|
304
|
+
--------------------------------------
|
305
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
306
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
307
|
+
------------------------------------------------------------------------------
|
308
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
309
|
+
------------------------------------------------------------------------------
|
310
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
311
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
312
|
+
----------------------------------------------------------------------
|
313
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
314
|
+
----------------------------------------------------------------------
|
315
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
316
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
317
|
+
---------------------------------------
|
318
|
+
CustomUrlHelpersTest: test_direct_paths
|
319
|
+
---------------------------------------
|
320
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
321
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
322
|
+
------------------------------------------------------------------------------
|
323
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
324
|
+
------------------------------------------------------------------------------
|
325
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
326
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
327
|
+
--------------------------------------
|
328
|
+
CustomUrlHelpersTest: test_direct_urls
|
329
|
+
--------------------------------------
|
330
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
331
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
332
|
+
------------------------------------------------------------------------------
|
333
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
334
|
+
------------------------------------------------------------------------------
|
335
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
336
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
337
|
+
----------------------------------------------------------------------
|
338
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
339
|
+
----------------------------------------------------------------------
|
340
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
341
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
342
|
+
--------------------------------------
|
343
|
+
CustomUrlHelpersTest: test_direct_urls
|
344
|
+
--------------------------------------
|
345
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
346
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
347
|
+
---------------------------------------
|
348
|
+
CustomUrlHelpersTest: test_direct_paths
|
349
|
+
---------------------------------------
|
350
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
351
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
352
|
+
----------------------------------------------------------------------
|
353
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
354
|
+
----------------------------------------------------------------------
|
355
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
356
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
357
|
+
---------------------------------------
|
358
|
+
CustomUrlHelpersTest: test_direct_paths
|
359
|
+
---------------------------------------
|
360
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
361
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
362
|
+
------------------------------------------------------------------------------
|
363
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
364
|
+
------------------------------------------------------------------------------
|
365
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
366
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
367
|
+
--------------------------------------
|
368
|
+
CustomUrlHelpersTest: test_direct_urls
|
369
|
+
--------------------------------------
|
370
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
371
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
372
|
+
------------------------------------------------------------------------------
|
373
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
374
|
+
------------------------------------------------------------------------------
|
375
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
376
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
377
|
+
----------------------------------------------------------------------
|
378
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
379
|
+
----------------------------------------------------------------------
|
380
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
381
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
382
|
+
---------------------------------------
|
383
|
+
CustomUrlHelpersTest: test_direct_paths
|
384
|
+
---------------------------------------
|
385
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
386
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
387
|
+
--------------------------------------
|
388
|
+
CustomUrlHelpersTest: test_direct_urls
|
389
|
+
--------------------------------------
|
390
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
391
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
392
|
+
--------------------------------------
|
393
|
+
CustomUrlHelpersTest: test_direct_urls
|
394
|
+
--------------------------------------
|
395
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
396
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
397
|
+
------------------------------------------------------------------------------
|
398
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
399
|
+
------------------------------------------------------------------------------
|
400
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
401
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
402
|
+
----------------------------------------------------------------------
|
403
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
404
|
+
----------------------------------------------------------------------
|
405
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
406
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
407
|
+
---------------------------------------
|
408
|
+
CustomUrlHelpersTest: test_direct_paths
|
409
|
+
---------------------------------------
|
410
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
411
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
412
|
+
--------------------------------------
|
413
|
+
CustomUrlHelpersTest: test_direct_urls
|
414
|
+
--------------------------------------
|
415
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
416
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
417
|
+
------------------------------------------------------------------------------
|
418
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
419
|
+
------------------------------------------------------------------------------
|
420
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
421
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
422
|
+
----------------------------------------------------------------------
|
423
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
424
|
+
----------------------------------------------------------------------
|
425
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
426
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
427
|
+
---------------------------------------
|
428
|
+
CustomUrlHelpersTest: test_direct_paths
|
429
|
+
---------------------------------------
|
430
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
431
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
432
|
+
---------------------------------------
|
433
|
+
CustomUrlHelpersTest: test_direct_paths
|
434
|
+
---------------------------------------
|
435
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
436
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
437
|
+
--------------------------------------
|
438
|
+
CustomUrlHelpersTest: test_direct_urls
|
439
|
+
--------------------------------------
|
440
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
441
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
442
|
+
------------------------------------------------------------------------------
|
443
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
444
|
+
------------------------------------------------------------------------------
|
445
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
446
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
447
|
+
----------------------------------------------------------------------
|
448
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
449
|
+
----------------------------------------------------------------------
|
450
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
451
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
452
|
+
---------------------------------------
|
453
|
+
CustomUrlHelpersTest: test_direct_paths
|
454
|
+
---------------------------------------
|
455
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
456
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
457
|
+
------------------------------------------------------------------------------
|
458
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
459
|
+
------------------------------------------------------------------------------
|
460
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
461
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
462
|
+
--------------------------------------
|
463
|
+
CustomUrlHelpersTest: test_direct_urls
|
464
|
+
--------------------------------------
|
465
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
466
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
467
|
+
----------------------------------------------------------------------
|
468
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
469
|
+
----------------------------------------------------------------------
|
470
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
471
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
472
|
+
------------------------------------------------------------------------------
|
473
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
474
|
+
------------------------------------------------------------------------------
|
475
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
476
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
477
|
+
---------------------------------------
|
478
|
+
CustomUrlHelpersTest: test_direct_paths
|
479
|
+
---------------------------------------
|
480
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
482
|
+
----------------------------------------------------------------------
|
483
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
484
|
+
----------------------------------------------------------------------
|
485
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
486
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
487
|
+
--------------------------------------
|
488
|
+
CustomUrlHelpersTest: test_direct_urls
|
489
|
+
--------------------------------------
|
490
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
491
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
492
|
+
----------------------------------------------------------------------
|
493
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
494
|
+
----------------------------------------------------------------------
|
495
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
496
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
497
|
+
------------------------------------------------------------------------------
|
498
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
499
|
+
------------------------------------------------------------------------------
|
500
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
501
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
502
|
+
---------------------------------------
|
503
|
+
CustomUrlHelpersTest: test_direct_paths
|
504
|
+
---------------------------------------
|
505
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
506
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
507
|
+
--------------------------------------
|
508
|
+
CustomUrlHelpersTest: test_direct_urls
|
509
|
+
--------------------------------------
|
510
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
511
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
512
|
+
---------------------------------------
|
513
|
+
CustomUrlHelpersTest: test_direct_paths
|
514
|
+
---------------------------------------
|
515
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
516
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
517
|
+
------------------------------------------------------------------------------
|
518
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
519
|
+
------------------------------------------------------------------------------
|
520
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
521
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
522
|
+
----------------------------------------------------------------------
|
523
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
524
|
+
----------------------------------------------------------------------
|
525
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
526
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
527
|
+
--------------------------------------
|
528
|
+
CustomUrlHelpersTest: test_direct_urls
|
529
|
+
--------------------------------------
|
530
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
531
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
532
|
+
------------------------------------
|
533
|
+
DirectRoutesTest: test_direct_routes
|
534
|
+
------------------------------------
|
535
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
536
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
537
|
+
---------------------------------------
|
538
|
+
CustomUrlHelpersTest: test_direct_paths
|
539
|
+
---------------------------------------
|
540
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
541
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
542
|
+
--------------------------------------
|
543
|
+
CustomUrlHelpersTest: test_direct_urls
|
544
|
+
--------------------------------------
|
545
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
546
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
547
|
+
------------------------------------------------------------------------------
|
548
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
549
|
+
------------------------------------------------------------------------------
|
550
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
551
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
552
|
+
----------------------------------------------------------------------
|
553
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
554
|
+
----------------------------------------------------------------------
|
555
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
556
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
557
|
+
------------------------------------
|
558
|
+
DirectRoutesTest: test_direct_routes
|
559
|
+
------------------------------------
|
560
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
561
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
562
|
+
------------------------------------------------------------------------------
|
563
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
564
|
+
------------------------------------------------------------------------------
|
565
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
566
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
567
|
+
----------------------------------------------------------------------
|
568
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
569
|
+
----------------------------------------------------------------------
|
570
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
571
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
572
|
+
---------------------------------------
|
573
|
+
CustomUrlHelpersTest: test_direct_paths
|
574
|
+
---------------------------------------
|
575
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
576
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
577
|
+
--------------------------------------
|
578
|
+
CustomUrlHelpersTest: test_direct_urls
|
579
|
+
--------------------------------------
|
580
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
581
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
582
|
+
------------------------------------
|
583
|
+
DirectRoutesTest: test_direct_routes
|
584
|
+
------------------------------------
|
585
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
586
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
587
|
+
------------------------------------------------------------------------------
|
588
|
+
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
589
|
+
------------------------------------------------------------------------------
|
590
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
591
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
592
|
+
----------------------------------------------------------------------
|
593
|
+
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
594
|
+
----------------------------------------------------------------------
|
595
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
596
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
597
|
+
---------------------------------------
|
598
|
+
CustomUrlHelpersTest: test_direct_paths
|
599
|
+
---------------------------------------
|
600
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
601
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
602
|
+
--------------------------------------
|
603
|
+
CustomUrlHelpersTest: test_direct_urls
|
604
|
+
--------------------------------------
|
605
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
606
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
607
|
+
------------------------------------
|
608
|
+
DirectRoutesTest: test_direct_routes
|
609
|
+
------------------------------------
|
610
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "test_helper"
|
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
|
+
|
9
|
+
class DirectRoutesTest < ActionView::TestCase
|
10
|
+
class Linkable
|
11
|
+
attr_reader :id
|
12
|
+
|
13
|
+
def self.name
|
14
|
+
super.demodulize
|
15
|
+
end
|
16
|
+
|
17
|
+
def initialize(id)
|
18
|
+
@id = id
|
19
|
+
end
|
20
|
+
|
21
|
+
def linkable_type
|
22
|
+
self.class.name.underscore
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
class Category < Linkable; end
|
27
|
+
class Collection < Linkable; end
|
28
|
+
class Product < Linkable; end
|
29
|
+
|
30
|
+
Routes = ActionDispatch::Routing::RouteSet.new
|
31
|
+
Routes.draw do
|
32
|
+
resources :categories, :collections, :products
|
33
|
+
direct(:linkable) { |linkable| [:"#{linkable.linkable_type}", { id: linkable.id }] }
|
34
|
+
end
|
35
|
+
|
36
|
+
include Routes.url_helpers
|
37
|
+
|
38
|
+
def setup
|
39
|
+
@category = Category.new("1")
|
40
|
+
@collection = Collection.new("2")
|
41
|
+
@product = Product.new("3")
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_direct_routes
|
45
|
+
assert_equal "/categories/1", linkable_path(@category)
|
46
|
+
assert_equal "/collections/2", linkable_path(@collection)
|
47
|
+
assert_equal "/products/3", linkable_path(@product)
|
48
|
+
|
49
|
+
assert_equal "http://test.host/categories/1", linkable_url(@category)
|
50
|
+
assert_equal "http://test.host/collections/2", linkable_url(@collection)
|
51
|
+
assert_equal "http://test.host/products/3", linkable_url(@product)
|
52
|
+
end
|
53
|
+
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hamuyuuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -165,6 +165,7 @@ files:
|
|
165
165
|
- lib/action_dispatch/routing/direct_routes/route_set/custom_url_helper.rb
|
166
166
|
- lib/action_dispatch/routing/direct_routes/route_set/named_route_collection.rb
|
167
167
|
- lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb
|
168
|
+
- lib/action_dispatch/routing/direct_routes/url_for.rb
|
168
169
|
- lib/actionpack/direct_routes.rb
|
169
170
|
- lib/actionpack/direct_routes/version.rb
|
170
171
|
- test/application/routing_test.rb
|
@@ -199,11 +200,15 @@ files:
|
|
199
200
|
- test/dummy/config/locales/en.yml
|
200
201
|
- test/dummy/config/routes.rb
|
201
202
|
- test/dummy/config/secrets.yml
|
203
|
+
- test/dummy/db/test.sqlite3
|
204
|
+
- test/dummy/log/development.log
|
205
|
+
- test/dummy/log/test.log
|
202
206
|
- test/dummy/public/404.html
|
203
207
|
- test/dummy/public/422.html
|
204
208
|
- test/dummy/public/500.html
|
205
209
|
- test/dummy/public/favicon.ico
|
206
210
|
- test/integration/custom_url_helpers_test.rb
|
211
|
+
- test/integration/direct_routes_test.rb
|
207
212
|
- test/test_helper.rb
|
208
213
|
homepage: https://github.com/hamuyuuki/actionpack-direct_routes
|
209
214
|
licenses:
|
@@ -230,41 +235,45 @@ signing_key:
|
|
230
235
|
specification_version: 4
|
231
236
|
summary: Backport Direct routes into Rails 4 and Rails 5.0.
|
232
237
|
test_files:
|
238
|
+
- test/test_helper.rb
|
239
|
+
- test/application/routing_test.rb
|
240
|
+
- test/integration/direct_routes_test.rb
|
233
241
|
- test/integration/custom_url_helpers_test.rb
|
234
|
-
- test/dummy/
|
235
|
-
- test/dummy/
|
236
|
-
- test/dummy/
|
242
|
+
- test/dummy/app/controllers/application_controller.rb
|
243
|
+
- test/dummy/app/helpers/application_helper.rb
|
244
|
+
- test/dummy/app/views/layouts/application.html.erb
|
245
|
+
- test/dummy/app/assets/javascripts/application.js
|
246
|
+
- test/dummy/app/assets/stylesheets/application.css
|
237
247
|
- test/dummy/config/locales/en.yml
|
238
|
-
- test/dummy/config/
|
239
|
-
- test/dummy/config/
|
248
|
+
- test/dummy/config/database.yml
|
249
|
+
- test/dummy/config/environments/production.rb
|
250
|
+
- test/dummy/config/environments/development.rb
|
251
|
+
- test/dummy/config/environments/test.rb
|
252
|
+
- test/dummy/config/secrets.yml
|
253
|
+
- test/dummy/config/environment.rb
|
254
|
+
- test/dummy/config/routes.rb
|
255
|
+
- test/dummy/config/boot.rb
|
256
|
+
- test/dummy/config/application.rb
|
240
257
|
- test/dummy/config/initializers/to_time_preserves_timezone.rb
|
241
|
-
- test/dummy/config/initializers/
|
258
|
+
- test/dummy/config/initializers/assets.rb
|
259
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
260
|
+
- test/dummy/config/initializers/mime_types.rb
|
242
261
|
- test/dummy/config/initializers/session_store.rb
|
243
262
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
244
|
-
- test/dummy/config/initializers/
|
263
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
245
264
|
- test/dummy/config/initializers/inflections.rb
|
246
|
-
- test/dummy/config/initializers/
|
247
|
-
- test/dummy/
|
248
|
-
- test/dummy/config/environment.rb
|
249
|
-
- test/dummy/config/database.yml
|
250
|
-
- test/dummy/config/environments/development.rb
|
251
|
-
- test/dummy/config/environments/production.rb
|
252
|
-
- test/dummy/config/environments/test.rb
|
253
|
-
- test/dummy/bin/setup
|
254
|
-
- test/dummy/bin/rails
|
255
|
-
- test/dummy/bin/bundle
|
256
|
-
- test/dummy/bin/rake
|
257
|
-
- test/dummy/app/views/layouts/application.html.erb
|
258
|
-
- test/dummy/app/assets/stylesheets/application.css
|
259
|
-
- test/dummy/app/assets/javascripts/application.js
|
260
|
-
- test/dummy/app/controllers/application_controller.rb
|
261
|
-
- test/dummy/app/helpers/application_helper.rb
|
262
|
-
- test/dummy/public/404.html
|
263
|
-
- test/dummy/public/favicon.ico
|
265
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
266
|
+
- test/dummy/README.rdoc
|
264
267
|
- test/dummy/public/500.html
|
268
|
+
- test/dummy/public/favicon.ico
|
265
269
|
- test/dummy/public/422.html
|
270
|
+
- test/dummy/public/404.html
|
271
|
+
- test/dummy/bin/bundle
|
272
|
+
- test/dummy/bin/rake
|
273
|
+
- test/dummy/bin/rails
|
274
|
+
- test/dummy/bin/setup
|
266
275
|
- test/dummy/config.ru
|
276
|
+
- test/dummy/db/test.sqlite3
|
267
277
|
- test/dummy/Rakefile
|
268
|
-
- test/dummy/
|
269
|
-
- test/
|
270
|
-
- test/test_helper.rb
|
278
|
+
- test/dummy/log/development.log
|
279
|
+
- test/dummy/log/test.log
|