translations_sync 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Changelog +4 -1
- data/Rakefile +1 -1
- data/lib/translations_sync.rb +3 -3
- metadata +35 -54
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 810c9cf4cf006c63094f8322f7eaa2f5d15a1711
|
4
|
+
data.tar.gz: 4e750117adff000a4443b257e82047ce8361c9a4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3e37d4e834b6fe9decf29bc8cc8dc948be115324a9cd7f52db371639ccbc7c6c294604d61ede13fcd132e533035811d2c89edf9f9f7bd7e644cdba6d724a696e
|
7
|
+
data.tar.gz: bf5e7dfb93e62977b40493053cac85a6164cfd56686a1178df89db2081bb9a422459b66fd7596d66c9855f65c7f47f67997408917de47603f28738fbf2e26a69
|
data/Changelog
CHANGED
data/Rakefile
CHANGED
data/lib/translations_sync.rb
CHANGED
@@ -52,7 +52,7 @@ class TranslationsSync
|
|
52
52
|
end
|
53
53
|
hash
|
54
54
|
end
|
55
|
-
end
|
55
|
+
end # class << self
|
56
56
|
|
57
57
|
def initialize(list = nil, exclude = nil, source = nil)
|
58
58
|
I18n.backend.send(:init_translations) unless I18n.backend.initialized?
|
@@ -101,7 +101,7 @@ class TranslationsSync
|
|
101
101
|
@flat.keys.select do |key|
|
102
102
|
@flat.delete(key) if key[0..1] == transliterate
|
103
103
|
end
|
104
|
-
end
|
104
|
+
end # initialize
|
105
105
|
|
106
106
|
def locales_with_missing
|
107
107
|
unless @locales_with_missing
|
@@ -218,7 +218,7 @@ class TranslationsSync
|
|
218
218
|
src.each_pair do |key, value|
|
219
219
|
new = prefix.dup << key
|
220
220
|
if value.is_a? Hash
|
221
|
-
if value.keys
|
221
|
+
if (value.keys & [:one, :other]).size > 0
|
222
222
|
insert_translation(dest, new, lang, value)
|
223
223
|
else
|
224
224
|
flatten_keys lang, value, dest, new
|
metadata
CHANGED
@@ -1,46 +1,38 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: translations_sync
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 1
|
10
|
-
version: 0.4.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.2
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Dmitri Koulikoff
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: ya2yaml
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
32
20
|
type: :runtime
|
33
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
34
27
|
description: Synchronizes the different locales represeinted in yaml for I18n
|
35
28
|
email: koulikoff@gmail.com
|
36
|
-
executables:
|
29
|
+
executables:
|
37
30
|
- translations_sync
|
38
31
|
extensions: []
|
39
|
-
|
40
|
-
extra_rdoc_files:
|
32
|
+
extra_rdoc_files:
|
41
33
|
- README
|
42
34
|
- MIT-LICENSE
|
43
|
-
files:
|
35
|
+
files:
|
44
36
|
- MIT-LICENSE
|
45
37
|
- README
|
46
38
|
- Rakefile
|
@@ -52,36 +44,25 @@ files:
|
|
52
44
|
- spec/spec_helper.rb
|
53
45
|
homepage: http://github.com/dima4p/translations_sync/
|
54
46
|
licenses: []
|
55
|
-
|
47
|
+
metadata: {}
|
56
48
|
post_install_message:
|
57
49
|
rdoc_options: []
|
58
|
-
|
59
|
-
require_paths:
|
50
|
+
require_paths:
|
60
51
|
- lib
|
61
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
none: false
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
hash: 3
|
76
|
-
segments:
|
77
|
-
- 0
|
78
|
-
version: "0"
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
79
62
|
requirements: []
|
80
|
-
|
81
63
|
rubyforge_project:
|
82
|
-
rubygems_version:
|
64
|
+
rubygems_version: 2.0.3
|
83
65
|
signing_key:
|
84
|
-
specification_version:
|
66
|
+
specification_version: 4
|
85
67
|
summary: Synchronizes the different locales represeinted in yaml for I18n
|
86
68
|
test_files: []
|
87
|
-
|