census_data 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/census_data.gemspec +1 -1
  2. data/lib/census_data.rb +2 -2
  3. metadata +2 -2
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  PROJECT_GEM = 'census_data'
3
- PROJECT_GEM_VERSION = '0.2.1'
3
+ PROJECT_GEM_VERSION = '0.2.2'
4
4
 
5
5
  s.name = PROJECT_GEM
6
6
  s.version = PROJECT_GEM_VERSION
@@ -26,8 +26,8 @@ class CensusData
26
26
  path = File.expand_path(File.dirname(__FILE__)) + '/../data/IncomeDataSet.txt'
27
27
  CSV.foreach(path, {:headers => true}) do |row|
28
28
  if row[0] == county_code
29
- median_income = row[32].to_i
30
- per_capita_income = row[33].to_i
29
+ per_capita_income = row[32].to_i
30
+ median_income = row[33].to_i
31
31
  break
32
32
  end
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: census_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-16 00:00:00.000000000 Z
12
+ date: 2013-02-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Ruby gem/plugin to pull census data based on zip code and dislpay the
15
15
  median income for that area. Checkout the project on github for more detail.