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