web_translate_it 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/history.md +4 -0
- data/lib/web_translate_it.rb +1 -1
- data/readme.md +5 -1
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b0d9dbe0095cd396d8f8fafe8773f1e1ce9f1f8
|
4
|
+
data.tar.gz: ff70adedd0f7ce74d0f5f1367b3a95ef2ecfeca6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70280ce68d3cf7fa109f6a6573c1f5d8fd740bd07da662d43337f7e9f46be689da6d3318504746f01b9c28d1eac2b73e7a9f1d1f56723d9f8cad6e453d881204
|
7
|
+
data.tar.gz: 074a852e13ab8ca7ef2a86c75b2f1af030fd1913d4c782c17676bf8be06f625e3f31ffb5b43fd5df438840c45de1a7c6cc97fa3239bd93c647d69b9d7b8b2822
|
data/history.md
CHANGED
data/lib/web_translate_it.rb
CHANGED
@@ -23,7 +23,7 @@ module WebTranslateIt
|
|
23
23
|
return if config.ignore_locales.include?(locale)
|
24
24
|
config.logger.debug { " Fetching #{locale} language file(s) from WebTranslateIt" } if config.logger
|
25
25
|
WebTranslateIt::Connection.new(config.api_key) do |http|
|
26
|
-
config.files.find_all{ |file| file.locale.in?(locale, I18n.locale) }.each do |file|
|
26
|
+
config.files.find_all{ |file| file.locale.in?([locale, I18n.locale]) }.each do |file|
|
27
27
|
response = file.fetch(http)
|
28
28
|
end
|
29
29
|
end
|
data/readme.md
CHANGED
@@ -37,7 +37,7 @@ At this point you should have the `wti` executable working:
|
|
37
37
|
|
38
38
|
``` bash
|
39
39
|
$ wti -v
|
40
|
-
wti version 2.1
|
40
|
+
wti version 2.2.1
|
41
41
|
```
|
42
42
|
|
43
43
|
## Configuration
|
@@ -115,6 +115,10 @@ Append `--help` for each command for more information. For instance:
|
|
115
115
|
<td>wti add *.po</td>
|
116
116
|
<td>Create several master language files at once, by specifying an extension</td>
|
117
117
|
</tr>
|
118
|
+
<tr>
|
119
|
+
<td>find . -name "*en.yml" | xargs wti add</td>
|
120
|
+
<td>Find all the en.yml files and add them to the project</td>
|
121
|
+
</tr>
|
118
122
|
<tr>
|
119
123
|
<td>wti push</td>
|
120
124
|
<td>Update a master language file</td>
|
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web_translate_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edouard Briere
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: trollop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: multi_json
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 2.6.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 2.6.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: guard-rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: A gem to push and pull language files to WebTranslateIt.com.
|
@@ -89,10 +89,12 @@ extra_rdoc_files:
|
|
89
89
|
- history.md
|
90
90
|
- readme.md
|
91
91
|
files:
|
92
|
-
-
|
93
|
-
- license
|
94
|
-
- readme.md
|
92
|
+
- bin/wti
|
95
93
|
- examples/locale.rb
|
94
|
+
- generators/webtranslateit/lib/insert_commands.rb
|
95
|
+
- generators/webtranslateit/webtranslateit_generator.rb
|
96
|
+
- history.md
|
97
|
+
- lib/web_translate_it.rb
|
96
98
|
- lib/web_translate_it/auto_fetch.rb
|
97
99
|
- lib/web_translate_it/cacert.pem
|
98
100
|
- lib/web_translate_it/command_line.rb
|
@@ -104,17 +106,15 @@ files:
|
|
104
106
|
- lib/web_translate_it/term_translation.rb
|
105
107
|
- lib/web_translate_it/translation.rb
|
106
108
|
- lib/web_translate_it/translation_file.rb
|
109
|
+
- lib/web_translate_it/util.rb
|
107
110
|
- lib/web_translate_it/util/array_util.rb
|
108
111
|
- lib/web_translate_it/util/hash_util.rb
|
109
112
|
- lib/web_translate_it/util/string_util.rb
|
110
|
-
-
|
111
|
-
- lib/web_translate_it.rb
|
112
|
-
- generators/webtranslateit/lib/insert_commands.rb
|
113
|
-
- generators/webtranslateit/webtranslateit_generator.rb
|
114
|
-
- bin/wti
|
113
|
+
- license
|
115
114
|
- man/wti.1
|
116
115
|
- man/wti.1.html
|
117
116
|
- man/wti.1.ron
|
117
|
+
- readme.md
|
118
118
|
- spec/examples/config/translation.yml
|
119
119
|
- spec/examples/en.yml
|
120
120
|
- spec/spec_helper.rb
|
@@ -127,23 +127,23 @@ licenses:
|
|
127
127
|
metadata: {}
|
128
128
|
post_install_message:
|
129
129
|
rdoc_options:
|
130
|
-
- --main
|
130
|
+
- "--main"
|
131
131
|
- readme.md
|
132
132
|
require_paths:
|
133
133
|
- lib
|
134
134
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
|
-
- -
|
141
|
+
- - ">="
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
145
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.
|
146
|
+
rubygems_version: 2.2.2
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: A CLI to sync locale files with WebTranslateIt.com.
|