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 +5 -5
- data/.travis.yml +7 -6
- data/CHANGELOG.md +5 -0
- data/README.md +4 -0
- data/lib/localeapp/updater.rb +11 -1
- data/lib/localeapp/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 1a7cd53343b6eb12ea585524362dc60be3c0d2a5
|
|
4
|
+
data.tar.gz: 04d96ff855e00b290e748324eff03a7a596bea8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9624f8d6e81d35f9df063059aafaba5779cc607fd9fc45d1a785818b61159bf7776752ef8ee5b29da4d73a5d9748c8ad2bd091e5fe049469fe6c0c8cfaf6593
|
|
7
|
+
data.tar.gz: beb7c4864b7c32b52de9c57cf732adcff5375c5833f6988c34603d9ea367ee43d88990bc36021c25abfd0a09c2dbf6cc1c6cd329a8b68606df608cecc8de3322
|
data/.travis.yml
CHANGED
|
@@ -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.
|
|
7
|
-
- 2.
|
|
8
|
-
- 2.
|
|
9
|
-
- 2.
|
|
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
|
|
12
|
+
- jruby
|
|
12
13
|
gemfile:
|
|
13
14
|
- Gemfile
|
|
14
15
|
- spec/gemfiles/i18n_0.7.gemfile
|
data/CHANGELOG.md
CHANGED
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].
|
data/lib/localeapp/updater.rb
CHANGED
|
@@ -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
|
|
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
|
data/lib/localeapp/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
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:
|