rosette-client 1.0.3 → 1.0.4

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: a455fce5f085ec2869ba21fefd84ddc290070a9b
4
- data.tar.gz: ff2eceb68848e95826243962f378ece4166abcec
3
+ metadata.gz: 873bff79274d22afa3b46578f186b49fdfca529b
4
+ data.tar.gz: deacde24cd5694c4429c7226c1159411e131a658
5
5
  SHA512:
6
- metadata.gz: c72467a4658ccb2d6e098150f0955f96715e48369b1aab42e18e5dafec30aa50bb8f11e2a9f4cb7e74ecb5a8adb35e30f4fe2202b3afb82490d12d2ebeea5a4b
7
- data.tar.gz: b44d954eda0c1a3af61b337a664c2fd9eb3b30f38ec986f69b40aa1957e582843d654b54db53c8bb81c76f297f8cb179363bdab11809f88d43786f955745f41b
6
+ metadata.gz: 7a7b72b4788c3178f5ea87b27608e2ecf588edf26600eb9aa56e2d2c52e7d33ebe39b20100c7ec71d828b71cc33b665833910e20ee6706318819894c7be06123
7
+ data.tar.gz: 6d74ff66ddfb03ed8858f89806224a5381350fc4868958c30f3cbb5a7b6c0a1fa03c7a51ad277edf7d8f05dba7ab4d912436f5e22b90a5ee1b94f64a6d796588
data/History.txt CHANGED
@@ -16,3 +16,6 @@
16
16
 
17
17
  * Remove version constraint from json dependency.
18
18
 
19
+ == 1.0.4
20
+
21
+ * Fix StatusCommand to handle different API output.
@@ -73,16 +73,16 @@ module Rosette
73
73
  end
74
74
 
75
75
  def build_locale_rows(locales, phrase_count)
76
- [HEADER] + locales.map do |locale|
77
- build_locale_table_row(locale, phrase_count)
76
+ [HEADER] + locales.map do |locale, locale_info|
77
+ build_locale_table_row(locale, locale_info, phrase_count)
78
78
  end
79
79
  end
80
80
 
81
- def build_locale_table_row(locale, phrase_count)
81
+ def build_locale_table_row(locale, locale_info, phrase_count)
82
82
  [
83
- locale['locale'], phrase_count.to_i.to_s,
84
- locale['translated_count'].to_i.to_s,
85
- locale['percent_translated'].to_f.to_s
83
+ locale, phrase_count.to_i.to_s,
84
+ locale_info['translated_count'].to_i.to_s,
85
+ locale_info['percent_translated'].to_f.to_s
86
86
  ]
87
87
  end
88
88
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rosette
4
4
  module Client
5
- VERSION = "1.0.3"
5
+ VERSION = "1.0.4"
6
6
  end
7
7
  end
@@ -46,15 +46,16 @@ describe StatusCommand do
46
46
  'commit_id' => commit_id,
47
47
  'status' => 'UNTRANSLATED',
48
48
  'phrase_count' => 10,
49
- 'locales' => [{
50
- 'locale' => 'fr-FR',
51
- 'percent_translated' => 0.5,
52
- 'translated_count' => 5
53
- }, {
54
- 'locale' => 'pt-BR',
55
- 'percent_translated' => 0.2,
56
- 'translated_count' => 2
57
- }]
49
+ 'locales' => {
50
+ 'fr-FR' => {
51
+ 'percent_translated' => 0.5,
52
+ 'translated_count' => 5
53
+ },
54
+ 'pt-BR' => {
55
+ 'percent_translated' => 0.2,
56
+ 'translated_count' => 2
57
+ }
58
+ }
58
59
  })
59
60
  )
60
61
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rosette-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-25 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement