web_translate_it 2.2.2 → 2.3.0
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 +4 -4
- data/bin/wti +2 -1
- data/history.md +8 -0
- data/lib/web_translate_it/command_line.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f850423c63c38bfb19c8964537117760adaf945
|
4
|
+
data.tar.gz: 0bbe10898bf3f7bf64f62690a07ac89bc530ed1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1353e6125cd781d3fc87e7d8b989ec8b206432e78d6b3a4036ed79ffb4d57c34af900aac154ff5ceb11422fab7070ee84855049296b6e1e84257c680f216456
|
7
|
+
data.tar.gz: 1b7076d8fcc3c12b189cae121815378536498c3468756cb2a843bd41884ff717dda1c9dfa8f0f1819bbd679da423377656556f1f375dc4d1e1f32506ad6ebb17
|
data/bin/wti
CHANGED
@@ -51,7 +51,7 @@ wti push [filename] - Push master language file(s)
|
|
51
51
|
[options] are:
|
52
52
|
EOS
|
53
53
|
opt :locale, "ISO code of locale(s) to push", :type => :string
|
54
|
-
opt :
|
54
|
+
opt :target, "Upload all target files"
|
55
55
|
opt :force, "Force push (bypass conditional requests to WTI)"
|
56
56
|
opt :low_priority, "WTI will process this file with a low priority"
|
57
57
|
opt :merge, "Force WTI to merge this file"
|
@@ -59,6 +59,7 @@ EOS
|
|
59
59
|
opt :minor, "Minor Changes. When pushing a master file, prevents target translations to be flagged as `to_verify`."
|
60
60
|
opt :label, "Apply a label to the changes", :type => :string
|
61
61
|
opt :config, "Path to a configuration file", :short => "-c", :default => ".wti"
|
62
|
+
opt :all, "DEPRECATED -- See `wti push --target` instead"
|
62
63
|
end
|
63
64
|
when "add"
|
64
65
|
Trollop::options do
|
data/history.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## Version 2.3.0 / 2014-04-18
|
2
|
+
|
3
|
+
* Deprecate `wti push --all`.
|
4
|
+
This command was replaced by `wti push --target`, which is slightly different since it only pushes target locales.
|
5
|
+
The `--all` option was deprecated because pushing all source and target files at the same time can cause synchronization issues under some circumstances.
|
6
|
+
* Add new `wti push --target` command to push target files only.
|
7
|
+
* Read more about these changes the blog: https://webtranslateit.com/en/blog/posts/264-Updates-to-synching-behaviour
|
8
|
+
|
1
9
|
## Version 2.2.2 / 2014-03-13
|
2
10
|
|
3
11
|
* Fix deprecation warning. #112
|
@@ -268,7 +268,12 @@ module WebTranslateIt
|
|
268
268
|
else
|
269
269
|
locales = [configuration.source_locale]
|
270
270
|
end
|
271
|
-
|
271
|
+
if command_options.all
|
272
|
+
puts "`wti push --all` was deprecated in wti 2.3. Use `wti push --target` instead."
|
273
|
+
return []
|
274
|
+
elsif command_options.target
|
275
|
+
locales = configuration.target_locales.reject{ |locale| locale == configuration.source_locale }
|
276
|
+
end
|
272
277
|
return locales.uniq
|
273
278
|
end
|
274
279
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web_translate_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
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-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|