localeapp 2.5.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +4 -4
- data/CHANGELOG.md +24 -13
- data/lib/localeapp/rails/force_exception_handler_in_translation_helper.rb +2 -1
- data/lib/localeapp/version.rb +1 -1
- data/localeapp.gemspec +3 -4
- data/{gemfiles → spec/gemfiles}/i18n_0.7.gemfile +1 -3
- data/{gemfiles/i18n_0.4.gemfile → spec/gemfiles/i18n_0.8.gemfile} +2 -4
- data/{gemfiles/i18n_0.5.gemfile → spec/gemfiles/i18n_0.9.gemfile} +2 -4
- data/{gemfiles/i18n_0.6.gemfile → spec/gemfiles/i18n_1.0.gemfile} +2 -4
- metadata +21 -30
- data/Appraisals +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 805c6256d30038f1a1939798e4f26ac91f19f330b9741ed9c99c880c4baedafd
|
4
|
+
data.tar.gz: fd70529ab0d1df20710fd100ba9382e9451ac22d011a53dd047b42a25434d682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 957f7db15344c1406d2841581934e5be63bd795ddb3777bde5f928bee053df61dae6e5de25f813a0c07b81b4ae1eb843bc1713f039e81ec4f91490e4e7bfd2d0
|
7
|
+
data.tar.gz: 0d341f9b235d16688ce7f65de0dc5c129451823cb0562e446086d3f865a49ccede5b8a89789fc6ffd5e3ffe78f306c075871e635c6f9444788325ed7a6a88804
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -11,10 +11,10 @@ rvm:
|
|
11
11
|
- jruby-9.1.15.0
|
12
12
|
gemfile:
|
13
13
|
- Gemfile
|
14
|
-
- gemfiles/i18n_0.
|
15
|
-
- gemfiles/i18n_0.
|
16
|
-
- gemfiles/i18n_0.
|
17
|
-
- gemfiles/
|
14
|
+
- spec/gemfiles/i18n_0.7.gemfile
|
15
|
+
- spec/gemfiles/i18n_0.8.gemfile
|
16
|
+
- spec/gemfiles/i18n_0.9.gemfile
|
17
|
+
- spec/gemfiles/i18n_1.0.gemfile
|
18
18
|
notifications:
|
19
19
|
slack:
|
20
20
|
secure: JryUWfe2JR0cfNT+TIHwryy8NS8m9/hbRhg+5UqwuYWuEp6gtcWCA05wKsajQyRrGaNGYKu81RA9jpQrirgQWzDUJl5o3sEWbqKZv3pW0ybn8Tx52N1mxW3Puar5KLZ8TPRphKKIJ8/1EhAh4zpC5Mtxv8Sz1/AHuqnlu6l+bb4=
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,24 @@
|
|
1
1
|
# master
|
2
2
|
|
3
|
+
# Version 3.0.0
|
4
|
+
|
5
|
+
* drop support for i18n 0.4, 0.5 and 0.6 (ℹ️ Rails [dropped those in July 2014](https://github.com/rails/rails/commit/cd7d414e48f537278043bfc77cfb4217e8c89c24)))
|
6
|
+
* add official support for i18n 0.8, 0.9 and 1.0
|
7
|
+
* prevent users to use dependencies impacted by some vulnerabilities:
|
8
|
+
* OSVDB-101157
|
9
|
+
* CVE-2015-3448 / OSVDB-117461
|
10
|
+
* CVE-2013-0269 / OSVDB-101137
|
11
|
+
* CVE-2015-1820 / OSVDB-119878
|
12
|
+
* fix a bug introduced in 2.5.0 where the exception handler was crashing with `TypeMismatch` error when `blacklisted_keys_pattern` was not explicitly configured
|
13
|
+
|
3
14
|
# Version 2.5.0
|
4
15
|
|
5
|
-
* Show fully-scoped keys in `ExceptionHandler` log messages (thanks to @leonhooijer)
|
6
|
-
* Don't force raising an exception for blacklisted keys (thanks to @leonhooijer)
|
16
|
+
* Show fully-scoped keys in `ExceptionHandler` log messages (thanks to [@leonhooijer](https://github.com/leonhooijer))
|
17
|
+
* Don't force raising an exception for blacklisted keys (thanks to [@leonhooijer](https://github.com/leonhooijer))
|
7
18
|
|
8
19
|
# Version 2.4.0
|
9
20
|
|
10
|
-
* Support pulling of single locales
|
21
|
+
* Support pulling of single locales (thanks to [@full-of-foo](https://github.com/full-of-foo))
|
11
22
|
|
12
23
|
# Version 2.3.0
|
13
24
|
|
@@ -35,7 +46,7 @@
|
|
35
46
|
|
36
47
|
# Version 1.0.2
|
37
48
|
|
38
|
-
* Fix a XSS vulnerability where translations keys could contain unescaped HTML (@grekko)
|
49
|
+
* Fix a XSS vulnerability where translations keys could contain unescaped HTML (thanks to [@grekko](https://github.com/grekko))
|
39
50
|
|
40
51
|
# Version 1.0.1
|
41
52
|
|
@@ -71,7 +82,7 @@
|
|
71
82
|
|
72
83
|
# Version 0.8.0
|
73
84
|
|
74
|
-
* Fix problem with line ending in three dots. (@holli)
|
85
|
+
* Fix problem with line ending in three dots. (thanks to [@holli](https://github.com/holli))
|
75
86
|
* Change deprecated File.exists? to File.exist?
|
76
87
|
* Fix "install --github" so it appends README.md. Before it truncated the README.md file with new content, now it appends content in a more correct manner.
|
77
88
|
* Fix .gitignore injection so it ensures a newline.
|
@@ -130,7 +141,7 @@
|
|
130
141
|
|
131
142
|
# Version 0.6.9
|
132
143
|
|
133
|
-
* Make rack a dependency as we actually use it (
|
144
|
+
* Make rack a dependency as we actually use it (thanks to [@martoche](https://github.com/martoche))
|
134
145
|
|
135
146
|
# Version 0.6.8
|
136
147
|
|
@@ -190,21 +201,21 @@
|
|
190
201
|
|
191
202
|
# Version 0.4.3
|
192
203
|
|
193
|
-
* Make sure Psych is fully loaded before using it (
|
204
|
+
* Make sure Psych is fully loaded before using it (thanks to [@tenderlove](https://github.com/tenderlove))
|
194
205
|
|
195
206
|
# Version 0.4.2
|
196
207
|
|
197
|
-
* Improve compatibility of Psych with ruby 1.9.2 (
|
208
|
+
* Improve compatibility of Psych with ruby 1.9.2 (thanks to [@ardpac](https://github.com/ardpac))
|
198
209
|
|
199
210
|
# Version 0.4.1
|
200
211
|
|
201
|
-
* Ignore HUP when backgrounded. (
|
212
|
+
* Ignore HUP when backgrounded. (thanks to [@xijo](https://github.com/xijo))
|
202
213
|
* Add --standalone option to install to generate a .localeapp/ config directory. This enables usage outside of rails.
|
203
214
|
|
204
215
|
# Version 0.4.0
|
205
216
|
|
206
217
|
* Use Psych to generate the yaml if it's available (This will completely change your yaml the first time you do a localeapp pull and Psych is available)
|
207
|
-
* Report when the directory to write the yml to doesn't exist (
|
218
|
+
* Report when the directory to write the yml to doesn't exist (thanks to [@rmehner](https://github.com/rmehner))
|
208
219
|
|
209
220
|
# Version 0.3.2
|
210
221
|
|
@@ -213,13 +224,13 @@
|
|
213
224
|
# Version 0.3.1
|
214
225
|
|
215
226
|
* Handle SocketError so we don't cause errors in client apps when they're not connected to the network
|
216
|
-
* Fix bug with empty log file (
|
227
|
+
* Fix bug with empty log file (thanks to [@rmehner](https://github.com/rmehner))
|
217
228
|
|
218
229
|
# Version 0.3.0
|
219
230
|
|
220
231
|
* Allow symbols for environment names in config file
|
221
|
-
* `localeapp push` will now push all yaml files in a directory if it's given a directory instead of a file
|
222
|
-
* Better daemon support. `daemon_pid_file` and `daemon_log_file` configuration options
|
232
|
+
* `localeapp push` will now push all yaml files in a directory if it's given a directory instead of a file (thanks to [@bartlomiejdanek](https://github.com/bartlomiejdanek))
|
233
|
+
* Better daemon support. `daemon_pid_file` and `daemon_log_file` configuration options (thanks to [@bartlomiejdanek](https://github.com/bartlomiejdanek))
|
223
234
|
|
224
235
|
# Version 0.2.0
|
225
236
|
|
@@ -14,7 +14,8 @@
|
|
14
14
|
module Localeapp
|
15
15
|
module ForceExceptionHandlerInTranslationHelper
|
16
16
|
def translate(key, options = {})
|
17
|
-
|
17
|
+
full_key = [options[:scope], key].compact.join(".")
|
18
|
+
if full_key =~ Localeapp.configuration.blacklisted_keys_pattern
|
18
19
|
super(key, options)
|
19
20
|
else
|
20
21
|
super(key, {:raise => false}.merge(options))
|
data/lib/localeapp/version.rb
CHANGED
data/localeapp.gemspec
CHANGED
@@ -22,9 +22,9 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.required_ruby_version = ">= 2.1"
|
24
24
|
|
25
|
-
s.add_dependency('i18n', '
|
26
|
-
s.add_dependency('json')
|
27
|
-
s.add_dependency('rest-client')
|
25
|
+
s.add_dependency('i18n', '>= 0.7', '< 2')
|
26
|
+
s.add_dependency('json', '>= 1.1.0')
|
27
|
+
s.add_dependency('rest-client', '>= 1.8.0')
|
28
28
|
s.add_dependency('gli')
|
29
29
|
|
30
30
|
s.add_development_dependency('rake')
|
@@ -33,5 +33,4 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.add_development_dependency('aruba', '~> 0.8')
|
34
34
|
s.add_development_dependency('cucumber', '~> 2.0')
|
35
35
|
s.add_development_dependency('fakeweb')
|
36
|
-
s.add_development_dependency('appraisal')
|
37
36
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: localeapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Dell
|
@@ -10,50 +10,56 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-03-
|
13
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: i18n
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.7'
|
22
|
+
- - "<"
|
20
23
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
24
|
+
version: '2'
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
26
|
-
- - "
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0.7'
|
32
|
+
- - "<"
|
27
33
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
34
|
+
version: '2'
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
36
|
name: json
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
32
38
|
requirements:
|
33
39
|
- - ">="
|
34
40
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
41
|
+
version: 1.1.0
|
36
42
|
type: :runtime
|
37
43
|
prerelease: false
|
38
44
|
version_requirements: !ruby/object:Gem::Requirement
|
39
45
|
requirements:
|
40
46
|
- - ">="
|
41
47
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
48
|
+
version: 1.1.0
|
43
49
|
- !ruby/object:Gem::Dependency
|
44
50
|
name: rest-client
|
45
51
|
requirement: !ruby/object:Gem::Requirement
|
46
52
|
requirements:
|
47
53
|
- - ">="
|
48
54
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
55
|
+
version: 1.8.0
|
50
56
|
type: :runtime
|
51
57
|
prerelease: false
|
52
58
|
version_requirements: !ruby/object:Gem::Requirement
|
53
59
|
requirements:
|
54
60
|
- - ">="
|
55
61
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
62
|
+
version: 1.8.0
|
57
63
|
- !ruby/object:Gem::Dependency
|
58
64
|
name: gli
|
59
65
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,20 +158,6 @@ dependencies:
|
|
152
158
|
- - ">="
|
153
159
|
- !ruby/object:Gem::Version
|
154
160
|
version: '0'
|
155
|
-
- !ruby/object:Gem::Dependency
|
156
|
-
name: appraisal
|
157
|
-
requirement: !ruby/object:Gem::Requirement
|
158
|
-
requirements:
|
159
|
-
- - ">="
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
version: '0'
|
162
|
-
type: :development
|
163
|
-
prerelease: false
|
164
|
-
version_requirements: !ruby/object:Gem::Requirement
|
165
|
-
requirements:
|
166
|
-
- - ">="
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
version: '0'
|
169
161
|
description: Synchronizes i18n translation keys and content with localeapp.com so
|
170
162
|
you don't have to manage translations by hand.
|
171
163
|
email:
|
@@ -180,7 +172,6 @@ files:
|
|
180
172
|
- ".gitignore"
|
181
173
|
- ".rspec"
|
182
174
|
- ".travis.yml"
|
183
|
-
- Appraisals
|
184
175
|
- CHANGELOG.md
|
185
176
|
- CONTRIBUTING.md
|
186
177
|
- Gemfile
|
@@ -207,10 +198,6 @@ files:
|
|
207
198
|
- features/support/env.rb
|
208
199
|
- features/support/hooks.rb
|
209
200
|
- features/update.feature
|
210
|
-
- gemfiles/i18n_0.4.gemfile
|
211
|
-
- gemfiles/i18n_0.5.gemfile
|
212
|
-
- gemfiles/i18n_0.6.gemfile
|
213
|
-
- gemfiles/i18n_0.7.gemfile
|
214
201
|
- lib/localeapp.rb
|
215
202
|
- lib/localeapp/api_call.rb
|
216
203
|
- lib/localeapp/api_caller.rb
|
@@ -256,6 +243,10 @@ files:
|
|
256
243
|
- spec/fixtures/es.yml
|
257
244
|
- spec/fixtures/string_log.yml
|
258
245
|
- spec/fixtures/symbol_log.yml
|
246
|
+
- spec/gemfiles/i18n_0.7.gemfile
|
247
|
+
- spec/gemfiles/i18n_0.8.gemfile
|
248
|
+
- spec/gemfiles/i18n_0.9.gemfile
|
249
|
+
- spec/gemfiles/i18n_1.0.gemfile
|
259
250
|
- spec/localeapp/api_call_spec.rb
|
260
251
|
- spec/localeapp/api_caller_spec.rb
|
261
252
|
- spec/localeapp/cli/add_spec.rb
|
@@ -302,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
293
|
version: '0'
|
303
294
|
requirements: []
|
304
295
|
rubyforge_project: localeapp
|
305
|
-
rubygems_version: 2.
|
296
|
+
rubygems_version: 2.7.6
|
306
297
|
signing_key:
|
307
298
|
specification_version: 4
|
308
299
|
summary: Easy i18n translation management with localeapp.com
|
data/Appraisals
DELETED