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 +13 -5
- data/CHANGELOG.rdoc +3 -0
- data/lib/geolookup/usa/state.rb +9 -0
- data/lib/geolookup/version.rb +1 -1
- data/spec/lib/state_spec.rb +6 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
Nzg1ODRkZGM5M2YwNTA5MTEwOTU1OTg1NGFlNjI5OGRmZWI4OWU2Nw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NTVjNDhkNDJiNjdjMTVkODBjOWVkYzA3MjE4NGZkMmU5NjNhOGFhNQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
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
data/lib/geolookup/usa/state.rb
CHANGED
@@ -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
|
data/lib/geolookup/version.rb
CHANGED
data/spec/lib/state_spec.rb
CHANGED
@@ -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.
|
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-
|
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.
|
102
|
+
rubygems_version: 2.2.1
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Common geo lookups
|