aloha_analyzer 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aloha_analyzer/version.rb +1 -1
- data/lib/aloha_analyzer/yaml/aliases.yml +1 -2
- data/lib/aloha_analyzer/yaml/languages.yml +13 -7
- data/spec/aloha_analyzer/user_spec.rb +10 -10
- 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: 267f5cb4afbd2affc43413533454ed36a9cff337
|
4
|
+
data.tar.gz: f14f7fedd470e18a62db6745ce46bbdda61463ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 247232eb41f3f3099b686434839406abf19371b321da87aeb369105316b50432d3e0e6e6f56aafff7e6bd4229def15f4bc66db2732e6cd0516bb4dc6e38d851a
|
7
|
+
data.tar.gz: 03175aaed53d5bd3ca96dfbaa3512bb664ef13d7210457bd9b486065d06fd82b1c9c62fdab714ab8ade6b9619e2034118ce2f89639928e721268680528c9789d
|
@@ -25,6 +25,7 @@ aliases:
|
|
25
25
|
'fro': 'fr'
|
26
26
|
'gem': 'de'
|
27
27
|
'gl': 'es'
|
28
|
+
'sh': 'hr'
|
28
29
|
'gmh': 'de'
|
29
30
|
'goh': 'de'
|
30
31
|
'gsw': 'de'
|
@@ -216,7 +217,6 @@ aliases:
|
|
216
217
|
# 'hit': 'hittite'
|
217
218
|
# 'hmn': 'hmong'
|
218
219
|
# 'ho': 'hiri motu'
|
219
|
-
# 'hr': 'croatian'
|
220
220
|
# 'hsb': 'upper sorbian'
|
221
221
|
# 'ht': 'haitian'
|
222
222
|
# 'hup': 'hupa'
|
@@ -443,7 +443,6 @@ aliases:
|
|
443
443
|
# 'sg': 'sango'
|
444
444
|
# 'sga': 'old irish'
|
445
445
|
# 'sgn': 'sign language'
|
446
|
-
# 'sh': 'serbo-croatian'
|
447
446
|
# 'shi': 'tachelhit'
|
448
447
|
# 'shn': 'shan'
|
449
448
|
# 'si': 'sinhala'
|
@@ -8,13 +8,13 @@ languages:
|
|
8
8
|
'en':
|
9
9
|
abbreviation: 'en'
|
10
10
|
name: English
|
11
|
-
population:
|
11
|
+
population: 239_000_000
|
12
12
|
countries: 'USA, UK, Canada, Ireland, Australia'
|
13
13
|
greeting: 'hello!'
|
14
14
|
'ar':
|
15
15
|
abbreviation: 'ar'
|
16
16
|
name: Arabic
|
17
|
-
population:
|
17
|
+
population: 44_000_000
|
18
18
|
countries: 'Egypt, Tunisia, Lebanon, United Arab Emirates'
|
19
19
|
greeting: 'مرحبا!'
|
20
20
|
'ja':
|
@@ -32,25 +32,25 @@ languages:
|
|
32
32
|
'de':
|
33
33
|
abbreviation: 'de'
|
34
34
|
name: German
|
35
|
-
population:
|
35
|
+
population: 6_000_000
|
36
36
|
countries: 'Germany, Austria, Switzerland, Belgium'
|
37
37
|
greeting: 'hallo!'
|
38
38
|
'it':
|
39
39
|
abbreviation: 'it'
|
40
40
|
name: Italian
|
41
|
-
population:
|
41
|
+
population: 9_000_000
|
42
42
|
countries: 'Italy, Switzerland, Malta'
|
43
43
|
greeting: 'ciao!'
|
44
44
|
'id':
|
45
45
|
abbreviation: 'id'
|
46
46
|
name: Indonesian
|
47
|
-
population:
|
47
|
+
population: 25_000_000
|
48
48
|
countries: 'Indonesia'
|
49
49
|
greeting: 'halo!'
|
50
50
|
'pt':
|
51
51
|
abbreviation: 'pt'
|
52
52
|
name: Portuguese
|
53
|
-
population:
|
53
|
+
population: 41_000_000
|
54
54
|
countries: 'Portugal, Brazil, Macau'
|
55
55
|
greeting: 'olá!'
|
56
56
|
'ko':
|
@@ -83,6 +83,12 @@ languages:
|
|
83
83
|
countries: 'Philippines'
|
84
84
|
greeting: 'mabuhay!'
|
85
85
|
population: 8_000_000
|
86
|
+
'hr':
|
87
|
+
abbreviation: 'hr'
|
88
|
+
name: Croatian
|
89
|
+
countries: 'Croatia, Bosnia and Herzegovina, Serbia'
|
90
|
+
greeting: 'bok!'
|
91
|
+
population: 100_000
|
86
92
|
'ms':
|
87
93
|
abbreviation: 'ms'
|
88
94
|
name: Malay
|
@@ -176,7 +182,7 @@ languages:
|
|
176
182
|
'cs':
|
177
183
|
abbreviation: 'cs'
|
178
184
|
name: Czech
|
179
|
-
population:
|
185
|
+
population: 900_000
|
180
186
|
countries: 'Czech Republic'
|
181
187
|
greeting: ' ahoj!'
|
182
188
|
'ro':
|
@@ -86,7 +86,7 @@ describe AlohaAnalyzer::User do
|
|
86
86
|
|
87
87
|
it 'includes the user lanugage' do
|
88
88
|
subject['account_language']['language'].should eq(
|
89
|
-
'abbreviation'=>'en', 'greeting' => 'hello!', 'name'=>'English', 'population'=>
|
89
|
+
'abbreviation'=>'en', 'greeting' => 'hello!', 'name'=>'English', 'population'=>239000000, 'countries'=>'USA, UK, Canada, Ireland, Australia'
|
90
90
|
)
|
91
91
|
end
|
92
92
|
end
|
@@ -113,7 +113,7 @@ describe AlohaAnalyzer::User do
|
|
113
113
|
it 'includes the user lanugage' do
|
114
114
|
subject['account_language'].should eq(
|
115
115
|
'count' => 2,
|
116
|
-
'language' => {'abbreviation'=>'en', 'name'=>'English', 'population'=>
|
116
|
+
'language' => {'abbreviation'=>'en', 'name'=>'English', 'population'=>239000000, 'countries'=>'USA, UK, Canada, Ireland, Australia', 'greeting'=>'hello!'},
|
117
117
|
'users' => [{'id' => '1', 'lang' => 'en'}, {'id' => '3', 'lang' => 'en'}]
|
118
118
|
)
|
119
119
|
end
|
@@ -131,7 +131,7 @@ describe AlohaAnalyzer::User do
|
|
131
131
|
},
|
132
132
|
'de' => {
|
133
133
|
'count' => 1,
|
134
|
-
'language' => {'abbreviation'=>'de', 'name'=>'German', 'greeting'=>'hallo!', 'population'=>
|
134
|
+
'language' => {'abbreviation'=>'de', 'name'=>'German', 'greeting'=>'hallo!', 'population'=>6000000, 'countries'=>'Germany, Austria, Switzerland, Belgium'},
|
135
135
|
'users' => [{'id' => '4', 'lang' => 'de'}]
|
136
136
|
}
|
137
137
|
}
|
@@ -156,14 +156,14 @@ describe AlohaAnalyzer::User do
|
|
156
156
|
|
157
157
|
it 'includes the user lanugage' do
|
158
158
|
subject['account_language']['language'].should eq(
|
159
|
-
'abbreviation'=>'en', 'greeting' => 'hello!', 'name'=>'English', 'population'=>
|
159
|
+
'abbreviation'=>'en', 'greeting' => 'hello!', 'name'=>'English', 'population'=>239000000, 'countries'=>'USA, UK, Canada, Ireland, Australia'
|
160
160
|
)
|
161
161
|
end
|
162
162
|
|
163
163
|
it 'returns results based on the user language' do
|
164
164
|
subject['account_language'].should == {
|
165
165
|
'count' => 2,
|
166
|
-
'language' => {'abbreviation'=>'en', 'name'=>'English', 'population'=>
|
166
|
+
'language' => {'abbreviation'=>'en', 'name'=>'English', 'population'=>239000000, 'countries' => 'USA, UK, Canada, Ireland, Australia', 'greeting'=>'hello!'},
|
167
167
|
'users' => [{'id' => '1', 'lang' => 'en'}, {'id' => '2', 'lang' => 'en'}]
|
168
168
|
}
|
169
169
|
end
|
@@ -194,7 +194,7 @@ describe AlohaAnalyzer::User do
|
|
194
194
|
it 'returns results based on the user language' do
|
195
195
|
subject['account_language'].should == {
|
196
196
|
'count' => 0,
|
197
|
-
'language' => {'abbreviation'=>'en', 'greeting' => 'hello!', 'name'=>'English', 'population'=>
|
197
|
+
'language' => {'abbreviation'=>'en', 'greeting' => 'hello!', 'name'=>'English', 'population'=>239000000, 'countries'=>'USA, UK, Canada, Ireland, Australia'},
|
198
198
|
'users' => []
|
199
199
|
}
|
200
200
|
end
|
@@ -212,7 +212,7 @@ describe AlohaAnalyzer::User do
|
|
212
212
|
},
|
213
213
|
'de' => {
|
214
214
|
'count' => 1,
|
215
|
-
'language' => {'abbreviation'=>'de', 'name'=>'German', 'greeting'=>'hallo!', 'population'=>
|
215
|
+
'language' => {'abbreviation'=>'de', 'name'=>'German', 'greeting'=>'hallo!', 'population'=>6000000, 'countries' => 'Germany, Austria, Switzerland, Belgium' },
|
216
216
|
'users' => [{'id' => '1', 'lang' => 'de'}]
|
217
217
|
}
|
218
218
|
)
|
@@ -235,7 +235,7 @@ describe AlohaAnalyzer::User do
|
|
235
235
|
it 'includes the user lanugage' do
|
236
236
|
subject['account_language'].should == {
|
237
237
|
'count' => 2,
|
238
|
-
'language' => { 'abbreviation'=>'en', 'greeting' => 'hello!', 'name'=>'English', 'population'=>
|
238
|
+
'language' => { 'abbreviation'=>'en', 'greeting' => 'hello!', 'name'=>'English', 'population'=>239000000, 'countries'=>'USA, UK, Canada, Ireland, Australia' },
|
239
239
|
'users' => [{'id' => '1', 'lang' => 'en'}, {'id' => '3', 'lang' => 'en'}]
|
240
240
|
}
|
241
241
|
end
|
@@ -311,7 +311,7 @@ describe AlohaAnalyzer::User do
|
|
311
311
|
{
|
312
312
|
'account_language' => {
|
313
313
|
'count' => 2,
|
314
|
-
'language' => { 'abbreviation'=>'en', 'greeting' => 'hello!', 'name'=>'English', 'population'=>
|
314
|
+
'language' => { 'abbreviation'=>'en', 'greeting' => 'hello!', 'name'=>'English', 'population'=>239000000, 'countries'=>'USA, UK, Canada, Ireland, Australia' },
|
315
315
|
'users' => [{'id' => '1', 'lang' => 'en'}, {'id' => '3', 'lang' => 'en'}]
|
316
316
|
},
|
317
317
|
'foreign_languages_count' => 1,
|
@@ -330,7 +330,7 @@ describe AlohaAnalyzer::User do
|
|
330
330
|
subject.should eq(
|
331
331
|
'account_language' => {
|
332
332
|
'count' => 3,
|
333
|
-
'language' => {'abbreviation'=>'en', 'greeting'=>'hello!', 'name'=>'English', 'population'=>
|
333
|
+
'language' => {'abbreviation'=>'en', 'greeting'=>'hello!', 'name'=>'English', 'population'=>239000000, 'countries'=>'USA, UK, Canada, Ireland, Australia'},
|
334
334
|
'users' => [{'id'=>'1', 'lang'=>'en'}, {'id'=>'3', 'lang'=>'en'}, {'id'=>'4', 'lang'=>'en'}]
|
335
335
|
},
|
336
336
|
'foreign_languages_count' => 2,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aloha_analyzer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthieu Aussaguel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter_cldr
|