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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e052715e0f6568065a6752767ba185679e0b690
4
- data.tar.gz: b53d37139709fc1786fed663161e64438d60fe9d
3
+ metadata.gz: eb09c56a711ef026fe2a5c9327bed5e777a930ec
4
+ data.tar.gz: f07f1b7b9c3a82689693518f022dfc4689341d95
5
5
  SHA512:
6
- metadata.gz: 87dbd3ae753dd22a43a4e3ceab878d20d30a640a46adbd5cb945592de108ad0bad55347246738f3f0faf21327044a6f236f164f4057bb459a12ca57b380f6a1c
7
- data.tar.gz: 5e35380e56296c10c85ff144c525d32c5b8bfc7da17a87d1f13c93cb1839228004f907a5c7286ae923ae6770d3e441412635d2d463c474ec62e9f853384a918c
6
+ metadata.gz: 1c9ab5b49b8f8ed3627f404a3072bf493c0c262941625c7ebc104e6a73b31ce8a7437f7aaafd013d4495bbaf8f218727d37c85f9fbbbf4b9cc37a33cca8414df
7
+ data.tar.gz: aa5a98660143bbcc22fb489333026d681736b2377334927a060712772418e2bf18113a58149aa534d733a2f7a0db9217ef66e12964a961a74f8b64b6a0be1ee7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.3.0 / 2017-03-21
4
+
5
+ * [FEATURE] Rails 5.1.0.rc1 compatibility
6
+
3
7
  ## 5.2.2 / 2017-03-21
4
8
 
5
9
  * [BUGFIX] Lock maximum Rails version to 5.1.0.beta1
@@ -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
- add_route translated_mapping, translated_path_ast, translated_name, anchor
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
- add_route mapping, path_ast, nil, anchor
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module RouteTranslator
3
- VERSION = '5.2.2'.freeze
3
+ VERSION = '5.3.0'.freeze
4
4
  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.2.2
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.beta1
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.beta1
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.beta1
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.beta1
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.beta1
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.beta1
130
+ version: 5.1.0.rc1
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: rake
133
133
  requirement: !ruby/object:Gem::Requirement