route_translator 5.5.0 → 5.5.3

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
- SHA1:
3
- metadata.gz: 31c45f4f07f63d37b9cdcf3d3d03e4fa1b59c2dd
4
- data.tar.gz: 6ef546c5332a49738627d17945dc4885d27ff0d3
2
+ SHA256:
3
+ metadata.gz: 92eafbf87f1b47f669279025bcf1abbcbeac8a73def282dca54bf2bca7db5c23
4
+ data.tar.gz: 9acbda692b58a9249dd309d0efab54ef88e5c1dd3e90c2e0407d016b11adf13b
5
5
  SHA512:
6
- metadata.gz: 1db0724276af9860e0625f4658c5ed52cf8636e4367d6238f0386ac3bfa4cd9d94fcc51021cb171916f3d3887ed893cba4c445b4964e3e39bedb651437926614
7
- data.tar.gz: a0d0a239715a71ac417ebfaef82be0cbfa32ad0042afdcd45d22dd4fe434ef9bbf18002104f531a46a06eaa4a1d0ee39fd4e9533ec7ce0f89cb4990d6c6b8c6a
6
+ metadata.gz: d84d17cf3514c247f79458f92b03bfb29d5af66ecb38bd4bddb7703b8558a67a7a04b12e87a5e7bb22d103520ae5dd9810f43d32afeda380b1158a46cf9e823a
7
+ data.tar.gz: 5e8ba1168d82be80a5953e7fdd3dda48d34b17ed49cc5e87f4a72e792ec3e5ffd7140b8ef7c1c6bae261876705184a1fa4b8f0720ddc1ee462bca4d26770d4c8
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.5.3 / 2018-01-12
4
+
5
+ * [BUGFIX] Fix regression with translations containing spaces ([#181](https://github.com/enriclluelles/route_translator/issues/181))
6
+ * [ENHANCEMENT] Update development dependencies
7
+
8
+ ## 5.5.2 / 2017-12-27
9
+
10
+ * [BUGFIX] Fix regression with translations containing slashes ([#179](https://github.com/enriclluelles/route_translator/pull/179))
11
+ * [ENHANCEMENT] Test against latest Ruby versions
12
+ * [ENHANCEMENT] Update development dependencies
13
+
14
+ ## 5.5.1 / 2017-11-14
15
+
16
+ * [BUGFIX] Change spec to reflect Rails 5.1.3 change in url generation ([#172](https://github.com/enriclluelles/route_translator/issues/172))
17
+ * [ENHANCEMENT] Update development dependencies
18
+
3
19
  ## 5.5.0 / 2017-06-29
4
20
 
5
21
  * [FEATURE] Add an option to verify host path consistency (#167)
data/README.md CHANGED
@@ -362,6 +362,19 @@ people_products_favourites_es GET /people/products/fans(.:format) people/
362
362
  The gem will lookup translations under `controllers` scope first and then lookup translations under `routes` scope.
363
363
 
364
364
 
365
+ ### Change locale parameter position in the path
366
+
367
+ If you need complex routing as `/:country/:locale/path/to/some/pages`, you can specify the position of your locale parameter in the following way:
368
+
369
+ ```rb
370
+ scope ':country/:locale' do
371
+ localized do
372
+ root to: 'content#homepage'
373
+ end
374
+ end
375
+ ```
376
+
377
+
365
378
 
366
379
  ## Testing
367
380
  Testing your controllers with routes-translator is easy, just add a locale parameter for your localized routes. Otherwise, an ActionController::UrlGenerationError will raise.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RouteTranslator
4
- VERSION = '5.5.0'.freeze
4
+ VERSION = '5.5.3'.freeze
5
5
  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.5.0
4
+ version: 5.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geremia Taglialatela
@@ -10,10 +10,10 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-06-29 00:00:00.000000000 Z
13
+ date: 2018-01-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: activesupport
16
+ name: actionpack
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - ">="
@@ -33,7 +33,7 @@ dependencies:
33
33
  - !ruby/object:Gem::Version
34
34
  version: '5.2'
35
35
  - !ruby/object:Gem::Dependency
36
- name: actionpack
36
+ name: activesupport
37
37
  requirement: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
@@ -58,56 +58,56 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.1'
61
+ version: '2.2'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.1'
68
+ version: '2.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: byebug
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '9.0'
75
+ version: '9.1'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '9.0'
82
+ version: '9.1'
83
83
  - !ruby/object:Gem::Dependency
84
- name: coveralls
84
+ name: coveralls_reborn
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.8.21
89
+ version: 0.10.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.8.21
96
+ version: 0.10.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: minitest
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '5.10'
103
+ version: '5.11'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '5.10'
110
+ version: '5.11'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rails
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -134,42 +134,42 @@ dependencies:
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '12.0'
137
+ version: '12.3'
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '12.0'
144
+ version: '12.3'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: rubocop
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: 0.49.1
151
+ version: 0.52.1
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: 0.49.1
158
+ version: 0.52.1
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: simplecov
161
161
  requirement: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - "~>"
164
164
  - !ruby/object:Gem::Version
165
- version: 0.14.1
165
+ version: 0.15.1
166
166
  type: :development
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - "~>"
171
171
  - !ruby/object:Gem::Version
172
- version: 0.14.1
172
+ version: 0.15.1
173
173
  description: Translates the Rails routes of your application into the languages defined
174
174
  in your locale files
175
175
  email:
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  version: '0'
217
217
  requirements: []
218
218
  rubyforge_project:
219
- rubygems_version: 2.6.12
219
+ rubygems_version: 2.7.3
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: Translate your Rails routes in a simple manner