interior 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,8 @@ module Interior
28
28
 
29
29
  # st : state
30
30
  def self.get_meridians(st)
31
- MERIDIANS[st]
31
+ merds = MERIDIANS[st]
32
+ merds ? merds : []
32
33
  end
33
34
 
34
35
  private
@@ -1,3 +1,3 @@
1
1
  module Interior
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
@@ -111,6 +111,14 @@ describe Interior::Geocoder do
111
111
  { :name => 'Ute', :id => 31 } ]
112
112
  end
113
113
  end
114
+
115
+ context('when state cannot be found') do
116
+ let(:st) { 'INVALID' }
117
+
118
+ it 'returns an empty array' do
119
+ subject.should == []
120
+ end
121
+ end
114
122
  end
115
123
 
116
124
  describe '#build_trs_param' do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interior
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 0
10
- version: 0.9.0
9
+ - 1
10
+ version: 0.9.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Hunt