geolookup 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.rdoc +3 -0
- data/lib/data/COUNTRY_CODE_TO_NAME.yml +244 -0
- data/lib/data/COUNTRY_LAT_LONG.yml +807 -0
- data/lib/data/COUNTRY_NAME_TO_CODE.yml +269 -0
- data/lib/data/COUNTY_CODE_TO_NAME.yml +3292 -0
- data/lib/data/COUNTY_IGNORED_STATES.yml +5 -0
- data/lib/data/COUNTY_LAT_LONG.yml +9762 -0
- data/lib/data/COUNTY_NAME_TO_CODE.yml +3285 -0
- data/lib/data/STATE_CODE_TO_DISPLAY_NAME.yml +57 -0
- data/lib/data/STATE_CODE_TO_FULL.yml +57 -0
- data/lib/data/STATE_CODE_TO_STATE.yml +57 -0
- data/lib/data/STATE_FULL_STATE_NAMES.yml +58 -0
- data/lib/data/STATE_LAT_LONG.yml +169 -0
- data/lib/data/STATE_NAME_TO_CODE.yml +113 -0
- data/lib/geolookup.rb +11 -1
- data/lib/geolookup/country.rb +18 -796
- data/lib/geolookup/usa/county.rb +20 -10063
- data/lib/geolookup/usa/state.rb +28 -421
- data/lib/geolookup/version.rb +1 -1
- data/spec/lib/state_spec.rb +2 -3
- metadata +15 -2
data/lib/geolookup/version.rb
CHANGED
data/spec/lib/state_spec.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
describe "Geolookup::USA::State" do
|
2
|
-
let :state_lat_long do Geolookup::USA::State
|
3
|
-
|
2
|
+
let :state_lat_long do Geolookup::USA::State.name_to_lat_long("Alabama") end
|
4
3
|
describe "#code_to_name" do
|
5
4
|
it "should return a state name if state code matches" do
|
6
5
|
expect(Geolookup::USA::State.code_to_name(1)).to eql("Alabama")
|
@@ -128,4 +127,4 @@ describe "Geolookup::USA::State" do
|
|
128
127
|
expect(Geolookup::USA::State.code_to_lat_long("asdf")).to be_nil
|
129
128
|
end
|
130
129
|
end
|
131
|
-
end
|
130
|
+
end
|
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.4
|
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-
|
12
|
+
date: 2014-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -70,6 +70,19 @@ files:
|
|
70
70
|
- README.md
|
71
71
|
- Rakefile
|
72
72
|
- geolookup.gemspec
|
73
|
+
- lib/data/COUNTRY_CODE_TO_NAME.yml
|
74
|
+
- lib/data/COUNTRY_LAT_LONG.yml
|
75
|
+
- lib/data/COUNTRY_NAME_TO_CODE.yml
|
76
|
+
- lib/data/COUNTY_CODE_TO_NAME.yml
|
77
|
+
- lib/data/COUNTY_IGNORED_STATES.yml
|
78
|
+
- lib/data/COUNTY_LAT_LONG.yml
|
79
|
+
- lib/data/COUNTY_NAME_TO_CODE.yml
|
80
|
+
- lib/data/STATE_CODE_TO_DISPLAY_NAME.yml
|
81
|
+
- lib/data/STATE_CODE_TO_FULL.yml
|
82
|
+
- lib/data/STATE_CODE_TO_STATE.yml
|
83
|
+
- lib/data/STATE_FULL_STATE_NAMES.yml
|
84
|
+
- lib/data/STATE_LAT_LONG.yml
|
85
|
+
- lib/data/STATE_NAME_TO_CODE.yml
|
73
86
|
- lib/geolookup.rb
|
74
87
|
- lib/geolookup/country.rb
|
75
88
|
- lib/geolookup/usa/county.rb
|