aloha_analyzer 0.0.7 → 0.0.8
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.
- checksums.yaml +4 -4
- data/lib/aloha_analyzer/language.rb +3 -2
- data/lib/aloha_analyzer/version.rb +1 -1
- data/spec/aloha_analyzer/language_spec.rb +3 -2
- 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: a3be59ca9132df26ff01c1c7680b73be2593435a
|
|
4
|
+
data.tar.gz: 7c98f9d0d933131904c3790489efa99a7c1409aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1cd7f51fb8cbfbaa19038881c6413d98a9e563a9e24933952d487760ba9817eafa096090eb75cf66b9f13bce574a48fd809c9b2351e53a5f7b778c9dc0829dd
|
|
7
|
+
data.tar.gz: 521047abe7d465ac69dc7b65ccd613cdcbe7d6a537367d40214c36166f04bb882c604c2410e63b544d8628383af0ed81e421b8c1fc904feac93993a9134b73a3
|
|
@@ -18,7 +18,8 @@ module AlohaAnalyzer
|
|
|
18
18
|
{
|
|
19
19
|
'en-gb' => 'en',
|
|
20
20
|
'zh-cb' => 'zh',
|
|
21
|
-
'zh-tw' => 'zh'
|
|
21
|
+
'zh-tw' => 'zh',
|
|
22
|
+
'ca' => 'es'
|
|
22
23
|
}
|
|
23
24
|
end
|
|
24
25
|
|
|
@@ -26,7 +27,7 @@ module AlohaAnalyzer
|
|
|
26
27
|
all.each do |language|
|
|
27
28
|
return language if language['abbreviation'] == abbreviation
|
|
28
29
|
end
|
|
29
|
-
|
|
30
|
+
raise "Could not find language abbreviation '#{abbreviation}'"
|
|
30
31
|
end
|
|
31
32
|
end
|
|
32
33
|
end
|
|
@@ -45,8 +45,9 @@ describe AlohaAnalyzer::Language do
|
|
|
45
45
|
|
|
46
46
|
context 'when it does not exist' do
|
|
47
47
|
let(:abbreviation) { 'esperanto' }
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
|
|
49
|
+
it 'raises an exception' do
|
|
50
|
+
expect { subject }.to raise_error
|
|
50
51
|
end
|
|
51
52
|
end
|
|
52
53
|
end
|
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.0.
|
|
4
|
+
version: 0.0.8
|
|
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-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|