route_translator 7.1.1 → 7.1.2

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: 570472c4c19fb73c69f7d010b705b8fbd3a1c426944b87b528e9436342e18faf
4
- data.tar.gz: 7367796df62fabe93cabd32b5ee6966180776f811b24185277ef1e92266ddf9e
3
+ metadata.gz: 7861c7f66e3b60f6633a6736ab821d4042d6275560eb0223590d56cbcf3d118b
4
+ data.tar.gz: ad579f109665d509d564256de391f70e02980a24a669cfe3ade1dfb9fb1ae97a
5
5
  SHA512:
6
- metadata.gz: b95c8a800676cb8e9c52982fe762b89aa1b236fee84eae8eae70acc35fe176f6307d1c295ef4b47216851be10aded8476775f2d52f43da854ee418601da56abf
7
- data.tar.gz: f561ec0d27cc21881faa818c0dfb093bf01017684ea58850607a7978476fd443b8c5b356f86665e20265474b41daaedc54b7d449a5d00440bf520fd4b1580415
6
+ metadata.gz: 67415bc015800fef7bba533f862697d1ad73cd6cef3090c912274755645f93f8ae9869c4dcfbac402f2f033b1beefd66c768be76b5c96b77f1598363f9b16f9d
7
+ data.tar.gz: 94fb6ed99741379ea97043b505668a217c525df9637fe768fb3598421cc4b33ea74c2666276e6726039ef27fbe85f1ec6bfcaa3b37986e309ac26fdd1c406b24
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.1.2 / 2020-03-02
4
+
5
+ * [BUGFIX] Fix lazy load of action controller ([#206](https://github.com/enriclluelles/route_translator/pull/206))
6
+ * [ENHANCEMENT] Update development dependencies
7
+
3
8
  ## 7.1.1 / 2019-12-26
4
9
 
5
10
  * [ENHANCEMENT] Minor improvements to configuration and tests
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2007 Raul Murciano [http://raul.murciano.net], Domestika INTERNET S.L. [http://domestika.org], 2015 Enric Lluelles [http://enric.lluell.es], 2019 Geremia Taglialatela
3
+ Copyright (c) 2007 Raul Murciano [http://raul.murciano.net], Domestika INTERNET S.L. [http://domestika.org], 2015 Enric Lluelles [http://enric.lluell.es], 2020 Geremia Taglialatela
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'action_controller'
4
3
  require 'active_support/concern'
5
4
 
6
5
  module RouteTranslator
@@ -21,22 +20,12 @@ module RouteTranslator
21
20
  I18n.locale = old_locale if locale_from_url
22
21
  end
23
22
  end
24
-
25
- module TestCase
26
- extend ActiveSupport::Concern
27
- include ActionController::UrlFor
28
-
29
- included do
30
- delegate :env, :request, to: :@controller
31
- end
32
-
33
- def _routes
34
- @routes
35
- end
36
- end
37
23
  end
38
24
 
39
25
  ActiveSupport.on_load(:action_controller) do
40
- ActionController::Base.include RouteTranslator::Controller
41
- ActionController::TestCase.include RouteTranslator::TestCase if ENV['RAILS_ENV'] == 'test'
26
+ include RouteTranslator::Controller
27
+ if ENV['RAILS_ENV'] == 'test'
28
+ require 'route_translator/extensions/test_case'
29
+ ActionController::TestCase.include RouteTranslator::TestCase
30
+ end
42
31
  end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'action_controller'
4
+
5
+ module RouteTranslator
6
+ module TestCase
7
+ extend ActiveSupport::Concern
8
+ include ActionController::UrlFor
9
+
10
+ included do
11
+ delegate :env, :request, to: :@controller
12
+ end
13
+
14
+ def _routes
15
+ @routes
16
+ end
17
+ end
18
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RouteTranslator
4
- VERSION = '7.1.1'
4
+ VERSION = '7.1.2'
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.1.1
4
+ version: 7.1.2
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-12-26 00:00:00.000000000 Z
13
+ date: 2020-03-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack
@@ -104,30 +104,36 @@ dependencies:
104
104
  name: coveralls_reborn
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - "~>"
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: 0.14.0
110
+ - - "<"
111
+ - !ruby/object:Gem::Version
112
+ version: '0.16'
110
113
  type: :development
111
114
  prerelease: false
112
115
  version_requirements: !ruby/object:Gem::Requirement
113
116
  requirements:
114
- - - "~>"
117
+ - - ">="
115
118
  - !ruby/object:Gem::Version
116
119
  version: 0.14.0
120
+ - - "<"
121
+ - !ruby/object:Gem::Version
122
+ version: '0.16'
117
123
  - !ruby/object:Gem::Dependency
118
124
  name: minitest
119
125
  requirement: !ruby/object:Gem::Requirement
120
126
  requirements:
121
127
  - - "~>"
122
128
  - !ruby/object:Gem::Version
123
- version: '5.13'
129
+ version: '5.14'
124
130
  type: :development
125
131
  prerelease: false
126
132
  version_requirements: !ruby/object:Gem::Requirement
127
133
  requirements:
128
134
  - - "~>"
129
135
  - !ruby/object:Gem::Version
130
- version: '5.13'
136
+ version: '5.14'
131
137
  - !ruby/object:Gem::Dependency
132
138
  name: rails
133
139
  requirement: !ruby/object:Gem::Requirement
@@ -168,14 +174,14 @@ dependencies:
168
174
  requirements:
169
175
  - - "~>"
170
176
  - !ruby/object:Gem::Version
171
- version: 0.78.0
177
+ version: 0.80.1
172
178
  type: :development
173
179
  prerelease: false
174
180
  version_requirements: !ruby/object:Gem::Requirement
175
181
  requirements:
176
182
  - - "~>"
177
183
  - !ruby/object:Gem::Version
178
- version: 0.78.0
184
+ version: 0.80.1
179
185
  - !ruby/object:Gem::Dependency
180
186
  name: rubocop-performance
181
187
  requirement: !ruby/object:Gem::Requirement
@@ -208,16 +214,22 @@ dependencies:
208
214
  name: simplecov
209
215
  requirement: !ruby/object:Gem::Requirement
210
216
  requirements:
211
- - - "~>"
217
+ - - ">="
212
218
  - !ruby/object:Gem::Version
213
219
  version: 0.17.1
220
+ - - "<"
221
+ - !ruby/object:Gem::Version
222
+ version: '0.19'
214
223
  type: :development
215
224
  prerelease: false
216
225
  version_requirements: !ruby/object:Gem::Requirement
217
226
  requirements:
218
- - - "~>"
227
+ - - ">="
219
228
  - !ruby/object:Gem::Version
220
229
  version: 0.17.1
230
+ - - "<"
231
+ - !ruby/object:Gem::Version
232
+ version: '0.19'
221
233
  description: Translates the Rails routes of your application into the languages defined
222
234
  in your locale files
223
235
  email:
@@ -235,6 +247,7 @@ files:
235
247
  - lib/route_translator/extensions/action_controller.rb
236
248
  - lib/route_translator/extensions/mapper.rb
237
249
  - lib/route_translator/extensions/route_set.rb
250
+ - lib/route_translator/extensions/test_case.rb
238
251
  - lib/route_translator/host.rb
239
252
  - lib/route_translator/host_path_consistency_lambdas.rb
240
253
  - lib/route_translator/locale_sanitizer.rb