data_miner 0.3.13 → 0.4.0
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.
- data/README.rdoc +30 -32
- data/VERSION +1 -1
- data/data_miner.gemspec +2 -3
- data/lib/data_miner.rb +0 -4
- data/lib/data_miner/attribute.rb +103 -137
- data/lib/data_miner/configuration.rb +7 -9
- data/lib/data_miner/dictionary.rb +1 -1
- data/lib/data_miner/import.rb +24 -29
- data/test/data_miner_test.rb +341 -505
- data/test/test_helper.rb +0 -99
- metadata +2 -3
- data/lib/data_miner/william_james_cartesian_product.rb +0 -11
data/test/test_helper.rb
CHANGED
@@ -112,70 +112,6 @@ ActiveRecord::Schema.define(:version => 20090819143429) do
|
|
112
112
|
end
|
113
113
|
execute "ALTER TABLE automobile_fuel_types ADD PRIMARY KEY (code);"
|
114
114
|
|
115
|
-
create_table "automobile_make_fleet_years", :force => true, :options => 'ENGINE=InnoDB default charset=utf8', :id => false do |t|
|
116
|
-
t.string "automobile_make_id"
|
117
|
-
t.string "automobile_model_year_id"
|
118
|
-
t.integer "automobile_make_year_id"
|
119
|
-
|
120
|
-
t.string "fleet"
|
121
|
-
t.string "make_name"
|
122
|
-
t.string "year"
|
123
|
-
t.float "fuel_efficiency"
|
124
|
-
t.integer "volume"
|
125
|
-
t.datetime "created_at"
|
126
|
-
t.datetime "updated_at"
|
127
|
-
|
128
|
-
t.string "row_hash"
|
129
|
-
t.integer 'data_miner_touch_count'
|
130
|
-
t.integer 'data_miner_last_run_id'
|
131
|
-
end
|
132
|
-
execute "ALTER TABLE automobile_make_fleet_years ADD PRIMARY KEY (row_hash);"
|
133
|
-
|
134
|
-
create_table "automobile_make_years", :force => true, :options => 'ENGINE=InnoDB default charset=utf8', :id => false do |t|
|
135
|
-
t.integer "automobile_make_id" # user-defined
|
136
|
-
t.integer "automobile_model_year_id" # user-defined
|
137
|
-
t.datetime "created_at"
|
138
|
-
t.datetime "updated_at"
|
139
|
-
t.float "fuel_efficiency"
|
140
|
-
t.integer "volume"
|
141
|
-
t.string "row_hash"
|
142
|
-
t.integer 'data_miner_touch_count'
|
143
|
-
t.integer 'data_miner_last_run_id'
|
144
|
-
end
|
145
|
-
execute "ALTER TABLE automobile_make_years ADD PRIMARY KEY (row_hash);"
|
146
|
-
|
147
|
-
create_table "automobile_makes", :force => true, :options => 'ENGINE=InnoDB default charset=utf8', :id => false do |t|
|
148
|
-
t.string "name"
|
149
|
-
t.datetime "updated_at"
|
150
|
-
t.datetime "created_at"
|
151
|
-
t.float "fuel_efficiency"
|
152
|
-
t.boolean "major"
|
153
|
-
t.integer 'data_miner_touch_count'
|
154
|
-
t.integer 'data_miner_last_run_id'
|
155
|
-
end
|
156
|
-
execute "ALTER TABLE automobile_makes ADD PRIMARY KEY (name);"
|
157
|
-
|
158
|
-
create_table "automobile_model_years", :force => true, :options => 'ENGINE=InnoDB default charset=utf8', :id => false do |t|
|
159
|
-
t.integer "year"
|
160
|
-
t.datetime "updated_at"
|
161
|
-
t.datetime "created_at"
|
162
|
-
t.float "fuel_efficiency"
|
163
|
-
t.integer 'data_miner_touch_count'
|
164
|
-
t.integer 'data_miner_last_run_id'
|
165
|
-
end
|
166
|
-
execute "ALTER TABLE automobile_model_years ADD PRIMARY KEY (year);"
|
167
|
-
|
168
|
-
create_table "automobile_models", :force => true, :options => 'ENGINE=InnoDB default charset=utf8', :id => false do |t|
|
169
|
-
t.string "name"
|
170
|
-
t.string "automobile_make_id"
|
171
|
-
t.datetime "updated_at"
|
172
|
-
t.datetime "created_at"
|
173
|
-
t.string "row_hash"
|
174
|
-
t.integer 'data_miner_touch_count'
|
175
|
-
t.integer 'data_miner_last_run_id'
|
176
|
-
end
|
177
|
-
execute "ALTER TABLE automobile_models ADD PRIMARY KEY (row_hash);"
|
178
|
-
|
179
115
|
create_table "residential_energy_consumption_survey_responses", :options => 'ENGINE=InnoDB default charset=utf8', :id => false, :force => true do |t|
|
180
116
|
t.integer "department_of_energy_identifier"
|
181
117
|
|
@@ -250,39 +186,4 @@ ActiveRecord::Schema.define(:version => 20090819143429) do
|
|
250
186
|
t.integer 'data_miner_last_run_id'
|
251
187
|
end
|
252
188
|
execute "ALTER TABLE residential_energy_consumption_survey_responses ADD PRIMARY KEY (department_of_energy_identifier);"
|
253
|
-
|
254
|
-
# add_index "residence_survey_responses", ["annual_energy_from_electricity_for_clothes_driers", "annual_energy_from_electricity_for_dishwashers", "annual_energy_from_electricity_for_freezers", "annual_energy_from_electricity_for_refrigerators", "annual_energy_from_electricity_for_air_conditioners", "annual_energy_from_electricity_for_heating_space", "annual_energy_from_electricity_for_heating_water", "annual_energy_from_electricity_for_other_appliances", "weighting", "floorspace", "residents", "heating_degree_days", "census_region_id"], :name => "index_residence_survey_responses_on_annu3501626657"
|
255
|
-
# add_index "residence_survey_responses", ["annual_energy_from_electricity_for_clothes_driers", "weighting", "floorspace"], :name => "index_residence_survey_responses_on_annu1433274229"
|
256
|
-
# add_index "residence_survey_responses", ["annual_energy_from_electricity_for_clothes_driers", "weighting", "residence_clothes_drier_use_id"], :name => "index_residence_survey_responses_on_annu1262382397"
|
257
|
-
# add_index "residence_survey_responses", ["annual_energy_from_electricity_for_dishwashers", "weighting", "floorspace", "residents", "heating_degree_days", "census_region_id"], :name => "index_residence_survey_responses_on_annu4218458677"
|
258
|
-
# add_index "residence_survey_responses", ["annual_energy_from_electricity_for_dishwashers", "weighting", "floorspace"], :name => "index_residence_survey_responses_on_annu119061746"
|
259
|
-
# add_index "residence_survey_responses", ["annual_energy_from_electricity_for_dishwashers", "weighting", "residence_dishwasher_use_id"], :name => "index_residence_survey_responses_on_annu3439036757"
|
260
|
-
# add_index "residence_survey_responses", ["annual_energy_from_electricity_for_freezers", "weighting", "floorspace", "residents", "heating_degree_days", "census_region_id"], :name => "index_residence_survey_responses_on_annu3327447874"
|
261
|
-
# add_index "residence_survey_responses", ["annual_energy_from_electricity_for_freezers", "weighting", "floorspace"], :name => "index_residence_survey_responses_on_annu1386319236"
|
262
|
-
# add_index "residence_survey_responses", ["annual_energy_from_electricity_for_refrigerators", "weighting", "floorspace", "residents", "heating_degree_days", "census_region_id"], :name => "index_residence_survey_responses_on_annu73542686"
|
263
|
-
# add_index "residence_survey_responses", ["annual_energy_from_electricity_for_refrigerators", "weighting", "floorspace"], :name => "index_residence_survey_responses_on_annu3936186192"
|
264
|
-
# add_index "residence_survey_responses", ["annual_energy_from_fuel_oil_for_heating_space", "annual_energy_from_fuel_oil_for_heating_water", "annual_energy_from_fuel_oil_for_appliances", "weighting", "floorspace", "residents", "heating_degree_days", "census_region_id"], :name => "index_residence_survey_responses_on_annu2746016586"
|
265
|
-
# add_index "residence_survey_responses", ["annual_energy_from_kerosene", "weighting", "floorspace", "residents", "heating_degree_days", "census_region_id"], :name => "index_residence_survey_responses_on_annu2598214"
|
266
|
-
# add_index "residence_survey_responses", ["annual_energy_from_kerosene", "weighting", "floorspace"], :name => "index_residence_survey_responses_on_annu502197058"
|
267
|
-
# add_index "residence_survey_responses", ["annual_energy_from_natural_gas_for_heating_space", "annual_energy_from_natural_gas_for_heating_water", "annual_energy_from_natural_gas_for_appliances", "weighting", "floorspace", "residents", "heating_degree_days", "census_region_id"], :name => "index_residence_survey_responses_on_annu830199308"
|
268
|
-
# add_index "residence_survey_responses", ["annual_energy_from_propane_for_heating_space", "annual_energy_from_propane_for_heating_water", "annual_energy_from_propane_for_appliances", "weighting", "floorspace", "residents", "heating_degree_days", "census_region_id"], :name => "index_residence_survey_responses_on_annu4097984181"
|
269
|
-
# add_index "residence_survey_responses", ["annual_energy_from_wood", "weighting", "floorspace", "residents", "heating_degree_days", "census_region_id"], :name => "index_residence_survey_responses_on_annu250862876"
|
270
|
-
# add_index "residence_survey_responses", ["annual_energy_from_wood", "weighting", "floorspace"], :name => "index_residence_survey_responses_on_annu3742395500"
|
271
|
-
# add_index "residence_survey_responses", ["floorspace", "annual_energy_from_electricity_for_clothes_driers", "annual_energy_from_electricity_for_dishwashers", "annual_energy_from_electricity_for_freezers", "annual_energy_from_electricity_for_refrigerators", "annual_energy_from_electricity_for_air_conditioners", "annual_energy_from_electricity_for_heating_space", "annual_energy_from_electricity_for_heating_water", "annual_energy_from_electricity_for_other_appliances", "weighting"], :name => "index_residence_survey_responses_on_floo1081052200"
|
272
|
-
# add_index "residence_survey_responses", ["floorspace", "annual_energy_from_fuel_oil_for_heating_space", "annual_energy_from_fuel_oil_for_heating_water", "annual_energy_from_fuel_oil_for_appliances", "weighting"], :name => "index_residence_survey_responses_on_floo2042532749"
|
273
|
-
# add_index "residence_survey_responses", ["floorspace", "annual_energy_from_natural_gas_for_heating_space", "annual_energy_from_natural_gas_for_heating_water", "annual_energy_from_natural_gas_for_appliances", "weighting"], :name => "index_residence_survey_responses_on_floo4150514738"
|
274
|
-
# add_index "residence_survey_responses", ["floorspace", "annual_energy_from_propane_for_heating_space", "annual_energy_from_propane_for_heating_water", "annual_energy_from_propane_for_appliances", "weighting"], :name => "index_residence_survey_responses_on_floo2054994085"
|
275
|
-
# add_index "residence_survey_responses", ["floorspace", "construction_year", "residents", "heating_degree_days", "census_region_id", "residence_class_id", "ownership", "cooling_degree_days", "residence_urbanity_id"], :name => "index_residence_survey_responses_on_floo2191768676"
|
276
|
-
# add_index "residence_survey_responses", ["floorspace", "construction_year", "residents", "heating_degree_days", "census_region_id", "residence_class_id", "ownership", "cooling_degree_days"], :name => "index_residence_survey_responses_on_floo1971465492"
|
277
|
-
# add_index "residence_survey_responses", ["floorspace", "construction_year", "residents", "heating_degree_days", "census_region_id", "residence_class_id", "ownership"], :name => "index_residence_survey_responses_on_floo4007566201"
|
278
|
-
# add_index "residence_survey_responses", ["floorspace", "construction_year", "residents", "heating_degree_days", "census_region_id", "residence_class_id"], :name => "index_residence_survey_responses_on_floo1574191187"
|
279
|
-
# add_index "residence_survey_responses", ["floorspace", "construction_year", "residents", "heating_degree_days", "census_region_id"], :name => "index_residence_survey_responses_on_floo259916455"
|
280
|
-
# add_index "residence_survey_responses", ["floorspace", "construction_year", "residents", "heating_degree_days"], :name => "index_residence_survey_responses_on_floo2330810762"
|
281
|
-
# add_index "residence_survey_responses", ["floorspace", "construction_year", "residents"], :name => "index_residence_survey_responses_on_floo3429600394"
|
282
|
-
# add_index "residence_survey_responses", ["floorspace", "construction_year"], :name => "index_residence_survey_responses_on_floo809808213"
|
283
|
-
# add_index "residence_survey_responses", ["floorspace"], :name => "index_residence_survey_responses_on_floorspace"
|
284
|
-
# add_index "residence_survey_responses", ["lighting_efficiency", "weighting", "floorspace"], :name => "index_residence_survey_responses_on_ligh1681825374"
|
285
|
-
# add_index "residence_survey_responses", ["lighting_use", "weighting", "floorspace"], :name => "index_residence_survey_responses_on_ligh3781776396"
|
286
|
-
# add_index "residence_survey_responses", ["refrigerator_count"], :name => "index_residence_survey_responses_on_refr2806359993"
|
287
|
-
# add_index "residence_survey_responses", ["residence_clothes_drier_use_id"], :name => "index_residence_survey_responses_on_resi3713455541"
|
288
189
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_miner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seamus Abshere
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-03-
|
13
|
+
date: 2010-03-19 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -118,7 +118,6 @@ files:
|
|
118
118
|
- lib/data_miner/import.rb
|
119
119
|
- lib/data_miner/process.rb
|
120
120
|
- lib/data_miner/run.rb
|
121
|
-
- lib/data_miner/william_james_cartesian_product.rb
|
122
121
|
- test/data_miner_test.rb
|
123
122
|
- test/test_helper.rb
|
124
123
|
has_rdoc: true
|