web_translate_it 2.0.6 → 2.0.7

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.
data/history.md CHANGED
@@ -1,9 +1,14 @@
1
- ## Version 2.0.6 / 2012-03-11
1
+ ## Version 2.0.7 / 2013-04-04
2
+
3
+ * A new version of WebTranslateIt brings instant statistics generation. Statistics are never stale,
4
+ so removed some code that was handling stale stats in `wti status`. #93
5
+
6
+ ## Version 2.0.6 / 2013-03-11
2
7
 
3
8
  * Remove dependency on JSON. We use `multi_json` instead so wti should now be easier to install.
4
9
  (it previously required a C compiler to install).
5
10
 
6
- ## Version 2.0.5 / 2012-02-22
11
+ ## Version 2.0.5 / 2013-02-22
7
12
 
8
13
  * New: Add ability to pass a file path in `wti push`: `wti push path/to/file`. #90.
9
14
  * Made it a bit clearer that wti push now takes an optional file path.
@@ -478,4 +483,4 @@ Warning, some deprecations in this version.
478
483
 
479
484
  ## Version 0.9.0 / 2009-10-26
480
485
 
481
- * First version, plugin only support download of strings. Strings upload will be available in a later version.
486
+ * First version, plugin only support download of strings. Strings upload will be available in a later version.
@@ -225,11 +225,7 @@ module WebTranslateIt
225
225
  stats.each do |locale, values|
226
226
  percent_translated = Util.calculate_percentage(values['count_strings_to_proofread'].to_i + values['count_strings_done'].to_i + values['count_strings_to_verify'].to_i, values['count_strings'].to_i)
227
227
  percent_completed = Util.calculate_percentage(values['count_strings_done'].to_i, values['count_strings'].to_i)
228
- puts "#{locale}: #{percent_translated}% translated, #{percent_completed}% completed #{values['stale'] ? "Out of date" : ""}"
229
- stale = true if values['stale']
230
- end
231
- if stale
232
- self.status if Util.ask_yes_no("Some of these stats are outdated. Would you like to refresh?", true)
228
+ puts "#{locale}: #{percent_translated}% translated, #{percent_completed}% completed."
233
229
  end
234
230
  end
235
231
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web_translate_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-11 00:00:00.000000000 Z
12
+ date: 2013-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multipart-post