route_translator 5.0.3 → 5.0.4
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/translator.rb +6 -3
- data/lib/route_translator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 082c2e8186923d0e715cc9540942a23fc09a9f85
|
4
|
+
data.tar.gz: 41803873b2329a079d55cc1cc3251402f7c0dfc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b78458687cdaba7cd60f658f5973319f1cb05240db25be435446bdcba0a198d0555fc44f1da5bbe334c97ca8c5a9050a690339ddcad88c7a44c03778e02c3d1
|
7
|
+
data.tar.gz: 5d0a9e7baec151c0bcfe7cd26b3ef166d8e5bb18c22e63d931f13f5adb0ebc7c433551cbddd7b9965821de58970c92b7922e9834b4fdb540e5036dc727ad72a9
|
data/CHANGELOG.md
CHANGED
@@ -46,11 +46,14 @@ module RouteTranslator
|
|
46
46
|
next
|
47
47
|
end
|
48
48
|
|
49
|
-
translated_options_constraints = options_constraints.
|
49
|
+
translated_options_constraints = options_constraints.dup
|
50
50
|
translated_options = options.dup
|
51
51
|
|
52
|
-
translated_options_constraints[
|
53
|
-
|
52
|
+
if translated_options_constraints.respond_to?(:[]=)
|
53
|
+
translated_options_constraints[RouteTranslator.locale_param_key] = locale.to_s
|
54
|
+
end
|
55
|
+
|
56
|
+
translated_options[RouteTranslator.locale_param_key] = locale.to_s.gsub('native_', '') unless translated_options.include?(RouteTranslator.locale_param_key)
|
54
57
|
|
55
58
|
translated_name = translate_name(name, locale, route_set.named_routes.names)
|
56
59
|
|
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.0.
|
4
|
+
version: 5.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geremia Taglialatela
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-11-
|
13
|
+
date: 2016-11-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|