earth 0.0.29 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,8 @@ ResidenceAppliance.class_eval do
|
|
8
8
|
|
9
9
|
process "Derive from residential energy consumption survey responses" do
|
10
10
|
ResidentialEnergyConsumptionSurveyResponse.run_data_miner!
|
11
|
-
ResidentialEnergyConsumptionSurveyResponse.column_names.
|
11
|
+
ResidentialEnergyConsumptionSurveyResponse.column_names.grep(/_count$/).each do |column_name|
|
12
|
+
appliance_name = column_name.sub '_count', ''
|
12
13
|
appliance = find_or_create_by_name appliance_name
|
13
14
|
appliance.annual_energy_from_electricity = ResidentialEnergyConsumptionSurveyResponse.weighted_average "annual_energy_from_electricity_for_#{appliance_name.pluralize}"
|
14
15
|
appliance.save!
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: earth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 35
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 30
|
10
|
+
version: 0.0.30
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Seamus Abshere
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-09-
|
20
|
+
date: 2010-09-07 00:00:00 -05:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
requirements:
|
29
29
|
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
hash:
|
31
|
+
hash: 299253624
|
32
32
|
segments:
|
33
33
|
- 3
|
34
34
|
- 0
|