route_translator 7.0.0 → 7.0.1

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
  SHA256:
3
- metadata.gz: b48ef0fed8291cf19c3f8bbbc03276061bbebfeca5ebe69f7cec013e1ec2e41c
4
- data.tar.gz: 7601140f98d82f866b9f32a801c1057f0949390df7a0832f8cf8331e1c54c2fd
3
+ metadata.gz: b2f33ffee939f6a410cc991d1e6937123d096263461dee1ff8c1f2d9d0ab4286
4
+ data.tar.gz: f23abb52df341f50327dcca5e357b1d48fdebf1520218c3f152998c9eeedede0
5
5
  SHA512:
6
- metadata.gz: 823890c7d82fe2918f5eef719ecd3ba204875d68f25dc5659f29870e80db5246926225c47dc79f2af46e64b936a82d9d508bcdfa2eeb1e7be8b0bf63a1ad3414
7
- data.tar.gz: 3a0b3401cedb34b0fe9884cbc15f26a3decea8c3984152512869b00ea0cf9d3f26c2db7c275ec110db94338774796cee1417eba97e8b7837ebb045e0ef3856f4
6
+ metadata.gz: 529f1d1621286b84c0e47a532a6f17ff4efd901153b2086f13ebf3f4c18462d65470f91ac78d9180601f8af38ed754eecab3869c56b8f2bd39ba90b9341cc83b
7
+ data.tar.gz: 145661421d0bc78601484d1e0c41fb525306814fa97057e2eeb41fce0a24f7399a42dd4e8361a8e58001468eb0a257472227bd461a9283bdb3510082d9594c07
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.0.1 / 2019-10-14
4
+
5
+ * [BUGFIX] Fix missing dup on blocks ([#203](https://github.com/enriclluelles/route_translator/pull/203))
6
+ * [ENHANCEMENT] Test against latest Ruby versions
7
+ * [ENHANCEMENT] Update development dependencies
8
+
3
9
  ## 7.0.0 / 2019-07-30
4
10
 
5
11
  * [FEATURE] Add Rails > 6.0.0.rc1 compatibility
@@ -37,6 +37,6 @@ module RouteTranslator
37
37
  end
38
38
 
39
39
  ActiveSupport.on_load(:action_controller) do
40
- ActionController::Base.send :include, RouteTranslator::Controller
41
- ActionController::TestCase.send :include, RouteTranslator::TestCase if ENV['RAILS_ENV'] == 'test'
40
+ ActionController::Base.include RouteTranslator::Controller
41
+ ActionController::TestCase.include RouteTranslator::TestCase if ENV['RAILS_ENV'] == 'test'
42
42
  end
@@ -26,9 +26,9 @@ module ActionDispatch
26
26
 
27
27
  def translate_mapping(locale, route_set, translated_options, translated_path_ast, scope, controller, default_action, to, formatted, via, translated_options_constraints, anchor)
28
28
  scope_params = {
29
- blocks: scope[:blocks] || [],
29
+ blocks: (scope[:blocks] || []).dup,
30
30
  constraints: scope[:constraints] || {},
31
- defaults: (scope[:defaults] || {}).dup,
31
+ defaults: scope[:defaults] || {},
32
32
  module: scope[:module],
33
33
  options: scope[:options] ? scope[:options].merge(translated_options) : translated_options
34
34
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RouteTranslator
4
- VERSION = '7.0.0'
4
+ VERSION = '7.0.1'
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: 7.0.0
4
+ version: 7.0.1
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: 2019-07-30 00:00:00.000000000 Z
13
+ date: 2019-10-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack
@@ -92,28 +92,28 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 0.13.2
95
+ version: 0.13.3
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: 0.13.2
102
+ version: 0.13.3
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: minitest
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '5.11'
109
+ version: '5.12'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '5.11'
116
+ version: '5.12'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: rails
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -140,70 +140,70 @@ dependencies:
140
140
  requirements:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: '12.3'
143
+ version: '13.0'
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: '12.3'
150
+ version: '13.0'
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: rubocop
153
153
  requirement: !ruby/object:Gem::Requirement
154
154
  requirements:
155
155
  - - "~>"
156
156
  - !ruby/object:Gem::Version
157
- version: 0.73.0
157
+ version: 0.75.1
158
158
  type: :development
159
159
  prerelease: false
160
160
  version_requirements: !ruby/object:Gem::Requirement
161
161
  requirements:
162
162
  - - "~>"
163
163
  - !ruby/object:Gem::Version
164
- version: 0.73.0
164
+ version: 0.75.1
165
165
  - !ruby/object:Gem::Dependency
166
166
  name: rubocop-performance
167
167
  requirement: !ruby/object:Gem::Requirement
168
168
  requirements:
169
169
  - - "~>"
170
170
  - !ruby/object:Gem::Version
171
- version: '1.4'
171
+ version: '1.5'
172
172
  type: :development
173
173
  prerelease: false
174
174
  version_requirements: !ruby/object:Gem::Requirement
175
175
  requirements:
176
176
  - - "~>"
177
177
  - !ruby/object:Gem::Version
178
- version: '1.4'
178
+ version: '1.5'
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: rubocop-rails
181
181
  requirement: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - "~>"
184
184
  - !ruby/object:Gem::Version
185
- version: '2.2'
185
+ version: '2.3'
186
186
  type: :development
187
187
  prerelease: false
188
188
  version_requirements: !ruby/object:Gem::Requirement
189
189
  requirements:
190
190
  - - "~>"
191
191
  - !ruby/object:Gem::Version
192
- version: '2.2'
192
+ version: '2.3'
193
193
  - !ruby/object:Gem::Dependency
194
194
  name: simplecov
195
195
  requirement: !ruby/object:Gem::Requirement
196
196
  requirements:
197
197
  - - "~>"
198
198
  - !ruby/object:Gem::Version
199
- version: 0.17.0
199
+ version: 0.17.1
200
200
  type: :development
201
201
  prerelease: false
202
202
  version_requirements: !ruby/object:Gem::Requirement
203
203
  requirements:
204
204
  - - "~>"
205
205
  - !ruby/object:Gem::Version
206
- version: 0.17.0
206
+ version: 0.17.1
207
207
  description: Translates the Rails routes of your application into the languages defined
208
208
  in your locale files
209
209
  email:
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  requirements: []
252
- rubygems_version: 3.0.3
252
+ rubygems_version: 3.0.6
253
253
  signing_key:
254
254
  specification_version: 4
255
255
  summary: Translate your Rails routes in a simple manner