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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37d1e22d4106ba112465beb33d8208e248dc7c63
4
- data.tar.gz: 1fe635cd9e50c2470724275612e662b685c01934
3
+ metadata.gz: a3be59ca9132df26ff01c1c7680b73be2593435a
4
+ data.tar.gz: 7c98f9d0d933131904c3790489efa99a7c1409aa
5
5
  SHA512:
6
- metadata.gz: e238139c6c2972cbe79ae697504da11bede65273a8b8a47b1b1f3b87a09b3c539c3c0d4fc3cd520172a68fbd8d309bc88216d655837354f35b426a0ce8c2ccc6
7
- data.tar.gz: 97cc2b7439085d89f6695f61c0f5a407d6626e2cc246ac4220f8c88eab819937eef5a8d9fe983e747c004214f8ea1ed1acbaa507f112fa1319115c0fbf7d108f
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
- nil
30
+ raise "Could not find language abbreviation '#{abbreviation}'"
30
31
  end
31
32
  end
32
33
  end
@@ -1,3 +1,3 @@
1
1
  module AlohaAnalyzer
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  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
- it 'returns nil' do
49
- subject.should be_nil
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.7
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-06 00:00:00.000000000 Z
11
+ date: 2014-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler