web_translate_it 2.2.2 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b0d9dbe0095cd396d8f8fafe8773f1e1ce9f1f8
4
- data.tar.gz: ff70adedd0f7ce74d0f5f1367b3a95ef2ecfeca6
3
+ metadata.gz: 5f850423c63c38bfb19c8964537117760adaf945
4
+ data.tar.gz: 0bbe10898bf3f7bf64f62690a07ac89bc530ed1f
5
5
  SHA512:
6
- metadata.gz: 70280ce68d3cf7fa109f6a6573c1f5d8fd740bd07da662d43337f7e9f46be689da6d3318504746f01b9c28d1eac2b73e7a9f1d1f56723d9f8cad6e453d881204
7
- data.tar.gz: 074a852e13ab8ca7ef2a86c75b2f1af030fd1913d4c782c17676bf8be06f625e3f31ffb5b43fd5df438840c45de1a7c6cc97fa3239bd93c647d69b9d7b8b2822
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 :all, "Upload all files"
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
- locales += configuration.target_locales if command_options.all
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.2.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-03-13 00:00:00.000000000 Z
11
+ date: 2014-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post