actionpack-direct_routes 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -4
- data/lib/action_dispatch/routing/direct_routes/mapper/scope.rb +5 -1
- data/lib/actionpack/direct_routes/version.rb +1 -1
- data/test/dummy/log/development.log +2 -0
- data/test/dummy/log/test.log +323 -153
- data/test/integration/custom_url_helpers_test.rb +17 -5
- metadata +31 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a50d92b9b2612e7e509092199f4b3b3e2579739c
|
4
|
+
data.tar.gz: 843d1ef1b97141f48430383f05342295cac18588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05cf6ba77aa7eeee0b46a8022b44eb275630692b4bf94fe85ef7403860997a7b4c4b3e69e1652395e05d37f532c3dd9b8e959acd9311c7d12e9aa1be788e4125
|
7
|
+
data.tar.gz: 15e429e2b3ca72c0ad2aa745bd18fda1810e17fcb5fd5a3aacdbd8cf996cdc0aeeb7a87af5ebcfabc45640e9b228ee63628f5940e293fdcd5dde8107d559ce55
|
data/README.md
CHANGED
@@ -33,10 +33,6 @@ end
|
|
33
33
|
|
34
34
|
For details to [Rails Routing from the Outside In — Ruby on Rails Guides](https://guides.rubyonrails.org/routing.html#direct-routes)
|
35
35
|
|
36
|
-
|
37
|
-
## Limitation
|
38
|
-
You can backport Direct routes into Rails 4.2 only now.
|
39
|
-
|
40
36
|
## Contributing
|
41
37
|
Bug reports and pull requests are welcome on GitHub at https://github.com/hamuyuuki/actionpack-direct_routes. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
42
38
|
|
@@ -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)
|
data/test/dummy/log/test.log
CHANGED
@@ -3,110 +3,140 @@
|
|
3
3
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
4
4
|
------------------------------------------------------------------------------
|
5
5
|
[1m[35m (0.1ms)[0m rollback transaction
|
6
|
-
[1m[36m (0.
|
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
|
7
12
|
---------------------------------------
|
8
13
|
CustomUrlHelpersTest: test_direct_paths
|
9
14
|
---------------------------------------
|
10
|
-
[1m[35m (0.
|
11
|
-
[1m[36m (0.
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12
17
|
--------------------------------------
|
13
18
|
CustomUrlHelpersTest: test_direct_urls
|
14
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
|
+
-----------------------------------------------------------------------------
|
15
29
|
[1m[35m (0.1ms)[0m rollback transaction
|
16
|
-
[1m[
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
+
----------------------------------------------------------------------------
|
21
35
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
[1m[35m (
|
26
|
-
[1m[
|
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
|
27
42
|
--------------------------------------
|
28
43
|
CustomUrlHelpersTest: test_direct_urls
|
29
44
|
--------------------------------------
|
30
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
31
45
|
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
32
46
|
----------------------------------------------------------------------
|
33
47
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
34
48
|
----------------------------------------------------------------------
|
35
49
|
[1m[35m (0.1ms)[0m rollback transaction
|
36
|
-
[1m[
|
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
|
37
56
|
------------------------------------------------------------------------------
|
38
57
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
39
58
|
------------------------------------------------------------------------------
|
59
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
40
60
|
[1m[35m (0.1ms)[0m rollback transaction
|
41
61
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
42
62
|
----------------------------------------------------------------------
|
43
63
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
44
64
|
----------------------------------------------------------------------
|
45
|
-
[1m[35m (0.
|
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
|
46
71
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
47
72
|
------------------------------------------------------------------------------
|
48
73
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
49
74
|
------------------------------------------------------------------------------
|
50
75
|
[1m[35m (0.1ms)[0m rollback transaction
|
51
|
-
[1m[36m (0.
|
52
|
-
--------------------------------------
|
53
|
-
CustomUrlHelpersTest: test_direct_urls
|
54
|
-
--------------------------------------
|
55
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
56
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
76
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
57
77
|
---------------------------------------
|
58
78
|
CustomUrlHelpersTest: test_direct_paths
|
59
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
|
+
----------------------------------------------------------------------------
|
60
89
|
[1m[35m (0.1ms)[0m rollback transaction
|
61
|
-
[1m[
|
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
|
62
106
|
---------------------------------------
|
63
107
|
CustomUrlHelpersTest: test_direct_paths
|
64
108
|
---------------------------------------
|
109
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65
110
|
[1m[35m (0.1ms)[0m rollback transaction
|
66
111
|
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
67
112
|
--------------------------------------
|
68
113
|
CustomUrlHelpersTest: test_direct_urls
|
69
114
|
--------------------------------------
|
70
|
-
[1m[
|
71
|
-
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
115
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
72
116
|
------------------------------------------------------------------------------
|
73
117
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
74
118
|
------------------------------------------------------------------------------
|
75
119
|
[1m[35m (0.1ms)[0m rollback transaction
|
76
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
77
|
-
----------------------------------------------------------------------
|
78
|
-
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
79
|
-
----------------------------------------------------------------------
|
80
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
81
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82
|
-
----------------------------------------------------------------------
|
83
|
-
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
84
|
-
----------------------------------------------------------------------
|
85
120
|
[1m[35m (0.1ms)[0m rollback transaction
|
86
|
-
[1m[36m (0.
|
121
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
122
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
87
123
|
--------------------------------------
|
88
124
|
CustomUrlHelpersTest: test_direct_urls
|
89
125
|
--------------------------------------
|
90
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
91
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
92
|
-
------------------------------------------------------------------------------
|
93
|
-
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
94
|
-
------------------------------------------------------------------------------
|
95
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
96
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
97
126
|
---------------------------------------
|
98
127
|
CustomUrlHelpersTest: test_direct_paths
|
99
128
|
---------------------------------------
|
100
129
|
[1m[35m (0.1ms)[0m rollback transaction
|
101
|
-
[1m[
|
130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
102
132
|
------------------------------------------------------------------------------
|
103
133
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
104
134
|
------------------------------------------------------------------------------
|
105
|
-
[1m[
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
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
|
110
140
|
[1m[35m (0.0ms)[0m rollback transaction
|
111
141
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
112
142
|
--------------------------------------
|
@@ -114,140 +144,240 @@ CustomUrlHelpersTest: test_direct_urls
|
|
114
144
|
--------------------------------------
|
115
145
|
[1m[35m (0.1ms)[0m rollback transaction
|
116
146
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
117
|
-
----------------------------------------------------------------------
|
118
|
-
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
119
|
-
----------------------------------------------------------------------
|
120
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
121
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
122
147
|
------------------------------------------------------------------------------
|
123
148
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
124
149
|
------------------------------------------------------------------------------
|
125
|
-
[1m[35m (0.
|
150
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
126
151
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
127
152
|
---------------------------------------
|
128
153
|
CustomUrlHelpersTest: test_direct_paths
|
129
154
|
---------------------------------------
|
130
155
|
[1m[35m (0.1ms)[0m rollback transaction
|
131
|
-
[1m[36m (0.
|
156
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
132
157
|
----------------------------------------------------------------------
|
133
158
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
134
159
|
----------------------------------------------------------------------
|
135
|
-
[1m[35m (0.
|
136
|
-
[1m[
|
137
|
-
|
138
|
-
CustomUrlHelpersTest:
|
139
|
-
|
140
|
-
[1m[35m (0.
|
141
|
-
[1m[
|
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
|
142
172
|
--------------------------------------
|
143
173
|
CustomUrlHelpersTest: test_direct_urls
|
144
174
|
--------------------------------------
|
145
|
-
[1m[35m (0.
|
146
|
-
[1m[
|
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
|
147
252
|
----------------------------------------------------------------------
|
148
253
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
149
254
|
----------------------------------------------------------------------
|
150
|
-
[1m[35m (0.1ms)[0m
|
151
|
-
[1m[
|
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
|
152
262
|
------------------------------------------------------------------------------
|
153
263
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
154
264
|
------------------------------------------------------------------------------
|
155
|
-
[1m[35m (0.
|
156
|
-
[1m[
|
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
|
157
277
|
---------------------------------------
|
158
278
|
CustomUrlHelpersTest: test_direct_paths
|
159
279
|
---------------------------------------
|
160
|
-
[1m[35m (0.1ms)[0m
|
161
|
-
[1m[
|
280
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
281
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
162
282
|
------------------------------------------------------------------------------
|
163
283
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
164
284
|
------------------------------------------------------------------------------
|
165
|
-
[1m[35m (
|
166
|
-
[1m[
|
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
|
167
292
|
---------------------------------------
|
168
293
|
CustomUrlHelpersTest: test_direct_paths
|
169
294
|
---------------------------------------
|
170
|
-
[1m[35m (0.1ms)[0m
|
171
|
-
[1m[
|
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
|
172
302
|
--------------------------------------
|
173
303
|
CustomUrlHelpersTest: test_direct_urls
|
174
304
|
--------------------------------------
|
175
|
-
[1m[35m (0.1ms)[0m
|
176
|
-
[1m[
|
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
|
177
312
|
----------------------------------------------------------------------
|
178
313
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
179
314
|
----------------------------------------------------------------------
|
180
|
-
[1m[35m (0.1ms)[0m
|
181
|
-
[1m[
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
[1m[
|
186
|
-
|
187
|
-
RoutingTest: test_reloads_routes_when_configuration_is_changed_in_development
|
188
|
-
-----------------------------------------------------------------------------
|
189
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
190
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
191
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
192
|
-
-------------------------------------------------------------
|
193
|
-
RoutingTest: test_routes_are_added_and_removed_when_reloading
|
194
|
-
-------------------------------------------------------------
|
195
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
196
|
-
---------------------------------------------------------
|
197
|
-
RoutingTest: test_named_routes_are_cleared_when_reloading
|
198
|
-
---------------------------------------------------------
|
199
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
200
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
201
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
202
322
|
------------------------------------------------------------------------------
|
203
323
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
204
324
|
------------------------------------------------------------------------------
|
205
|
-
[1m[35m (0.
|
206
|
-
[1m[
|
325
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
326
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
207
327
|
--------------------------------------
|
208
328
|
CustomUrlHelpersTest: test_direct_urls
|
209
329
|
--------------------------------------
|
210
|
-
[1m[35m (0.
|
211
|
-
[1m[
|
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
|
212
347
|
---------------------------------------
|
213
348
|
CustomUrlHelpersTest: test_direct_paths
|
214
349
|
---------------------------------------
|
215
|
-
[1m[35m (0.
|
350
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
216
351
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
217
352
|
----------------------------------------------------------------------
|
218
353
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
219
354
|
----------------------------------------------------------------------
|
220
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
221
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
222
|
-
------------------------------------------------------------------------------
|
223
|
-
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
224
|
-
------------------------------------------------------------------------------
|
225
355
|
[1m[35m (0.1ms)[0m rollback transaction
|
226
356
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
227
|
-
----------------------------------------------------------------------
|
228
|
-
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
229
|
-
----------------------------------------------------------------------
|
230
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
231
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
232
357
|
---------------------------------------
|
233
358
|
CustomUrlHelpersTest: test_direct_paths
|
234
359
|
---------------------------------------
|
235
|
-
[1m[35m (0.
|
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
|
236
366
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
237
367
|
--------------------------------------
|
238
368
|
CustomUrlHelpersTest: test_direct_urls
|
239
369
|
--------------------------------------
|
240
|
-
[1m[35m (0.
|
370
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
241
371
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
242
372
|
------------------------------------------------------------------------------
|
243
373
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
244
374
|
------------------------------------------------------------------------------
|
245
|
-
[1m[35m (0.
|
246
|
-
[1m[36m (0.
|
375
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
376
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
247
377
|
----------------------------------------------------------------------
|
248
378
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
249
379
|
----------------------------------------------------------------------
|
250
|
-
[1m[35m (0.
|
380
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
251
381
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252
382
|
---------------------------------------
|
253
383
|
CustomUrlHelpersTest: test_direct_paths
|
@@ -257,83 +387,118 @@ CustomUrlHelpersTest: test_direct_paths
|
|
257
387
|
--------------------------------------
|
258
388
|
CustomUrlHelpersTest: test_direct_urls
|
259
389
|
--------------------------------------
|
260
|
-
[1m[35m (0.
|
390
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
261
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
|
262
397
|
------------------------------------------------------------------------------
|
263
398
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
264
399
|
------------------------------------------------------------------------------
|
265
|
-
[1m[35m (0.
|
266
|
-
[1m[36m (0.
|
267
|
-
---------------------------------------
|
268
|
-
CustomUrlHelpersTest: test_direct_paths
|
269
|
-
---------------------------------------
|
270
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
271
|
-
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
400
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
401
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
272
402
|
----------------------------------------------------------------------
|
273
403
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
274
404
|
----------------------------------------------------------------------
|
275
|
-
[1m[35m (0.
|
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
|
276
411
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
277
412
|
--------------------------------------
|
278
413
|
CustomUrlHelpersTest: test_direct_urls
|
279
414
|
--------------------------------------
|
280
|
-
[1m[35m (0.
|
415
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
281
416
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
282
417
|
------------------------------------------------------------------------------
|
283
418
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
284
419
|
------------------------------------------------------------------------------
|
285
|
-
[1m[35m (0.
|
286
|
-
[1m[36m (0.
|
420
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
421
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
287
422
|
----------------------------------------------------------------------
|
288
423
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
289
424
|
----------------------------------------------------------------------
|
290
|
-
[1m[35m (0.
|
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
|
291
431
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
292
432
|
---------------------------------------
|
293
433
|
CustomUrlHelpersTest: test_direct_paths
|
294
434
|
---------------------------------------
|
295
435
|
[1m[35m (0.1ms)[0m rollback transaction
|
296
|
-
[1m[36m (0.
|
436
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
297
437
|
--------------------------------------
|
298
438
|
CustomUrlHelpersTest: test_direct_urls
|
299
439
|
--------------------------------------
|
300
|
-
[1m[35m (0.
|
301
|
-
[1m[36m (0.
|
440
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
441
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
302
442
|
------------------------------------------------------------------------------
|
303
443
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
304
444
|
------------------------------------------------------------------------------
|
305
|
-
[1m[35m (0.
|
306
|
-
[1m[36m (0.
|
445
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
446
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
307
447
|
----------------------------------------------------------------------
|
308
448
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
309
449
|
----------------------------------------------------------------------
|
310
|
-
[1m[35m (0.
|
311
|
-
[1m[36m (0.
|
450
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
451
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
312
452
|
---------------------------------------
|
313
453
|
CustomUrlHelpersTest: test_direct_paths
|
314
454
|
---------------------------------------
|
315
|
-
[1m[35m (0.
|
316
|
-
[1m[36m (0.
|
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
|
317
462
|
--------------------------------------
|
318
463
|
CustomUrlHelpersTest: test_direct_urls
|
319
464
|
--------------------------------------
|
320
|
-
[1m[35m (0.
|
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
|
321
471
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
322
472
|
------------------------------------------------------------------------------
|
323
473
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
324
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
|
+
---------------------------------------
|
325
480
|
[1m[35m (0.1ms)[0m rollback transaction
|
326
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
|
327
487
|
--------------------------------------
|
328
488
|
CustomUrlHelpersTest: test_direct_urls
|
329
489
|
--------------------------------------
|
330
|
-
[1m[35m (0.
|
490
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
331
491
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
332
492
|
----------------------------------------------------------------------
|
333
493
|
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
334
494
|
----------------------------------------------------------------------
|
335
|
-
[1m[35m (0.
|
336
|
-
[1m[36m (0.
|
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
|
337
502
|
---------------------------------------
|
338
503
|
CustomUrlHelpersTest: test_direct_paths
|
339
504
|
---------------------------------------
|
@@ -343,18 +508,23 @@ CustomUrlHelpersTest: test_direct_paths
|
|
343
508
|
CustomUrlHelpersTest: test_direct_urls
|
344
509
|
--------------------------------------
|
345
510
|
[1m[35m (0.1ms)[0m rollback transaction
|
346
|
-
[1m[
|
347
|
-
----------------------------------------------------------------------
|
348
|
-
CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
|
349
|
-
----------------------------------------------------------------------
|
350
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
351
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
511
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
352
512
|
---------------------------------------
|
353
513
|
CustomUrlHelpersTest: test_direct_paths
|
354
514
|
---------------------------------------
|
355
|
-
[1m[35m (0.1ms)[0m
|
356
|
-
[1m[
|
515
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
516
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
357
517
|
------------------------------------------------------------------------------
|
358
518
|
CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
|
359
519
|
------------------------------------------------------------------------------
|
360
|
-
[1m[35m (0.
|
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
|
@@ -135,7 +135,7 @@ class CustomUrlHelpersTest < ActionDispatch::IntegrationTest
|
|
135
135
|
@user = User.new
|
136
136
|
@page = Page.new("6")
|
137
137
|
@path_params = { "controller" => "pages", "action" => "index" }
|
138
|
-
@unsafe_params = ActionController::Parameters.new(@
|
138
|
+
@unsafe_params = ActionController::Parameters.new(@path_params)
|
139
139
|
@safe_params = ActionController::Parameters.new(@path_params).permit(:controller, :action)
|
140
140
|
end
|
141
141
|
|
@@ -162,8 +162,14 @@ class CustomUrlHelpersTest < ActionDispatch::IntegrationTest
|
|
162
162
|
|
163
163
|
assert_equal "/", params_path(@safe_params)
|
164
164
|
assert_equal "/", Routes.url_helpers.params_path(@safe_params)
|
165
|
-
|
166
|
-
|
165
|
+
|
166
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR == 2
|
167
|
+
assert_equal "/", params_path(@unsafe_params)
|
168
|
+
assert_equal "/", Routes.url_helpers.params_path(@unsafe_params)
|
169
|
+
elsif Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR == 0
|
170
|
+
assert_raises(ArgumentError) { params_path(@unsafe_params) }
|
171
|
+
assert_raises(ArgumentError) { Routes.url_helpers.params_path(@unsafe_params) }
|
172
|
+
end
|
167
173
|
|
168
174
|
assert_equal "/basket", symbol_path
|
169
175
|
assert_equal "/basket", Routes.url_helpers.symbol_path
|
@@ -202,8 +208,14 @@ class CustomUrlHelpersTest < ActionDispatch::IntegrationTest
|
|
202
208
|
|
203
209
|
assert_equal "http://www.example.com/", params_url(@safe_params)
|
204
210
|
assert_equal "http://www.example.com/", Routes.url_helpers.params_url(@safe_params)
|
205
|
-
|
206
|
-
|
211
|
+
|
212
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR == 2
|
213
|
+
assert_equal "http://www.example.com/", params_url(@unsafe_params)
|
214
|
+
assert_equal "http://www.example.com/", Routes.url_helpers.params_url(@unsafe_params)
|
215
|
+
elsif Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR == 0
|
216
|
+
assert_raises(ArgumentError) { params_url(@unsafe_params) }
|
217
|
+
assert_raises(ArgumentError) { Routes.url_helpers.params_url(@unsafe_params) }
|
218
|
+
end
|
207
219
|
|
208
220
|
assert_equal "http://www.example.com/basket", symbol_url
|
209
221
|
assert_equal "http://www.example.com/basket", Routes.url_helpers.symbol_url
|
metadata
CHANGED
@@ -1,71 +1,83 @@
|
|
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.3.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-12-
|
11
|
+
date: 2019-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.2'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: '5.1'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.2'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: '5.1'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: activesupport
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '4.2'
|
40
|
+
- - "<"
|
32
41
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
42
|
+
version: '5.1'
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- - "
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '4.2'
|
50
|
+
- - "<"
|
39
51
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
52
|
+
version: '5.1'
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
54
|
+
name: appraisal
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
|
-
- - "
|
57
|
+
- - ">="
|
46
58
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
59
|
+
version: '0'
|
48
60
|
type: :development
|
49
61
|
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
|
-
- - "
|
64
|
+
- - ">="
|
53
65
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
66
|
+
version: '0'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
68
|
+
name: minitest
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
58
70
|
requirements:
|
59
71
|
- - "~>"
|
60
72
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
73
|
+
version: 5.1.0
|
62
74
|
type: :development
|
63
75
|
prerelease: false
|
64
76
|
version_requirements: !ruby/object:Gem::Requirement
|
65
77
|
requirements:
|
66
78
|
- - "~>"
|
67
79
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
80
|
+
version: 5.1.0
|
69
81
|
- !ruby/object:Gem::Dependency
|
70
82
|
name: rubocop
|
71
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -216,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
228
|
version: '0'
|
217
229
|
requirements: []
|
218
230
|
rubyforge_project:
|
219
|
-
rubygems_version: 2.6.14.
|
231
|
+
rubygems_version: 2.6.14.4
|
220
232
|
signing_key:
|
221
233
|
specification_version: 4
|
222
234
|
summary: Backport Direct routes into Rails 4 and Rails 5.0.
|