aloha_analyzer 0.4.5 → 0.4.6

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: 7ffe576532a9f6fcaacad7ac3cf921a49e07b728
4
- data.tar.gz: aed73c89be339f831c8d264888af7a884d3192fc
3
+ metadata.gz: 7284fb3de4248b56029daca8a962b79680a83180
4
+ data.tar.gz: d740c5af7cb4068e1a7b54b296b06a3ced6f9efe
5
5
  SHA512:
6
- metadata.gz: b635645d0a09a78429877e0147b92745732f70c47760255c9e53fad7ceeaf59d026fc010b2feb096b05e775035ebac06601960ab4ce1ad1bf5883af4e2b23c14
7
- data.tar.gz: 96d89b9777a1a1904434e65792dbbe22c80cc71d097548146c5114b5ad19344dc23d9a03c7dfd9c21e507433f55ee4cc21b88e59ff926037e25212e22264be43
6
+ metadata.gz: ccf239fed0914842e47b04415801a462d698a6d5e78162856face1baf8709f706c3d514fd2aa7f6ed3e2669b4f562c1a59f334ac5000eefd24bd6bb690ed0b3b
7
+ data.tar.gz: 41295028b6c46949cb121beb3a4951de7d1433d8191b5036446b81e7c6581486c0e9949c51adfb4646c2c8d4c92bf304fe33d78cbaa442d26343fbcd8db4e721
@@ -5,16 +5,11 @@ module AlohaAnalyzer
5
5
 
6
6
  LANGUAGES = YAML::load_file(File.join(File.dirname(__FILE__), 'yaml/languages.yml'))
7
7
  ALIASES = YAML::load_file(File.join(File.dirname(__FILE__), 'yaml/aliases.yml'))
8
- TOTAL_POPULATION = 790000000
9
8
 
10
9
  def self.all
11
10
  LANGUAGES['languages']
12
11
  end
13
12
 
14
- def self.total
15
- TOTAL_POPULATION
16
- end
17
-
18
13
  def self.aliases
19
14
  ALIASES['aliases']
20
15
  end
@@ -1,3 +1,3 @@
1
1
  module AlohaAnalyzer
2
- VERSION = '0.4.5'
2
+ VERSION = '0.4.6'
3
3
  end
@@ -239,7 +239,6 @@ aliases:
239
239
  # 'io': 'ido'
240
240
  # 'ira': 'iranian language'
241
241
  # 'iro': 'iroquoian language'
242
- # 'is': 'icelandic'
243
242
  # 'iu': 'inuktitut'
244
243
  # 'jbo': 'lojban'
245
244
  # 'jgo': 'ngomba'
@@ -164,19 +164,19 @@ languages:
164
164
  'th':
165
165
  abbreviation: 'th'
166
166
  name: Thai
167
- population: 7_0000_000
167
+ population: 7_000_000
168
168
  countries: 'Thailand'
169
169
  greeting: 'วัสดี!'
170
170
  'uk':
171
171
  abbreviation: 'uk'
172
172
  name: Ukranian
173
- population: 1_0000_000
173
+ population: 1_000_000
174
174
  countries: 'Ukraine'
175
175
  greeting: 'вітаю!'
176
176
  'el':
177
177
  abbreviation: 'el'
178
178
  name: Greek
179
- population: 1_0000_000
179
+ population: 1_000_000
180
180
  countries: 'Greece, Cyprus'
181
181
  greeting: 'γειά!'
182
182
  'cs':
@@ -188,7 +188,7 @@ languages:
188
188
  'ro':
189
189
  abbreviation: 'ro'
190
190
  name: Romanian
191
- population: 1_0000_000
191
+ population: 1_000_000
192
192
  countries: 'Romania, Serbia, Moldova'
193
193
  greeting: 'salut!'
194
194
  'km':
@@ -197,3 +197,9 @@ languages:
197
197
  population: 100_000
198
198
  countries: 'Cambodia'
199
199
  greeting: 'chomreabsuor!'
200
+ 'is':
201
+ abbreviation: 'is'
202
+ name: Icelandic
203
+ population: 50_000
204
+ countries: 'Iceland'
205
+ greeting: 'halló!'
@@ -11,16 +11,6 @@ describe AlohaAnalyzer::Language do
11
11
  end
12
12
  end
13
13
 
14
- describe '.total' do
15
- it 'returns the total number of language users' do
16
- total = 0
17
- described_class.all.each do |abbreviation, language|
18
- total += language['population']
19
- end
20
- total.should eq described_class.total
21
- end
22
- end
23
-
24
14
  describe '.find_by_abbreviation' do
25
15
  subject(:language) { described_class.find_by_abbreviation(abbreviation) }
26
16
  context 'when it exits' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aloha_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu Aussaguel