earth 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,10 +10,12 @@ CensusDivision.class_eval do
10
10
  Conversions.register :thousand_btu_per_room_night, :megajoules_per_room_night, 1.05505585
11
11
  end
12
12
 
13
- import 'the U.S. Census Geographic Terms and Definitions',
14
- :url => 'http://www.census.gov/popest/geographic/codes02.csv',
15
- :skip => 9,
16
- :select => lambda { |row| row['Division'].to_s.strip != 'X' and row['FIPS CODE STATE'].to_s.strip == 'X'} do
13
+ # http://www.census.gov/popest/geographic/codes02.csv
14
+ import('the U.S. Census Geographic Terms and Definitions',
15
+ :url => 'http://www.census.gov/popest/about/geo/state_geocodes_v2009.txt',
16
+ :skip => 6,
17
+ :headers => %w{ Region Division FIPS Name },
18
+ :select => ::Proc.new { |row| row['Division'].to_i > 0 and row['FIPS'].to_i == 0 }) do
17
19
  key 'number', :field_name => 'Division'
18
20
  store 'name', :field_name => 'Name'
19
21
  store 'census_region_number', :field_name => 'Region'
@@ -1,9 +1,10 @@
1
1
  CensusRegion.class_eval do
2
2
  data_miner do
3
- import 'the U.S. Census Geographic Terms and Definitions',
4
- :url => 'http://www.census.gov/popest/geographic/codes02.csv',
5
- :skip => 9,
6
- :select => lambda { |row| row['Region'].to_i > 0 and row['Division'].to_s.strip == 'X'} do
3
+ import('the U.S. Census Geographic Terms and Definitions',
4
+ :url => 'http://www.census.gov/popest/about/geo/state_geocodes_v2009.txt',
5
+ :skip => 6,
6
+ :headers => %w{ Region Division FIPS Name },
7
+ :select => ::Proc.new { |row| row['Region'].to_i > 0 and row['Division'].to_i == 0 }) do
7
8
  key 'number', :field_name => 'Region'
8
9
  store 'name', :field_name => 'Name'
9
10
  end
@@ -10,10 +10,11 @@ State.class_eval do
10
10
  end
11
11
 
12
12
  # census divisions
13
- import 'the U.S. Census Geographic Terms and Definitions',
14
- :url => 'http://www.census.gov/popest/geographic/codes02.csv',
15
- :skip => 9,
16
- :select => lambda { |row| row['FIPS CODE STATE'].to_s.strip != 'X' and row['FIPS CODE COUNTY'].to_s.strip == 'X'} do
13
+ import('the U.S. Census Geographic Terms and Definitions',
14
+ :url => 'http://www.census.gov/popest/about/geo/state_geocodes_v2009.txt',
15
+ :skip => 6,
16
+ :headers => %w{ Region Division FIPS Name },
17
+ :select => ::Proc.new { |row| row['FIPS'].to_i > 0 }) do
17
18
  key 'fips_code', :field_name => 'FIPS CODE STATE'
18
19
  store 'census_division_number', :field_name => 'Division'
19
20
  end
@@ -1,3 +1,5 @@
1
+ require 'earth/locality'
2
+ require 'earth/locality/data_miner'
1
3
  require 'earth/residence/air_conditioner_use'
2
4
  require 'earth/residence/clothes_machine_use'
3
5
  require 'earth/residence/dishwasher_use'
@@ -1,3 +1,5 @@
1
+ require 'earth/locality'
2
+ require 'earth/locality/data_miner'
1
3
  require 'earth/residence/air_conditioner_use/data_miner'
2
4
  require 'earth/residence/clothes_machine_use/data_miner'
3
5
  require 'earth/residence/dishwasher_use/data_miner'
data/lib/earth/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Earth
2
- VERSION = "0.11.1"
2
+ VERSION = "0.11.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2011-12-06 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: data_miner
18
- requirement: &2164798700 !ruby/object:Gem::Requirement
18
+ requirement: &2153077720 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '1.3'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2164798700
26
+ version_requirements: *2153077720
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: to_regexp
29
- requirement: &2164798080 !ruby/object:Gem::Requirement
29
+ requirement: &2153076620 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2164798080
37
+ version_requirements: *2153076620
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: cohort_scope
40
- requirement: &2164797400 !ruby/object:Gem::Requirement
40
+ requirement: &2153075500 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *2164797400
48
+ version_requirements: *2153075500
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: table_warnings
51
- requirement: &2164796620 !ruby/object:Gem::Requirement
51
+ requirement: &2153072520 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 0.0.6
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *2164796620
59
+ version_requirements: *2153072520
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: remote_table
62
- requirement: &2164795820 !ruby/object:Gem::Requirement
62
+ requirement: &2153071380 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 1.2.3
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *2164795820
70
+ version_requirements: *2153071380
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: falls_back_on
73
- requirement: &2164788520 !ruby/object:Gem::Requirement
73
+ requirement: &2153069960 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :runtime
80
80
  prerelease: false
81
- version_requirements: *2164788520
81
+ version_requirements: *2153069960
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: fixed_width-multibyte
84
- requirement: &2164779680 !ruby/object:Gem::Requirement
84
+ requirement: &2153067300 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
- version_requirements: *2164779680
92
+ version_requirements: *2153067300
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: geokit-rails
95
- requirement: &2164776880 !ruby/object:Gem::Requirement
95
+ requirement: &2153060740 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: '0'
101
101
  type: :runtime
102
102
  prerelease: false
103
- version_requirements: *2164776880
103
+ version_requirements: *2153060740
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: loose_tight_dictionary
106
- requirement: &2164774960 !ruby/object:Gem::Requirement
106
+ requirement: &2153056680 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: 0.2.3
112
112
  type: :runtime
113
113
  prerelease: false
114
- version_requirements: *2164774960
114
+ version_requirements: *2153056680
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: weighted_average
117
- requirement: &2164774080 !ruby/object:Gem::Requirement
117
+ requirement: &2153050720 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: 1.0.2
123
123
  type: :runtime
124
124
  prerelease: false
125
- version_requirements: *2164774080
125
+ version_requirements: *2153050720
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: mini_record-compat
128
- requirement: &2164773480 !ruby/object:Gem::Requirement
128
+ requirement: &2153032660 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,10 +133,10 @@ dependencies:
133
133
  version: '0'
134
134
  type: :runtime
135
135
  prerelease: false
136
- version_requirements: *2164773480
136
+ version_requirements: *2153032660
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: activesupport
139
- requirement: &2164772640 !ruby/object:Gem::Requirement
139
+ requirement: &2153024960 !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements:
142
142
  - - ! '>='
@@ -144,10 +144,10 @@ dependencies:
144
144
  version: '0'
145
145
  type: :runtime
146
146
  prerelease: false
147
- version_requirements: *2164772640
147
+ version_requirements: *2153024960
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: activerecord
150
- requirement: &2164771900 !ruby/object:Gem::Requirement
150
+ requirement: &2153023060 !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
153
153
  - - ! '>='
@@ -155,10 +155,10 @@ dependencies:
155
155
  version: '0'
156
156
  type: :runtime
157
157
  prerelease: false
158
- version_requirements: *2164771900
158
+ version_requirements: *2153023060
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: bundler
161
- requirement: &2164771060 !ruby/object:Gem::Requirement
161
+ requirement: &2153020000 !ruby/object:Gem::Requirement
162
162
  none: false
163
163
  requirements:
164
164
  - - ! '>='
@@ -166,10 +166,10 @@ dependencies:
166
166
  version: '0'
167
167
  type: :development
168
168
  prerelease: false
169
- version_requirements: *2164771060
169
+ version_requirements: *2153020000
170
170
  - !ruby/object:Gem::Dependency
171
171
  name: bueller
172
- requirement: &2164770040 !ruby/object:Gem::Requirement
172
+ requirement: &2153011220 !ruby/object:Gem::Requirement
173
173
  none: false
174
174
  requirements:
175
175
  - - ! '>='
@@ -177,10 +177,10 @@ dependencies:
177
177
  version: '0'
178
178
  type: :development
179
179
  prerelease: false
180
- version_requirements: *2164770040
180
+ version_requirements: *2153011220
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: cucumber
183
- requirement: &2164762340 !ruby/object:Gem::Requirement
183
+ requirement: &2152992880 !ruby/object:Gem::Requirement
184
184
  none: false
185
185
  requirements:
186
186
  - - ! '>='
@@ -188,10 +188,10 @@ dependencies:
188
188
  version: '0'
189
189
  type: :development
190
190
  prerelease: false
191
- version_requirements: *2164762340
191
+ version_requirements: *2152992880
192
192
  - !ruby/object:Gem::Dependency
193
193
  name: rake
194
- requirement: &2164761640 !ruby/object:Gem::Requirement
194
+ requirement: &2152988340 !ruby/object:Gem::Requirement
195
195
  none: false
196
196
  requirements:
197
197
  - - ! '>='
@@ -199,10 +199,10 @@ dependencies:
199
199
  version: '0'
200
200
  type: :development
201
201
  prerelease: false
202
- version_requirements: *2164761640
202
+ version_requirements: *2152988340
203
203
  - !ruby/object:Gem::Dependency
204
204
  name: rdoc
205
- requirement: &2164760480 !ruby/object:Gem::Requirement
205
+ requirement: &2152982840 !ruby/object:Gem::Requirement
206
206
  none: false
207
207
  requirements:
208
208
  - - ! '>='
@@ -210,10 +210,10 @@ dependencies:
210
210
  version: '0'
211
211
  type: :development
212
212
  prerelease: false
213
- version_requirements: *2164760480
213
+ version_requirements: *2152982840
214
214
  - !ruby/object:Gem::Dependency
215
215
  name: rspec
216
- requirement: &2164759600 !ruby/object:Gem::Requirement
216
+ requirement: &2152955760 !ruby/object:Gem::Requirement
217
217
  none: false
218
218
  requirements:
219
219
  - - ! '>='
@@ -221,10 +221,10 @@ dependencies:
221
221
  version: '0'
222
222
  type: :development
223
223
  prerelease: false
224
- version_requirements: *2164759600
224
+ version_requirements: *2152955760
225
225
  - !ruby/object:Gem::Dependency
226
226
  name: sqlite3-ruby
227
- requirement: &2164758280 !ruby/object:Gem::Requirement
227
+ requirement: &2152946580 !ruby/object:Gem::Requirement
228
228
  none: false
229
229
  requirements:
230
230
  - - ! '>='
@@ -232,10 +232,10 @@ dependencies:
232
232
  version: '0'
233
233
  type: :development
234
234
  prerelease: false
235
- version_requirements: *2164758280
235
+ version_requirements: *2152946580
236
236
  - !ruby/object:Gem::Dependency
237
237
  name: mysql
238
- requirement: &2164756700 !ruby/object:Gem::Requirement
238
+ requirement: &2152944220 !ruby/object:Gem::Requirement
239
239
  none: false
240
240
  requirements:
241
241
  - - ! '>='
@@ -243,10 +243,10 @@ dependencies:
243
243
  version: '0'
244
244
  type: :development
245
245
  prerelease: false
246
- version_requirements: *2164756700
246
+ version_requirements: *2152944220
247
247
  - !ruby/object:Gem::Dependency
248
248
  name: pg
249
- requirement: &2164755680 !ruby/object:Gem::Requirement
249
+ requirement: &2152934720 !ruby/object:Gem::Requirement
250
250
  none: false
251
251
  requirements:
252
252
  - - ! '>='
@@ -254,7 +254,7 @@ dependencies:
254
254
  version: '0'
255
255
  type: :development
256
256
  prerelease: false
257
- version_requirements: *2164755680
257
+ version_requirements: *2152934720
258
258
  description: An earth-simulation environment with ActiveRecord models and data
259
259
  email: andy@rossmeissl.net
260
260
  executables:
@@ -629,21 +629,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
629
629
  - - ! '>='
630
630
  - !ruby/object:Gem::Version
631
631
  version: '0'
632
- segments:
633
- - 0
634
- hash: 4077555779402053270
635
632
  required_rubygems_version: !ruby/object:Gem::Requirement
636
633
  none: false
637
634
  requirements:
638
635
  - - ! '>='
639
636
  - !ruby/object:Gem::Version
640
637
  version: '0'
641
- segments:
642
- - 0
643
- hash: 4077555779402053270
644
638
  requirements: []
645
639
  rubyforge_project:
646
- rubygems_version: 1.8.11
640
+ rubygems_version: 1.8.10
647
641
  signing_key:
648
642
  specification_version: 3
649
643
  summary: Land, sky, and sea