geolookup 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6d5438bf0b5a02acfc8e0228ca7b07e2b68f1a5a
4
- data.tar.gz: 0c515b431a3ef244afee3527830a81817ed6c678
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Nzg1ODRkZGM5M2YwNTA5MTEwOTU1OTg1NGFlNjI5OGRmZWI4OWU2Nw==
5
+ data.tar.gz: !binary |-
6
+ NTVjNDhkNDJiNjdjMTVkODBjOWVkYzA3MjE4NGZkMmU5NjNhOGFhNQ==
5
7
  SHA512:
6
- metadata.gz: ceac98206849d6416b7a36bc662470002824e86704528a9837be386b30276e38da59389f2b36d0bc2d9faf4ddffd92ba99d9e83f8850296bd614fd7c35b16821
7
- data.tar.gz: 6c5f02d63412f53c7a1921c436c94bb8ded709dcae9fc2a3a806d55f47c2a3553ecd3c1c090e6282dd6b23e8da368ed535a8b8c0b9a99385c81dc0e8642049d7
8
+ metadata.gz: !binary |-
9
+ ZGFhMzA5NjYwNjA5YmEzZDJlY2RhZmM0OTBkMDQ4YTYxOTQzZWNiNzExYWE5
10
+ YzMwMzdmNDFmNDgyNmE2MGMyNWFiZWM4MTdmZTM3Mjc0YjM1YjA0ZjgzZWNk
11
+ NTU0ZGQwNWU3YzMyZmMwYjgwYTZkZWQ3NTEyMDgzMGU3ZTljZGM=
12
+ data.tar.gz: !binary |-
13
+ OTRhNDk4ZGEyYmI5MDY0YWUwNDZlNDdiZTcxY2FmZTg1OTEyOWY5NWZjNzQ5
14
+ Y2VhYmIwNjE3Mzc0NTY0OGQxNTI2Mzc2MjUyM2Y3NWM1OGFmOTdlNDQzN2Vh
15
+ YTEwY2EyOTRhMDMzZDQ1M2UyYzljODEzNjI3YjVkZTFiYzFmMDM=
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ === 0.5.3
2
+ - Adding state.codes to retun an array of state codes
3
+
1
4
  === 0.5.2
2
5
  - Adding a state.abbreviations and state.names to return an array of us state abbreviations and names
3
6
 
@@ -86,6 +86,15 @@ module Geolookup
86
86
  STATE_CODE_TO_FULL.values
87
87
  end
88
88
 
89
+ ###################################################################
90
+ # self.codes
91
+ #
92
+ # Returns an array of state names
93
+ #
94
+ def self.codes
95
+ STATE_CODE_TO_FULL.keys
96
+ end
97
+
89
98
  class << self
90
99
  alias :abbreviation_to_code :name_to_code
91
100
  alias :abbreviation_to_lat_long :name_to_lat_long
@@ -1,3 +1,3 @@
1
1
  module Geolookup
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
@@ -33,6 +33,12 @@ describe "Geolookup::USA::State" do
33
33
  end
34
34
  end
35
35
 
36
+ describe "#codes" do
37
+ it 'should return an array of state codes' do
38
+ expect(Geolookup::USA::State.codes).to include(6)
39
+ end
40
+ end
41
+
36
42
  describe "#code_to_abbreviation" do
37
43
  it 'should return a state abbreviation gien a state code' do
38
44
  expect(Geolookup::USA::State.code_to_abbreviation(1)).to eql("AL")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geolookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Fonacier
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-07 00:00:00.000000000 Z
12
+ date: 2014-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -29,14 +29,14 @@ dependencies:
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ! '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ! '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
@@ -89,17 +89,17 @@ require_paths:
89
89
  - lib
90
90
  required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - '>='
92
+ - - ! '>='
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - '>='
97
+ - - ! '>='
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.0.3
102
+ rubygems_version: 2.2.1
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Common geo lookups