fips-county-codes 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fips-county-codes.gemspec +2 -2
- data/lib/{nist_codes.rb → fips_county_codes.rb} +1 -1
- data/test/fips_lookups_spec.rb +3 -3
- data/test/helper.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/fips-county-codes.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "fips-county-codes"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ray Pereda"]
|
@@ -25,8 +25,8 @@ Gem::Specification.new do |s|
|
|
25
25
|
"Rakefile",
|
26
26
|
"VERSION",
|
27
27
|
"fips-county-codes.gemspec",
|
28
|
+
"lib/fips_county_codes.rb",
|
28
29
|
"lib/national.txt",
|
29
|
-
"lib/nist_codes.rb",
|
30
30
|
"test/fips_lookups_spec.rb",
|
31
31
|
"test/helper.rb"
|
32
32
|
]
|
data/test/fips_lookups_spec.rb
CHANGED
@@ -3,12 +3,12 @@ require_relative 'helper'
|
|
3
3
|
describe 'Mapping (State, County) between (NISTCodes Code)' do
|
4
4
|
it 'looks up a fips for a state and county' do
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
FipsCountyCodes::FIPS['CA']['Los Angeles'].should == 6037
|
7
|
+
FipsCountyCodes::FIPS['CA']['Los Angeles County'].should == 6037
|
8
8
|
|
9
9
|
end
|
10
10
|
|
11
11
|
it 'looks up a state and county' do
|
12
|
-
|
12
|
+
FipsCountyCodes::STATE_COUNTY[6037].should == ['CA', 'Los Angeles County']
|
13
13
|
end
|
14
14
|
end
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fips-county-codes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -76,8 +76,8 @@ files:
|
|
76
76
|
- Rakefile
|
77
77
|
- VERSION
|
78
78
|
- fips-county-codes.gemspec
|
79
|
+
- lib/fips_county_codes.rb
|
79
80
|
- lib/national.txt
|
80
|
-
- lib/nist_codes.rb
|
81
81
|
- test/fips_lookups_spec.rb
|
82
82
|
- test/helper.rb
|
83
83
|
homepage: http://github.com/raypereda/fips-county-codes
|
@@ -95,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
segments:
|
97
97
|
- 0
|
98
|
-
hash:
|
98
|
+
hash: -1412392971802506870
|
99
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
101
101
|
requirements:
|