route_translator 5.2.2 → 5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/route_translator/extensions/route_set.rb +12 -2
- data/lib/route_translator/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb09c56a711ef026fe2a5c9327bed5e777a930ec
|
4
|
+
data.tar.gz: f07f1b7b9c3a82689693518f022dfc4689341d95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c9ab5b49b8f8ed3627f404a3072bf493c0c262941625c7ebc104e6a73b31ce8a7437f7aaafd013d4495bbaf8f218727d37c85f9fbbbf4b9cc37a33cca8414df
|
7
|
+
data.tar.gz: aa5a98660143bbcc22fb489333026d681736b2377334927a060712772418e2bf18113a58149aa534d733a2f7a0db9217ef66e12964a961a74f8b64b6a0be1ee7
|
data/CHANGELOG.md
CHANGED
@@ -11,13 +11,23 @@ module ActionDispatch
|
|
11
11
|
translated_path_ast = ::ActionDispatch::Journey::Parser.parse(translated_path)
|
12
12
|
translated_mapping = ::ActionDispatch::Routing::Mapper::Mapping.build(scope, self, translated_path_ast, controller, default_action, to, via, formatted, translated_options_constraints, anchor, translated_options)
|
13
13
|
|
14
|
-
|
14
|
+
add_route_to_set translated_mapping, translated_path_ast, translated_name, anchor
|
15
15
|
end
|
16
16
|
|
17
17
|
if RouteTranslator.config.generate_unnamed_unlocalized_routes
|
18
|
-
|
18
|
+
add_route_to_set mapping, path_ast, nil, anchor
|
19
19
|
elsif RouteTranslator.config.generate_unlocalized_routes
|
20
|
+
add_route_to_set mapping, path_ast, name, anchor
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def add_route_to_set(mapping, path_ast, name, anchor)
|
27
|
+
if method(:add_route).arity == 4
|
20
28
|
add_route mapping, path_ast, name, anchor
|
29
|
+
else
|
30
|
+
add_route mapping, name
|
21
31
|
end
|
22
32
|
end
|
23
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: route_translator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geremia Taglialatela
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 5.0.0.1
|
22
22
|
- - "<="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 5.1.0.
|
24
|
+
version: 5.1.0.rc1
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: 5.0.0.1
|
32
32
|
- - "<="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 5.1.0.
|
34
|
+
version: 5.1.0.rc1
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: actionpack
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
version: 5.0.0.1
|
42
42
|
- - "<="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 5.1.0.
|
44
|
+
version: 5.1.0.rc1
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
version: 5.0.0.1
|
52
52
|
- - "<="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 5.1.0.
|
54
|
+
version: 5.1.0.rc1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: appraisal
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,7 +117,7 @@ dependencies:
|
|
117
117
|
version: 5.0.0.1
|
118
118
|
- - "<="
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 5.1.0.
|
120
|
+
version: 5.1.0.rc1
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
123
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -127,7 +127,7 @@ dependencies:
|
|
127
127
|
version: 5.0.0.1
|
128
128
|
- - "<="
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 5.1.0.
|
130
|
+
version: 5.1.0.rc1
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: rake
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|