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 +4 -4
- data/History.txt +3 -0
- data/lib/rosette/client/commands/status_command.rb +6 -6
- data/lib/rosette/client/version.rb +1 -1
- data/spec/commands/status_command_spec.rb +10 -9
- 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: 873bff79274d22afa3b46578f186b49fdfca529b
|
4
|
+
data.tar.gz: deacde24cd5694c4429c7226c1159411e131a658
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a7b72b4788c3178f5ea87b27608e2ecf588edf26600eb9aa56e2d2c52e7d33ebe39b20100c7ec71d828b71cc33b665833910e20ee6706318819894c7be06123
|
7
|
+
data.tar.gz: 6d74ff66ddfb03ed8858f89806224a5381350fc4868958c30f3cbb5a7b6c0a1fa03c7a51ad277edf7d8f05dba7ab4d912436f5e22b90a5ee1b94f64a6d796588
|
data/History.txt
CHANGED
@@ -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
|
84
|
-
|
85
|
-
|
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
|
@@ -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
|
-
'
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
'
|
55
|
-
|
56
|
-
|
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.
|
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-
|
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
|