fips-county-codes 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  group :development, :test do
4
+ gem 'pry'
5
+ gem 'pry-nav'
4
6
  gem 'rspec'
5
7
  gem 'bundler'
6
8
  gem 'jeweler', "~> 1.8.4"
@@ -1,6 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ coderay (1.0.8)
4
5
  diff-lcs (1.2.3)
5
6
  git (1.2.5)
6
7
  jeweler (1.8.4)
@@ -9,6 +10,13 @@ GEM
9
10
  rake
10
11
  rdoc
11
12
  json (1.7.7)
13
+ method_source (0.8.1)
14
+ pry (0.9.10)
15
+ coderay (~> 1.0.5)
16
+ method_source (~> 0.8)
17
+ slop (~> 3.3.1)
18
+ pry-nav (0.2.2)
19
+ pry (~> 0.9.10)
12
20
  rake (10.0.4)
13
21
  rdoc (4.0.1)
14
22
  json (~> 1.4)
@@ -20,6 +28,7 @@ GEM
20
28
  rspec-expectations (2.13.0)
21
29
  diff-lcs (>= 1.1.3, < 2.0)
22
30
  rspec-mocks (2.13.1)
31
+ slop (3.3.3)
23
32
 
24
33
  PLATFORMS
25
34
  ruby
@@ -27,4 +36,6 @@ PLATFORMS
27
36
  DEPENDENCIES
28
37
  bundler
29
38
  jeweler (~> 1.8.4)
39
+ pry
40
+ pry-nav
30
41
  rspec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.4.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fips-county-codes"
8
- s.version = "0.2.0"
8
+ s.version = "0.4.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"]
12
- s.date = "2013-04-17"
12
+ s.date = "2013-04-22"
13
13
  s.email = "ray@nationbuilder.com"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
@@ -40,15 +40,21 @@ Gem::Specification.new do |s|
40
40
  s.specification_version = 3
41
41
 
42
42
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
+ s.add_development_dependency(%q<pry>, [">= 0"])
44
+ s.add_development_dependency(%q<pry-nav>, [">= 0"])
43
45
  s.add_development_dependency(%q<rspec>, [">= 0"])
44
46
  s.add_development_dependency(%q<bundler>, [">= 0"])
45
47
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
46
48
  else
49
+ s.add_dependency(%q<pry>, [">= 0"])
50
+ s.add_dependency(%q<pry-nav>, [">= 0"])
47
51
  s.add_dependency(%q<rspec>, [">= 0"])
48
52
  s.add_dependency(%q<bundler>, [">= 0"])
49
53
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
50
54
  end
51
55
  else
56
+ s.add_dependency(%q<pry>, [">= 0"])
57
+ s.add_dependency(%q<pry-nav>, [">= 0"])
52
58
  s.add_dependency(%q<rspec>, [">= 0"])
53
59
  s.add_dependency(%q<bundler>, [">= 0"])
54
60
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
@@ -2,7 +2,10 @@ module FipsCountyCodes
2
2
  fips = {}
3
3
  state_county = {}
4
4
 
5
- File.open('lib/national.txt') do |f|
5
+ LIB_DIRECTORY = File.expand_path(File.dirname(__FILE__))
6
+ FIPS_CODES_CSV_FILE = File.join(LIB_DIRECTORY, 'national.txt')
7
+
8
+ File.open(FIPS_CODES_CSV_FILE) do |f|
6
9
  f.readline # skip the first line with headers
7
10
 
8
11
  until f.eof
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.2.0
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-17 00:00:00.000000000 Z
12
+ date: 2013-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: pry
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: pry-nav
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
14
46
  - !ruby/object:Gem::Dependency
15
47
  name: rspec
16
48
  requirement: !ruby/object:Gem::Requirement
@@ -95,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
127
  version: '0'
96
128
  segments:
97
129
  - 0
98
- hash: -1412392971802506870
130
+ hash: 4483815509762998968
99
131
  required_rubygems_version: !ruby/object:Gem::Requirement
100
132
  none: false
101
133
  requirements: