localeapp 2.5.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 43785b36844af9847b8326daab04090d1ab40d49
4
- data.tar.gz: 7156df0e8530172294d41302b545d34c2b4ed2a3
2
+ SHA256:
3
+ metadata.gz: 805c6256d30038f1a1939798e4f26ac91f19f330b9741ed9c99c880c4baedafd
4
+ data.tar.gz: fd70529ab0d1df20710fd100ba9382e9451ac22d011a53dd047b42a25434d682
5
5
  SHA512:
6
- metadata.gz: ca9c2892df8e20e6492885c65bfc479ca577af7a83e91e8a512fe87623c24f80168a9d9e1cd344ca3242614403ba326d1ff9ae107a0a6c9b46acb3a6a428d16d
7
- data.tar.gz: b01a5cd563aafbdfd3e235a0eeb0a7ccb8ca433a79b4019f8d246eb229e3c709b552a1a24fc29b1bb107dd9210f4b43ca860b4474d5a1ec405684cd12e304498
6
+ metadata.gz: 957f7db15344c1406d2841581934e5be63bd795ddb3777bde5f928bee053df61dae6e5de25f813a0c07b81b4ae1eb843bc1713f039e81ec4f91490e4e7bfd2d0
7
+ data.tar.gz: 0d341f9b235d16688ce7f65de0dc5c129451823cb0562e446086d3f865a49ccede5b8a89789fc6ffd5e3ffe78f306c075871e635c6f9444788325ed7a6a88804
data/.gitignore CHANGED
@@ -9,3 +9,4 @@ doc/*
9
9
  tmp/*
10
10
  .ruby-version
11
11
  .ruby-gemsets
12
+ .rvmrc
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.4.gemfile
15
- - gemfiles/i18n_0.5.gemfile
16
- - gemfiles/i18n_0.6.gemfile
17
- - gemfiles/i18n_0.7.gemfile
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 (Thanks @martoche)
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 (Thanks @tenderlove)
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 (Thanks @ardpac)
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. (Thanks @xijo)
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 (Thanks Robin Mehner)
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 (Thanks Robin Mehner)
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. (Thanks Bartłomiej Danek)
222
- * Better daemon support. `daemon_pid_file` and `daemon_log_file` configuration options. (Thanks again Bartłomiej Danek)
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
- if [options[:scope], key].compact.join(".").match?(Localeapp.configuration.blacklisted_keys_pattern)
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))
@@ -1,3 +1,3 @@
1
1
  module Localeapp
2
- VERSION = "2.5.0"
2
+ VERSION = "3.0.0"
3
3
  end
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', '~> 0.4')
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
@@ -1,5 +1,3 @@
1
- # This file was generated by Appraisal
2
-
3
1
  source "https://rubygems.org"
4
2
 
5
3
  gem "i18n", "~> 0.7.0"
@@ -8,4 +6,4 @@ platforms :jruby do
8
6
  gem "jruby-openssl", "~> 0.6"
9
7
  end
10
8
 
11
- gemspec :path => "../"
9
+ gemspec :path => "../.."
@@ -1,11 +1,9 @@
1
- # This file was generated by Appraisal
2
-
3
1
  source "https://rubygems.org"
4
2
 
5
- gem "i18n", "~> 0.4.0"
3
+ gem "i18n", "~> 0.8.0"
6
4
 
7
5
  platforms :jruby do
8
6
  gem "jruby-openssl", "~> 0.6"
9
7
  end
10
8
 
11
- gemspec :path => "../"
9
+ gemspec :path => "../.."
@@ -1,11 +1,9 @@
1
- # This file was generated by Appraisal
2
-
3
1
  source "https://rubygems.org"
4
2
 
5
- gem "i18n", "~> 0.5.0"
3
+ gem "i18n", "~> 0.9.0"
6
4
 
7
5
  platforms :jruby do
8
6
  gem "jruby-openssl", "~> 0.6"
9
7
  end
10
8
 
11
- gemspec :path => "../"
9
+ gemspec :path => "../.."
@@ -1,11 +1,9 @@
1
- # This file was generated by Appraisal
2
-
3
1
  source "https://rubygems.org"
4
2
 
5
- gem "i18n", "~> 0.6.0"
3
+ gem "i18n", "~> 1.0.0"
6
4
 
7
5
  platforms :jruby do
8
6
  gem "jruby-openssl", "~> 0.6"
9
7
  end
10
8
 
11
- gemspec :path => "../"
9
+ gemspec :path => "../.."
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: 2.5.0
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-09 00:00:00.000000000 Z
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: '0.4'
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: '0.4'
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: '0'
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: '0'
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: '0'
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: '0'
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.5.2.1
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
@@ -1,15 +0,0 @@
1
- appraise "i18n-0.4" do
2
- gem "i18n", "~> 0.4.0"
3
- end
4
-
5
- appraise "i18n-0.5" do
6
- gem "i18n", "~> 0.5.0"
7
- end
8
-
9
- appraise "i18n-0.6" do
10
- gem "i18n", "~> 0.6.0"
11
- end
12
-
13
- appraise "i18n-0.7" do
14
- gem "i18n", "~> 0.7.0"
15
- end