i18n_googledocs 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +37 -0
- data/Gemfile +27 -0
- data/LICENSE.md +8 -0
- data/README.md +173 -0
- data/Rakefile +25 -0
- data/VERSION +1 -0
- data/i18n_googledocs.gemspec +95 -0
- data/lib/generators/i18n_docs/copy_master_generator.rb +118 -0
- data/lib/generators/i18n_docs/export_generator.rb +92 -0
- data/lib/generators/i18n_docs/import_generator.rb +30 -0
- data/lib/generators/i18n_docs/locales_generator.rb +59 -0
- data/lib/generators/i18n_docs/missing_keys_generator.rb +12 -0
- data/lib/generators/i18n_docs/normalize_generator.rb +157 -0
- data/lib/generators/i18n_docs/templates/locale.erb +2 -0
- data/lib/i18n_googledocs.rb +51 -0
- data/lib/localch_i18n/csv_to_yaml.rb +68 -0
- data/lib/localch_i18n/missing_keys_finder.rb +111 -0
- data/lib/localch_i18n/translation_file_export.rb +76 -0
- data/lib/localch_i18n/translations.rb +70 -0
- data/lib/localch_i18n/translator/service.rb +32 -0
- data/lib/localch_i18n/translator.rb +61 -0
- data/lib/localch_i18n/util.rb +64 -0
- data/lib/tasks/store_translations.rake +60 -0
- data/tasks/test.rake +9 -0
- data/test/fixtures/config.yml +9 -0
- data/test/fixtures/de/header.yml +8 -0
- data/test/fixtures/en/header.yml +8 -0
- data/test/fixtures/minimal.csv +24 -0
- data/test/fixtures/test.csv +24 -0
- data/test/test_helper.rb +26 -0
- data/test/unit/csv_to_yaml_test.rb +137 -0
- data/test/unit/translation_file_export_test.rb +84 -0
- data/test/unit/translations_test.rb +62 -0
- metadata +231 -0
metadata
ADDED
@@ -0,0 +1,231 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: i18n_googledocs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.4
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Georg Kunz
|
9
|
+
- Ivan Jovanovic
|
10
|
+
- Jeremy Seitz
|
11
|
+
- Kristian Mandrup
|
12
|
+
autorequire:
|
13
|
+
bindir: bin
|
14
|
+
cert_chain: []
|
15
|
+
date: 2012-05-03 00:00:00.000000000 Z
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: deep_merge
|
19
|
+
requirement: !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ! '>='
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '0'
|
25
|
+
type: :runtime
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rspec
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.8.0
|
41
|
+
type: :development
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 2.8.0
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rdoc
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '3.12'
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '3.12'
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: bundler
|
67
|
+
requirement: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ! '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 1.0.0
|
73
|
+
type: :development
|
74
|
+
prerelease: false
|
75
|
+
version_requirements: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 1.0.0
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: jeweler
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 1.8.3
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.8.3
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ! '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0.5'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0.5'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rake
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: !ruby/object:Gem::Requirement
|
124
|
+
none: false
|
125
|
+
requirements:
|
126
|
+
- - ! '>='
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: mocha
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
133
|
+
requirements:
|
134
|
+
- - ! '>='
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
type: :development
|
138
|
+
prerelease: false
|
139
|
+
version_requirements: !ruby/object:Gem::Requirement
|
140
|
+
none: false
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: awesome_print
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
none: false
|
149
|
+
requirements:
|
150
|
+
- - ! '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
type: :development
|
154
|
+
prerelease: false
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
description: ! 'GEM providing helper scripts to manage i18n translations in Google
|
162
|
+
Docgem. Features: check YAML files for missing translations; export YAML files to
|
163
|
+
CSV; download translations from multiple Google spreadsheets and store to YAML files'
|
164
|
+
email: jeremy.seitz@local.ch
|
165
|
+
executables: []
|
166
|
+
extensions: []
|
167
|
+
extra_rdoc_files:
|
168
|
+
- LICENSE.md
|
169
|
+
- README.md
|
170
|
+
files:
|
171
|
+
- CHANGELOG
|
172
|
+
- Gemfile
|
173
|
+
- LICENSE.md
|
174
|
+
- README.md
|
175
|
+
- Rakefile
|
176
|
+
- VERSION
|
177
|
+
- i18n_googledocs.gemspec
|
178
|
+
- lib/generators/i18n_docs/copy_master_generator.rb
|
179
|
+
- lib/generators/i18n_docs/export_generator.rb
|
180
|
+
- lib/generators/i18n_docs/import_generator.rb
|
181
|
+
- lib/generators/i18n_docs/locales_generator.rb
|
182
|
+
- lib/generators/i18n_docs/missing_keys_generator.rb
|
183
|
+
- lib/generators/i18n_docs/normalize_generator.rb
|
184
|
+
- lib/generators/i18n_docs/templates/locale.erb
|
185
|
+
- lib/i18n_googledocs.rb
|
186
|
+
- lib/localch_i18n/csv_to_yaml.rb
|
187
|
+
- lib/localch_i18n/missing_keys_finder.rb
|
188
|
+
- lib/localch_i18n/translation_file_export.rb
|
189
|
+
- lib/localch_i18n/translations.rb
|
190
|
+
- lib/localch_i18n/translator.rb
|
191
|
+
- lib/localch_i18n/translator/service.rb
|
192
|
+
- lib/localch_i18n/util.rb
|
193
|
+
- lib/tasks/store_translations.rake
|
194
|
+
- tasks/test.rake
|
195
|
+
- test/fixtures/config.yml
|
196
|
+
- test/fixtures/de/header.yml
|
197
|
+
- test/fixtures/en/header.yml
|
198
|
+
- test/fixtures/minimal.csv
|
199
|
+
- test/fixtures/test.csv
|
200
|
+
- test/test_helper.rb
|
201
|
+
- test/unit/csv_to_yaml_test.rb
|
202
|
+
- test/unit/translation_file_export_test.rb
|
203
|
+
- test/unit/translations_test.rb
|
204
|
+
homepage: http://github.com/kristianmandrup/i18n-docs
|
205
|
+
licenses: []
|
206
|
+
post_install_message:
|
207
|
+
rdoc_options: []
|
208
|
+
require_paths:
|
209
|
+
- lib
|
210
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
211
|
+
none: false
|
212
|
+
requirements:
|
213
|
+
- - ! '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
segments:
|
217
|
+
- 0
|
218
|
+
hash: 3139210509392109152
|
219
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
|
+
none: false
|
221
|
+
requirements:
|
222
|
+
- - ! '>='
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: '0'
|
225
|
+
requirements: []
|
226
|
+
rubyforge_project:
|
227
|
+
rubygems_version: 1.8.24
|
228
|
+
signing_key:
|
229
|
+
specification_version: 3
|
230
|
+
summary: Maintain translations in Google Docs and export them to your Rails project.
|
231
|
+
test_files: []
|