localeapp 3.1.0 → 3.1.1

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
- SHA256:
3
- metadata.gz: 632b3673659bb3b1e1cebf5d869db6d95464806fc302c286390c242749d9373a
4
- data.tar.gz: 41d594f0e6adbfc5cc24d38c5b322edc9d0edb81266c821605267f7baa5e210e
2
+ SHA1:
3
+ metadata.gz: 1a7cd53343b6eb12ea585524362dc60be3c0d2a5
4
+ data.tar.gz: 04d96ff855e00b290e748324eff03a7a596bea8f
5
5
  SHA512:
6
- metadata.gz: da419ba0f426a9c254f1df74e0dd33d6052cbe7764f212fe0888763ccd0419d4506db36ebe4697174253de63f22c4c3317f6f6ec9e925807fcd878bb8e445958
7
- data.tar.gz: bc93854b79aa5660c54ea412c46bd5105da8046820242b294e0c3f80e018c409d0613329fb18b921cbb7639d7b90702f3808fd209e6100813b42ddc616bf7842
6
+ metadata.gz: c9624f8d6e81d35f9df063059aafaba5779cc607fd9fc45d1a785818b61159bf7776752ef8ee5b29da4d73a5d9748c8ad2bd091e5fe049469fe6c0c8cfaf6593
7
+ data.tar.gz: beb7c4864b7c32b52de9c57cf732adcff5375c5833f6988c34603d9ea367ee43d88990bc36021c25abfd0a09c2dbf6cc1c6cd329a8b68606df608cecc8de3322
@@ -1,14 +1,15 @@
1
1
  sudo: required
2
2
  dist: trusty
3
3
  before_install:
4
- - gem install bundler
4
+ - gem install bundler -v '< 2'
5
5
  rvm:
6
- - 2.5.0
7
- - 2.4.3
8
- - 2.3.6
9
- - 2.2.9
6
+ - 2.6.0
7
+ - 2.5.3
8
+ - 2.4.5
9
+ - 2.3.8
10
+ - 2.2.10
10
11
  - 2.1.10
11
- - jruby-9.1.15.0
12
+ - jruby
12
13
  gemfile:
13
14
  - Gemfile
14
15
  - spec/gemfiles/i18n_0.7.gemfile
@@ -1,5 +1,10 @@
1
1
  # master
2
2
 
3
+ # Version 3.1.1
4
+
5
+ * Remove I18n Hash#deep_merge! usage
6
+ * Support ruby 2.6
7
+
3
8
  # Version 3.1.0
4
9
 
5
10
  * add `localeapp cp`
data/README.md CHANGED
@@ -178,6 +178,10 @@ You can contact us via the support link at the bottom of the page or emailing su
178
178
 
179
179
  See corresponding [contributing guidelines][3].
180
180
 
181
+ ## Known bugs
182
+
183
+ We are aware about a compatibility issue with JRuby 9.1 and i18n 1.3. Our recommandation so far is to use i18n < 1.3 if you are using JRuby 9.1.
184
+
181
185
  ## License
182
186
 
183
187
  Copyright (c) 2014 [Locale][5] and other [contributors][6], released under the [MIT License][4].
@@ -11,7 +11,7 @@ module Localeapp
11
11
  translations = Localeapp.load_yaml_file(filename)
12
12
  if data['translations'] && data['translations'][short_code]
13
13
  new_data = { short_code => data['translations'][short_code] }
14
- translations.deep_merge!(new_data)
14
+ translations = deep_merge translations, new_data
15
15
  end
16
16
  else
17
17
  translations = { short_code => data['translations'][short_code] }
@@ -42,6 +42,16 @@ module Localeapp
42
42
 
43
43
  private
44
44
 
45
+ def deep_merge(original, other)
46
+ original.merge other do |_, a, b|
47
+ if Hash === a && Hash === b
48
+ deep_merge a, b
49
+ else
50
+ b
51
+ end
52
+ end
53
+ end
54
+
45
55
  def generate_yaml(translations)
46
56
  YAML.dump(translations, :line_width => -1)[4..-1]
47
57
  end
@@ -1,3 +1,3 @@
1
1
  module Localeapp
2
- VERSION = "3.1.0"
2
+ VERSION = "3.1.1"
3
3
  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: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Dell
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-04-06 00:00:00.000000000 Z
14
+ date: 2019-01-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -299,8 +299,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  version: '0'
300
300
  requirements: []
301
301
  rubyforge_project: localeapp
302
- rubygems_version: 2.7.6
302
+ rubygems_version: 2.6.14
303
303
  signing_key:
304
304
  specification_version: 4
305
305
  summary: Easy i18n translation management with localeapp.com
306
306
  test_files: []
307
+ has_rdoc: