earth 0.3.11 → 0.3.13

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 (109) hide show
  1. data/Gemfile.lock +7 -3
  2. data/features/automobile_fuel_type.feature +8 -18
  3. data/features/automobile_make_fleet_year.feature +4 -4
  4. data/features/automobile_make_model_year.feature +4 -4
  5. data/features/automobile_make_model_year_variant.feature +4 -4
  6. data/features/automobile_make_year.feature +4 -4
  7. data/features/automobile_size_class_year.feature +34 -0
  8. data/features/automobile_type_fuel_age.feature +54 -0
  9. data/features/automobile_type_fuel_control.feature +34 -0
  10. data/features/automobile_type_fuel_year.feature +54 -0
  11. data/features/automobile_type_fuel_year_control.feature +34 -0
  12. data/features/automobile_type_year.feature +44 -0
  13. data/features/computation_platform.feature +14 -0
  14. data/features/data_center_company.feature +14 -0
  15. data/features/egrid_region.feature +6 -0
  16. data/features/egrid_subregion.feature +4 -4
  17. data/features/flight_segment.feature +14 -0
  18. data/features/fuel_year.feature +44 -0
  19. data/features/greenhouse_gas.feature +44 -0
  20. data/features/server_type.feature +34 -0
  21. data/features/server_type_alias.feature +14 -0
  22. data/features/support/imports/automobile_make_fleet_year_bad.csv +1 -2
  23. data/features/support/imports/automobile_make_fleet_year_good.csv +1 -2
  24. data/features/support/imports/automobile_size_class_year_bad.csv +2 -0
  25. data/features/support/imports/automobile_size_class_year_good.csv +2 -0
  26. data/features/support/imports/automobile_type_fuel_age_bad.csv +3 -0
  27. data/features/support/imports/automobile_type_fuel_age_good.csv +3 -0
  28. data/features/support/imports/automobile_type_fuel_control_bad.csv +3 -0
  29. data/features/support/imports/automobile_type_fuel_control_good.csv +3 -0
  30. data/features/support/imports/automobile_type_fuel_year_bad.csv +2 -0
  31. data/features/support/imports/automobile_type_fuel_year_control_bad.csv +3 -0
  32. data/features/support/imports/automobile_type_fuel_year_control_good.csv +3 -0
  33. data/features/support/imports/automobile_type_fuel_year_good.csv +2 -0
  34. data/features/support/imports/automobile_type_year_bad.csv +2 -0
  35. data/features/support/imports/automobile_type_year_good.csv +2 -0
  36. data/features/support/imports/computation_platform_bad.csv +3 -0
  37. data/features/support/imports/computation_platform_good.csv +3 -0
  38. data/features/support/imports/data_center_company_bad.csv +3 -0
  39. data/features/support/imports/data_center_company_good.csv +3 -0
  40. data/features/support/imports/egrid_subregion_good.csv +2 -2
  41. data/features/support/imports/flight_segment_bad.csv +8 -0
  42. data/features/support/imports/flight_segment_good.csv +8 -0
  43. data/features/support/imports/fuel_year_bad.csv +2 -0
  44. data/features/support/imports/fuel_year_good.csv +2 -0
  45. data/features/support/imports/greenhouse_gas_bad.csv +2 -0
  46. data/features/support/imports/greenhouse_gas_good.csv +2 -0
  47. data/features/support/imports/server_type_alias_bad.csv +3 -0
  48. data/features/support/imports/server_type_alias_good.csv +3 -0
  49. data/features/support/imports/server_type_bad.csv +3 -0
  50. data/features/support/imports/server_type_good.csv +3 -0
  51. data/lib/earth/air/aircraft.rb +2 -3
  52. data/lib/earth/air/aircraft/data_miner.rb +2 -4
  53. data/lib/earth/air/aircraft_class/data_miner.rb +3 -1
  54. data/lib/earth/air/airport/data_miner.rb +4 -3
  55. data/lib/earth/air/flight_distance_class/data_miner.rb +2 -0
  56. data/lib/earth/air/flight_seat_class/data_miner.rb +4 -4
  57. data/lib/earth/air/flight_segment/data_miner.rb +7 -0
  58. data/lib/earth/all.rb +1 -0
  59. data/lib/earth/automobile.rb +6 -0
  60. data/lib/earth/automobile/automobile_fuel_type/data_miner.rb +68 -25
  61. data/lib/earth/automobile/automobile_make_fleet_year/data_miner.rb +5 -6
  62. data/lib/earth/automobile/automobile_make_model/data_miner.rb +1 -2
  63. data/lib/earth/automobile/automobile_make_model_year/data_miner.rb +3 -4
  64. data/lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb +14 -10
  65. data/lib/earth/automobile/automobile_make_year/data_miner.rb +2 -2
  66. data/lib/earth/automobile/automobile_size_class/data_miner.rb +28 -26
  67. data/lib/earth/automobile/automobile_size_class_year.rb +7 -0
  68. data/lib/earth/automobile/automobile_size_class_year/data_miner.rb +56 -0
  69. data/lib/earth/automobile/automobile_type_fuel_age.rb +7 -0
  70. data/lib/earth/automobile/automobile_type_fuel_age/data_miner.rb +195 -0
  71. data/lib/earth/automobile/automobile_type_fuel_control.rb +7 -0
  72. data/lib/earth/automobile/automobile_type_fuel_control/data_miner.rb +57 -0
  73. data/lib/earth/automobile/automobile_type_fuel_year.rb +7 -0
  74. data/lib/earth/automobile/automobile_type_fuel_year/data_miner.rb +164 -0
  75. data/lib/earth/automobile/automobile_type_fuel_year_control.rb +7 -0
  76. data/lib/earth/automobile/automobile_type_fuel_year_control/data_miner.rb +46 -0
  77. data/lib/earth/automobile/automobile_type_year.rb +7 -0
  78. data/lib/earth/automobile/automobile_type_year/data_miner.rb +55 -0
  79. data/lib/earth/automobile/data_miner.rb +6 -0
  80. data/lib/earth/computation.rb +4 -0
  81. data/lib/earth/computation/computation_platform.rb +9 -0
  82. data/lib/earth/computation/computation_platform/data_miner.rb +24 -0
  83. data/lib/earth/computation/data_center_company.rb +7 -0
  84. data/lib/earth/computation/data_center_company/data_miner.rb +22 -0
  85. data/lib/earth/computation/data_miner.rb +4 -0
  86. data/lib/earth/computation/server_type.rb +9 -0
  87. data/lib/earth/computation/server_type/data_miner.rb +49 -0
  88. data/lib/earth/computation/server_type_alias.rb +10 -0
  89. data/lib/earth/computation/server_type_alias/data_miner.rb +30 -0
  90. data/lib/earth/data_miner.rb +1 -0
  91. data/lib/earth/fuel.rb +2 -0
  92. data/lib/earth/fuel/data_miner.rb +2 -0
  93. data/lib/earth/fuel/fuel_year.rb +7 -0
  94. data/lib/earth/fuel/fuel_year/data_miner.rb +76 -0
  95. data/lib/earth/fuel/greenhouse_gas.rb +7 -0
  96. data/lib/earth/fuel/greenhouse_gas/data_miner.rb +59 -0
  97. data/lib/earth/locality/country/data_miner.rb +1 -1
  98. data/lib/earth/locality/egrid_region/data_miner.rb +8 -0
  99. data/lib/earth/locality/egrid_subregion/data_miner.rb +3 -3
  100. data/lib/earth/locality/urbanity/data_miner.rb +2 -2
  101. data/lib/earth/locality/zip_code/data_miner.rb +2 -3
  102. data/lib/earth/residence/air_conditioner_use/data_miner.rb +2 -2
  103. data/lib/earth/residence/clothes_machine_use/data_miner.rb +3 -3
  104. data/lib/earth/residence/dishwasher_use/data_miner.rb +1 -1
  105. data/lib/earth/residence/residence_class/data_miner.rb +2 -2
  106. data/lib/earth/residence/residential_energy_consumption_survey_response.rb +4 -4
  107. data/lib/earth/residence/residential_energy_consumption_survey_response/data_miner.rb +3 -4
  108. data/spec/earth_spec.rb +4 -5
  109. metadata +196 -81
@@ -16,7 +16,7 @@ Country.class_eval do
16
16
  store 'name', :field_number => 0
17
17
  end
18
18
 
19
- import 'country-specific flight route inefficiency factors derived from Ketteunen et al. (2005)',
19
+ import "country-specific flight route inefficiency factors derived from Kettunen et al. (2005)",
20
20
  :url => 'https://spreadsheets.google.com/pub?key=0AoQJbWqPrREqdG0yc3BxYUkybWV5M3RKb2t4X0JUOFE&hl=en&single=true&gid=0&output=csv' do
21
21
  key 'iso_3166_code'
22
22
  store 'flight_route_inefficiency_factor'
@@ -39,5 +39,13 @@ EgridRegion.class_eval do
39
39
  end
40
40
  end
41
41
  end
42
+
43
+ # FIXME TODO get this verification to work
44
+ # verify "Fallback loss factor should be greater than zero and less than one" do
45
+ # factor = EgridRegion.fallback.loss_factor
46
+ # unless factor > 0 and factor < 1
47
+ # raise "Invalid EgridRegion fallback loss factor: #{factor} (should be 0 < loss_factor < 1)"
48
+ # end
49
+ # end
42
50
  end
43
51
  end
@@ -80,10 +80,10 @@ EgridSubregion.class_eval do
80
80
  end
81
81
  end
82
82
 
83
- verify "Electricity emission factor units should be kilograms per kilowatt hour" do
83
+ verify "Electricity emission factor units should be kilograms co2e per kilowatt hour" do
84
84
  EgridSubregion.all.each do |subregion|
85
- unless subregion.electricity_emission_factor_units == "kilograms_per_kilowatt_hour"
86
- raise "Invalid electricity emission factor units for EgridSubregion #{subregion.name}: #{subregion.electricity_emission_factor_units} (should be kilograms_per_kilowatt_hour)"
85
+ unless subregion.electricity_emission_factor_units == "kilograms_co2e_per_kilowatt_hour"
86
+ raise "Invalid electricity emission factor units for EgridSubregion #{subregion.name}: #{subregion.electricity_emission_factor_units} (should be kilograms_co2e_per_kilowatt_hour)"
87
87
  end
88
88
  end
89
89
  end
@@ -3,12 +3,12 @@ Urbanity.class_eval do
3
3
  schema do
4
4
  string 'name'
5
5
  end
6
-
6
+
7
7
  process "derive from ResidentialEnergyConsumptionSurveyResponse" do
8
8
  ResidentialEnergyConsumptionSurveyResponse.run_data_miner!
9
9
  connection.execute %{
10
10
  INSERT IGNORE INTO urbanities(name)
11
- SELECT DISTINCT residential_energy_consumption_survey_responses.urbanity_id FROM residential_energy_consumption_survey_responses WHERE LENGTH(residential_energy_consumption_survey_responses.urbanity_id) > 0
11
+ SELECT DISTINCT recs_responses.urbanity_id FROM recs_responses WHERE LENGTH(recs_responses.urbanity_id) > 0
12
12
  }
13
13
  end
14
14
  end
@@ -27,17 +27,16 @@ ZipCode.class_eval do
27
27
  store 'longitude'
28
28
  end
29
29
 
30
- import 'a list of zipcodes and eGRID Subregions',
30
+ import 'a Brighter Planet-created list of zipcode eGRID Subregions',
31
31
  :url => 'http://static.brighterplanet.com/science/data/electricity/egrid/models_export/zip_subregions.csv' do
32
32
  key 'name', :field_name => 'zip', :sprintf => '%05d'
33
33
  store 'egrid_subregion_abbreviation', :field_name => 'primary_subregion'
34
34
  end
35
35
 
36
- import 'a list of zipcodes and Climate Divisions',
36
+ import 'a Brighter Planet-created list of zipcode Climate Divisions',
37
37
  :url => 'http://static.brighterplanet.com/science/data/geography/zip_code_name-climate_division_name.csv' do
38
38
  key 'name', :field_name => 'zip_code_name', :sprintf => '%05d'
39
39
  store 'climate_division_name'
40
40
  end
41
41
  end
42
42
  end
43
-
@@ -5,12 +5,12 @@ AirConditionerUse.class_eval do
5
5
  float 'fugitive_emission'
6
6
  string 'fugitive_emission_units'
7
7
  end
8
-
8
+
9
9
  process "derive from ResidentialEnergyConsumptionSurveyResponse" do
10
10
  ResidentialEnergyConsumptionSurveyResponse.run_data_miner!
11
11
  connection.execute %{
12
12
  INSERT IGNORE INTO air_conditioner_uses(name)
13
- SELECT DISTINCT residential_energy_consumption_survey_responses.central_ac_use FROM residential_energy_consumption_survey_responses WHERE LENGTH(residential_energy_consumption_survey_responses.central_ac_use) > 0
13
+ SELECT DISTINCT recs_responses.central_ac_use FROM recs_responses WHERE LENGTH(recs_responses.central_ac_use) > 0
14
14
  }
15
15
  end
16
16
 
@@ -5,15 +5,15 @@ ClothesMachineUse.class_eval do
5
5
  float 'annual_energy_from_electricity_for_clothes_driers'
6
6
  string 'annual_energy_from_electricity_for_clothes_driers_units'
7
7
  end
8
-
8
+
9
9
  process "derive from ResidentialEnergyConsumptionSurveyResponse" do
10
10
  ResidentialEnergyConsumptionSurveyResponse.run_data_miner!
11
11
  connection.execute %{
12
12
  INSERT IGNORE INTO clothes_machine_uses(name)
13
- SELECT DISTINCT residential_energy_consumption_survey_responses.clothes_washer_use FROM residential_energy_consumption_survey_responses WHERE LENGTH(residential_energy_consumption_survey_responses.clothes_washer_use) > 0
13
+ SELECT DISTINCT recs_responses.clothes_washer_use FROM recs_responses WHERE LENGTH(recs_responses.clothes_washer_use) > 0
14
14
  }
15
15
  end
16
-
16
+
17
17
  # sabshere 5/20/10 weird that this uses cohort
18
18
  process "precalculate annual energy use" do
19
19
  find_in_batches do |batch|
@@ -10,7 +10,7 @@ DishwasherUse.class_eval do
10
10
  ResidentialEnergyConsumptionSurveyResponse.run_data_miner!
11
11
  connection.execute %{
12
12
  INSERT IGNORE INTO dishwasher_uses(name)
13
- SELECT DISTINCT residential_energy_consumption_survey_responses.dishwasher_use_id FROM residential_energy_consumption_survey_responses WHERE LENGTH(residential_energy_consumption_survey_responses.dishwasher_use_id) > 0
13
+ SELECT DISTINCT recs_responses.dishwasher_use_id FROM recs_responses WHERE LENGTH(recs_responses.dishwasher_use_id) > 0
14
14
  }
15
15
  end
16
16
 
@@ -3,12 +3,12 @@ ResidenceClass.class_eval do
3
3
  schema do
4
4
  string :name
5
5
  end
6
-
6
+
7
7
  process "derive from ResidentialEnergyConsumptionSurveyResponse" do
8
8
  ResidentialEnergyConsumptionSurveyResponse.run_data_miner!
9
9
  connection.execute %{
10
10
  INSERT IGNORE INTO residence_classes(name)
11
- SELECT DISTINCT residential_energy_consumption_survey_responses.residence_class_id FROM residential_energy_consumption_survey_responses WHERE LENGTH(residential_energy_consumption_survey_responses.residence_class_id) > 0
11
+ SELECT DISTINCT recs_responses.residence_class_id FROM recs_responses WHERE LENGTH(recs_responses.residence_class_id) > 0
12
12
  }
13
13
  end
14
14
  end
@@ -1,7 +1,7 @@
1
1
  class ResidentialEnergyConsumptionSurveyResponse < ActiveRecord::Base
2
- set_primary_key :department_of_energy_identifier
3
- set_table_name :res_surveys
4
-
2
+ set_primary_key :id
3
+ set_table_name :recs_responses
4
+
5
5
  belongs_to :census_division, :foreign_key => 'census_division_number'
6
6
  belongs_to :census_region, :foreign_key => 'census_region_number'
7
7
  # what follows are entirely derived here
@@ -32,7 +32,7 @@ class ResidentialEnergyConsumptionSurveyResponse < ActiveRecord::Base
32
32
 
33
33
  data_miner do
34
34
  tap "Brighter Planet's sanitized RECS 2005", Earth.taps_server
35
-
35
+
36
36
  process "pull dependencies" do
37
37
  run_data_miner_on_belongs_to_associations
38
38
  end
@@ -2,7 +2,7 @@ ResidentialEnergyConsumptionSurveyResponse.class_eval do
2
2
  data_miner do
3
3
  # sabshere 9/20/10 sorted with sort -d -t "'" -k 2 ~/Desktop/parts.txt
4
4
  schema Earth.database_options do
5
- integer 'department_of_energy_identifier'
5
+ integer 'id'
6
6
  integer 'air_conditioner_use_id'
7
7
  float 'annual_energy_from_electricity_for_air_conditioners'
8
8
  string 'annual_energy_from_electricity_for_air_conditioners_units'
@@ -98,13 +98,13 @@ ResidentialEnergyConsumptionSurveyResponse.class_eval do
98
98
  Conversions.register :kbtus, :joules, 1_000.0 * 1_055.05585
99
99
  Conversions.register :square_feet, :square_metres, 0.09290304
100
100
  end
101
-
101
+
102
102
  # conversions are NOT performed here, since we first have to zero out legitimate skips
103
103
  # otherwise you will get values like "999 pounds = 453.138778 kilograms" (where 999 is really a legit skip)
104
104
  import 'the 2005 EIA Residential Energy Consumption Survey microdata',
105
105
  :url => 'http://www.eia.doe.gov/emeu/recs/recspubuse05/datafiles/RECS05alldata.csv',
106
106
  :headers => :upcase do
107
- key 'department_of_energy_identifier', :field_name => 'DOEID'
107
+ key 'id', :field_name => 'DOEID'
108
108
 
109
109
  store 'residence_class_id', :field_name => 'TYPEHUQ', :dictionary => { :input => 'Code', :output => 'Description', :url => 'http://github.com/brighterplanet/manually_curated_data/raw/master/typehuq/typehuq.csv' }
110
110
  store 'construction_year', :field_name => 'YEARMADE', :dictionary => { :input => 'Code', :sprintf => '%02d', :output => 'Date in the middle (synthetic)', :url => 'http://github.com/brighterplanet/manually_curated_data/raw/master/yearmade/yearmade.csv' }
@@ -280,4 +280,3 @@ ResidentialEnergyConsumptionSurveyResponse.class_eval do
280
280
  # FIXME add precalc bathrooms per https://github.com/brighterplanet/cm1/commit/77df97c50311f3c59aad891f018bf3d487afeb98
281
281
  end
282
282
  end
283
-
@@ -27,7 +27,7 @@ describe Earth do
27
27
  describe '.resources' do
28
28
  it 'should get a list of resources' do
29
29
  resources = Earth.resources
30
- resources.keys.count.should == 59
30
+ resources.keys.count.should == 71
31
31
  resources['FuelType'][:domain].should == 'fuel'
32
32
  end
33
33
  it 'should exclude data_miner files' do
@@ -37,20 +37,19 @@ describe Earth do
37
37
 
38
38
  describe '.resource_names' do
39
39
  it 'should get a list of all resource names' do
40
- Earth.resource_names.count.should == 59
40
+ Earth.resource_names.count.should == 71
41
41
  Earth.resource_names.should include('Aircraft')
42
42
  Earth.resource_names.should include('Industry')
43
43
  end
44
44
  it 'should filter resources by domain' do
45
- Earth.resource_names(['fuel']).count.should == 2
45
+ Earth.resource_names(['fuel']).count.should == 4
46
46
  Earth.resource_names(['fuel']).should include('FuelType')
47
47
  end
48
48
  end
49
49
 
50
50
  describe '.domains' do
51
51
  it 'should return a list of all domains' do
52
- Earth.domains.should == %w{air automobile bus diet fuel hospitality industry locality pet rail residence shipping}
52
+ Earth.domains.should == %w{air automobile bus computation diet fuel hospitality industry locality pet rail residence shipping}
53
53
  end
54
54
  end
55
55
  end
56
-
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earth
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 9
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 3
8
- - 11
9
- version: 0.3.11
9
+ - 13
10
+ version: 0.3.13
10
11
  platform: ruby
11
12
  authors:
12
13
  - Seamus Abshere
@@ -16,141 +17,150 @@ autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2011-01-11 00:00:00 -05:00
20
+ date: 2011-01-24 00:00:00 -08:00
20
21
  default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
23
24
  name: activerecord
25
+ prerelease: false
24
26
  requirement: &id001 !ruby/object:Gem::Requirement
25
27
  none: false
26
28
  requirements:
27
29
  - - ~>
28
30
  - !ruby/object:Gem::Version
31
+ hash: 5
29
32
  segments:
30
33
  - 3
31
34
  version: "3"
32
35
  type: :runtime
33
- prerelease: false
34
36
  version_requirements: *id001
35
37
  - !ruby/object:Gem::Dependency
36
38
  name: data_miner
39
+ prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
38
41
  none: false
39
42
  requirements:
40
43
  - - ~>
41
44
  - !ruby/object:Gem::Version
45
+ hash: 7
42
46
  segments:
43
47
  - 0
44
48
  - 5
45
49
  - 6
46
50
  version: 0.5.6
47
51
  type: :runtime
48
- prerelease: false
49
52
  version_requirements: *id002
50
53
  - !ruby/object:Gem::Dependency
51
54
  name: falls_back_on
55
+ prerelease: false
52
56
  requirement: &id003 !ruby/object:Gem::Requirement
53
57
  none: false
54
58
  requirements:
55
59
  - - ">="
56
60
  - !ruby/object:Gem::Version
61
+ hash: 25
57
62
  segments:
58
63
  - 0
59
64
  - 0
60
65
  - 3
61
66
  version: 0.0.3
62
67
  type: :runtime
63
- prerelease: false
64
68
  version_requirements: *id003
65
69
  - !ruby/object:Gem::Dependency
66
70
  name: geokit
71
+ prerelease: false
67
72
  requirement: &id004 !ruby/object:Gem::Requirement
68
73
  none: false
69
74
  requirements:
70
75
  - - ">="
71
76
  - !ruby/object:Gem::Version
77
+ hash: 3
72
78
  segments:
73
79
  - 1
74
80
  - 5
75
81
  - 0
76
82
  version: 1.5.0
77
83
  type: :runtime
78
- prerelease: false
79
84
  version_requirements: *id004
80
85
  - !ruby/object:Gem::Dependency
81
86
  name: cohort_scope
87
+ prerelease: false
82
88
  requirement: &id005 !ruby/object:Gem::Requirement
83
89
  none: false
84
90
  requirements:
85
91
  - - ">="
86
92
  - !ruby/object:Gem::Version
93
+ hash: 17
87
94
  segments:
88
95
  - 0
89
96
  - 0
90
97
  - 7
91
98
  version: 0.0.7
92
99
  type: :runtime
93
- prerelease: false
94
100
  version_requirements: *id005
95
101
  - !ruby/object:Gem::Dependency
96
102
  name: conversions
103
+ prerelease: false
97
104
  requirement: &id006 !ruby/object:Gem::Requirement
98
105
  none: false
99
106
  requirements:
100
107
  - - ">="
101
108
  - !ruby/object:Gem::Version
109
+ hash: 13
102
110
  segments:
103
111
  - 1
104
112
  - 4
105
113
  - 5
106
114
  version: 1.4.5
107
115
  type: :runtime
108
- prerelease: false
109
116
  version_requirements: *id006
110
117
  - !ruby/object:Gem::Dependency
111
118
  name: weighted_average
119
+ prerelease: false
112
120
  requirement: &id007 !ruby/object:Gem::Requirement
113
121
  none: false
114
122
  requirements:
115
123
  - - ">="
116
124
  - !ruby/object:Gem::Version
125
+ hash: 23
117
126
  segments:
118
127
  - 0
119
128
  - 0
120
129
  - 4
121
130
  version: 0.0.4
122
131
  type: :runtime
123
- prerelease: false
124
132
  version_requirements: *id007
125
133
  - !ruby/object:Gem::Dependency
126
134
  name: loose_tight_dictionary
135
+ prerelease: false
127
136
  requirement: &id008 !ruby/object:Gem::Requirement
128
137
  none: false
129
138
  requirements:
130
139
  - - ">="
131
140
  - !ruby/object:Gem::Version
141
+ hash: 15
132
142
  segments:
133
143
  - 0
134
144
  - 0
135
145
  - 8
136
146
  version: 0.0.8
137
147
  type: :runtime
138
- prerelease: false
139
148
  version_requirements: *id008
140
149
  - !ruby/object:Gem::Dependency
141
150
  name: sniff
151
+ prerelease: false
142
152
  requirement: &id009 !ruby/object:Gem::Requirement
143
153
  none: false
144
154
  requirements:
145
155
  - - ~>
146
156
  - !ruby/object:Gem::Version
157
+ hash: 25
147
158
  segments:
148
159
  - 0
149
160
  - 4
150
161
  - 11
151
162
  version: 0.4.11
152
163
  type: :development
153
- prerelease: false
154
164
  version_requirements: *id009
155
165
  description: An earth-simulation environment with ActiveRecord models and data
156
166
  email: andy@rossmeissl.net
@@ -205,12 +215,34 @@ files:
205
215
  - lib/earth/automobile/automobile_make_year/data_miner.rb
206
216
  - lib/earth/automobile/automobile_size_class.rb
207
217
  - lib/earth/automobile/automobile_size_class/data_miner.rb
218
+ - lib/earth/automobile/automobile_size_class_year.rb
219
+ - lib/earth/automobile/automobile_size_class_year/data_miner.rb
220
+ - lib/earth/automobile/automobile_type_fuel_age.rb
221
+ - lib/earth/automobile/automobile_type_fuel_age/data_miner.rb
222
+ - lib/earth/automobile/automobile_type_fuel_control.rb
223
+ - lib/earth/automobile/automobile_type_fuel_control/data_miner.rb
224
+ - lib/earth/automobile/automobile_type_fuel_year.rb
225
+ - lib/earth/automobile/automobile_type_fuel_year/data_miner.rb
226
+ - lib/earth/automobile/automobile_type_fuel_year_control.rb
227
+ - lib/earth/automobile/automobile_type_fuel_year_control/data_miner.rb
228
+ - lib/earth/automobile/automobile_type_year.rb
229
+ - lib/earth/automobile/automobile_type_year/data_miner.rb
208
230
  - lib/earth/automobile/data_miner.rb
209
231
  - lib/earth/base.rb
210
232
  - lib/earth/bus.rb
211
233
  - lib/earth/bus/bus_class.rb
212
234
  - lib/earth/bus/bus_class/data_miner.rb
213
235
  - lib/earth/bus/data_miner.rb
236
+ - lib/earth/computation.rb
237
+ - lib/earth/computation/computation_platform.rb
238
+ - lib/earth/computation/computation_platform/data_miner.rb
239
+ - lib/earth/computation/data_center_company.rb
240
+ - lib/earth/computation/data_center_company/data_miner.rb
241
+ - lib/earth/computation/data_miner.rb
242
+ - lib/earth/computation/server_type.rb
243
+ - lib/earth/computation/server_type/data_miner.rb
244
+ - lib/earth/computation/server_type_alias.rb
245
+ - lib/earth/computation/server_type_alias/data_miner.rb
214
246
  - lib/earth/conversions_ext.rb
215
247
  - lib/earth/data_miner.rb
216
248
  - lib/earth/diet.rb
@@ -225,6 +257,10 @@ files:
225
257
  - lib/earth/fuel/fuel_price/data_miner.rb
226
258
  - lib/earth/fuel/fuel_type.rb
227
259
  - lib/earth/fuel/fuel_type/data_miner.rb
260
+ - lib/earth/fuel/fuel_year.rb
261
+ - lib/earth/fuel/fuel_year/data_miner.rb
262
+ - lib/earth/fuel/greenhouse_gas.rb
263
+ - lib/earth/fuel/greenhouse_gas/data_miner.rb
228
264
  - lib/earth/hospitality.rb
229
265
  - lib/earth/hospitality/data_miner.rb
230
266
  - lib/earth/hospitality/lodging_class.rb
@@ -346,54 +382,93 @@ files:
346
382
  - vendor/geokit-rails/test/tasks.rake
347
383
  - vendor/geokit-rails/test/test_helper.rb
348
384
  - LICENSE-PREAMBLE
385
+ - features/automobile_fuel_type.feature
386
+ - features/automobile_make.feature
387
+ - features/automobile_make_fleet_year.feature
388
+ - features/automobile_make_model.feature
349
389
  - features/automobile_make_model_year.feature
350
- - features/automobile_make_year.feature
351
- - features/shipment_mode.feature
352
390
  - features/automobile_make_model_year_variant.feature
391
+ - features/automobile_make_year.feature
392
+ - features/automobile_size_class.feature
393
+ - features/automobile_size_class_year.feature
394
+ - features/automobile_type_fuel_age.feature
395
+ - features/automobile_type_fuel_control.feature
396
+ - features/automobile_type_fuel_year.feature
397
+ - features/automobile_type_fuel_year_control.feature
398
+ - features/automobile_type_year.feature
399
+ - features/bus_class.feature
400
+ - features/carrier.feature
401
+ - features/carrier_mode.feature
402
+ - features/computation_platform.feature
403
+ - features/data_center_company.feature
353
404
  - features/egrid_region.feature
354
- - features/automobile_make_model.feature
355
- - features/automobile_fuel_type.feature
356
- - features/support/imports/automobile_make_year_bad.csv
357
- - features/support/imports/bus_class_bad.csv
358
- - features/support/imports/carrier_mode_bad.csv
359
- - features/support/imports/automobile_make_model_year_variant_good.csv
360
- - features/support/imports/egrid_region_bad.csv
361
- - features/support/imports/automobile_make_model_year_bad.csv
405
+ - features/egrid_subregion.feature
406
+ - features/flight_segment.feature
407
+ - features/fuel_year.feature
408
+ - features/greenhouse_gas.feature
409
+ - features/rail_class.feature
410
+ - features/server_type.feature
411
+ - features/server_type_alias.feature
412
+ - features/shipment_mode.feature
413
+ - features/support/env.rb
414
+ - features/support/imports/automobile_fuel_type_bad.csv
362
415
  - features/support/imports/automobile_fuel_type_good.csv
363
- - features/support/imports/carrier_bad.csv
364
416
  - features/support/imports/automobile_make_bad.csv
365
- - features/support/imports/automobile_make_model_year_variant_bad.csv
366
- - features/support/imports/automobile_size_class_good.csv
367
- - features/support/imports/shipment_mode_good.csv
368
417
  - features/support/imports/automobile_make_fleet_year_bad.csv
369
- - features/support/imports/automobile_fuel_type_bad.csv
418
+ - features/support/imports/automobile_make_fleet_year_good.csv
419
+ - features/support/imports/automobile_make_good.csv
420
+ - features/support/imports/automobile_make_model_bad.csv
370
421
  - features/support/imports/automobile_make_model_good.csv
422
+ - features/support/imports/automobile_make_model_year_bad.csv
371
423
  - features/support/imports/automobile_make_model_year_good.csv
424
+ - features/support/imports/automobile_make_model_year_variant_bad.csv
425
+ - features/support/imports/automobile_make_model_year_variant_good.csv
426
+ - features/support/imports/automobile_make_year_bad.csv
427
+ - features/support/imports/automobile_make_year_good.csv
428
+ - features/support/imports/automobile_size_class_bad.csv
429
+ - features/support/imports/automobile_size_class_good.csv
430
+ - features/support/imports/automobile_size_class_year_bad.csv
431
+ - features/support/imports/automobile_size_class_year_good.csv
432
+ - features/support/imports/automobile_type_fuel_age_bad.csv
433
+ - features/support/imports/automobile_type_fuel_age_good.csv
434
+ - features/support/imports/automobile_type_fuel_control_bad.csv
435
+ - features/support/imports/automobile_type_fuel_control_good.csv
436
+ - features/support/imports/automobile_type_fuel_year_bad.csv
437
+ - features/support/imports/automobile_type_fuel_year_control_bad.csv
438
+ - features/support/imports/automobile_type_fuel_year_control_good.csv
439
+ - features/support/imports/automobile_type_fuel_year_good.csv
440
+ - features/support/imports/automobile_type_year_bad.csv
441
+ - features/support/imports/automobile_type_year_good.csv
442
+ - features/support/imports/bus_class_bad.csv
443
+ - features/support/imports/bus_class_good.csv
444
+ - features/support/imports/carrier_bad.csv
372
445
  - features/support/imports/carrier_good.csv
446
+ - features/support/imports/carrier_mode_bad.csv
373
447
  - features/support/imports/carrier_mode_good.csv
374
- - features/support/imports/egrid_subregion_bad.csv
375
- - features/support/imports/automobile_make_fleet_year_good.csv
376
- - features/support/imports/bus_class_good.csv
448
+ - features/support/imports/computation_platform_bad.csv
449
+ - features/support/imports/computation_platform_good.csv
450
+ - features/support/imports/data_center_company_bad.csv
451
+ - features/support/imports/data_center_company_good.csv
452
+ - features/support/imports/egrid_region_bad.csv
377
453
  - features/support/imports/egrid_region_good.csv
378
- - features/support/imports/shipment_mode_bad.csv
379
- - features/support/imports/automobile_make_model_bad.csv
380
- - features/support/imports/rail_class_bad.csv
381
- - features/support/imports/automobile_make_year_good.csv
382
- - features/support/imports/automobile_make_good.csv
383
- - features/support/imports/automobile_size_class_bad.csv
454
+ - features/support/imports/egrid_subregion_bad.csv
384
455
  - features/support/imports/egrid_subregion_good.csv
456
+ - features/support/imports/flight_segment_bad.csv
457
+ - features/support/imports/flight_segment_good.csv
458
+ - features/support/imports/fuel_year_bad.csv
459
+ - features/support/imports/fuel_year_good.csv
460
+ - features/support/imports/greenhouse_gas_bad.csv
461
+ - features/support/imports/greenhouse_gas_good.csv
462
+ - features/support/imports/rail_class_bad.csv
385
463
  - features/support/imports/rail_class_good.csv
386
- - features/support/env.rb
387
- - features/automobile_make.feature
388
- - features/bus_class.feature
389
- - features/carrier_mode.feature
390
- - features/automobile_size_class.feature
391
- - features/rail_class.feature
392
- - features/egrid_subregion.feature
393
- - features/carrier.feature
394
- - features/automobile_make_fleet_year.feature
395
- - spec/earth_spec.rb
464
+ - features/support/imports/server_type_alias_bad.csv
465
+ - features/support/imports/server_type_alias_good.csv
466
+ - features/support/imports/server_type_bad.csv
467
+ - features/support/imports/server_type_good.csv
468
+ - features/support/imports/shipment_mode_bad.csv
469
+ - features/support/imports/shipment_mode_good.csv
396
470
  - spec/earth/air/aircraft_spec.rb
471
+ - spec/earth_spec.rb
397
472
  - spec/spec_helper.rb
398
473
  - Gemfile
399
474
  - Gemfile.lock
@@ -411,7 +486,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
411
486
  requirements:
412
487
  - - ">="
413
488
  - !ruby/object:Gem::Version
414
- hash: 1003851629
489
+ hash: 3
415
490
  segments:
416
491
  - 0
417
492
  version: "0"
@@ -420,6 +495,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
420
495
  requirements:
421
496
  - - ">="
422
497
  - !ruby/object:Gem::Version
498
+ hash: 3
423
499
  segments:
424
500
  - 0
425
501
  version: "0"
@@ -431,54 +507,93 @@ signing_key:
431
507
  specification_version: 3
432
508
  summary: Land, sky, and sea
433
509
  test_files:
510
+ - features/automobile_fuel_type.feature
511
+ - features/automobile_make.feature
512
+ - features/automobile_make_fleet_year.feature
513
+ - features/automobile_make_model.feature
434
514
  - features/automobile_make_model_year.feature
435
- - features/automobile_make_year.feature
436
- - features/shipment_mode.feature
437
515
  - features/automobile_make_model_year_variant.feature
516
+ - features/automobile_make_year.feature
517
+ - features/automobile_size_class.feature
518
+ - features/automobile_size_class_year.feature
519
+ - features/automobile_type_fuel_age.feature
520
+ - features/automobile_type_fuel_control.feature
521
+ - features/automobile_type_fuel_year.feature
522
+ - features/automobile_type_fuel_year_control.feature
523
+ - features/automobile_type_year.feature
524
+ - features/bus_class.feature
525
+ - features/carrier.feature
526
+ - features/carrier_mode.feature
527
+ - features/computation_platform.feature
528
+ - features/data_center_company.feature
438
529
  - features/egrid_region.feature
439
- - features/automobile_make_model.feature
440
- - features/automobile_fuel_type.feature
441
- - features/support/imports/automobile_make_year_bad.csv
442
- - features/support/imports/bus_class_bad.csv
443
- - features/support/imports/carrier_mode_bad.csv
444
- - features/support/imports/automobile_make_model_year_variant_good.csv
445
- - features/support/imports/egrid_region_bad.csv
446
- - features/support/imports/automobile_make_model_year_bad.csv
530
+ - features/egrid_subregion.feature
531
+ - features/flight_segment.feature
532
+ - features/fuel_year.feature
533
+ - features/greenhouse_gas.feature
534
+ - features/rail_class.feature
535
+ - features/server_type.feature
536
+ - features/server_type_alias.feature
537
+ - features/shipment_mode.feature
538
+ - features/support/env.rb
539
+ - features/support/imports/automobile_fuel_type_bad.csv
447
540
  - features/support/imports/automobile_fuel_type_good.csv
448
- - features/support/imports/carrier_bad.csv
449
541
  - features/support/imports/automobile_make_bad.csv
450
- - features/support/imports/automobile_make_model_year_variant_bad.csv
451
- - features/support/imports/automobile_size_class_good.csv
452
- - features/support/imports/shipment_mode_good.csv
453
542
  - features/support/imports/automobile_make_fleet_year_bad.csv
454
- - features/support/imports/automobile_fuel_type_bad.csv
543
+ - features/support/imports/automobile_make_fleet_year_good.csv
544
+ - features/support/imports/automobile_make_good.csv
545
+ - features/support/imports/automobile_make_model_bad.csv
455
546
  - features/support/imports/automobile_make_model_good.csv
547
+ - features/support/imports/automobile_make_model_year_bad.csv
456
548
  - features/support/imports/automobile_make_model_year_good.csv
549
+ - features/support/imports/automobile_make_model_year_variant_bad.csv
550
+ - features/support/imports/automobile_make_model_year_variant_good.csv
551
+ - features/support/imports/automobile_make_year_bad.csv
552
+ - features/support/imports/automobile_make_year_good.csv
553
+ - features/support/imports/automobile_size_class_bad.csv
554
+ - features/support/imports/automobile_size_class_good.csv
555
+ - features/support/imports/automobile_size_class_year_bad.csv
556
+ - features/support/imports/automobile_size_class_year_good.csv
557
+ - features/support/imports/automobile_type_fuel_age_bad.csv
558
+ - features/support/imports/automobile_type_fuel_age_good.csv
559
+ - features/support/imports/automobile_type_fuel_control_bad.csv
560
+ - features/support/imports/automobile_type_fuel_control_good.csv
561
+ - features/support/imports/automobile_type_fuel_year_bad.csv
562
+ - features/support/imports/automobile_type_fuel_year_control_bad.csv
563
+ - features/support/imports/automobile_type_fuel_year_control_good.csv
564
+ - features/support/imports/automobile_type_fuel_year_good.csv
565
+ - features/support/imports/automobile_type_year_bad.csv
566
+ - features/support/imports/automobile_type_year_good.csv
567
+ - features/support/imports/bus_class_bad.csv
568
+ - features/support/imports/bus_class_good.csv
569
+ - features/support/imports/carrier_bad.csv
457
570
  - features/support/imports/carrier_good.csv
571
+ - features/support/imports/carrier_mode_bad.csv
458
572
  - features/support/imports/carrier_mode_good.csv
459
- - features/support/imports/egrid_subregion_bad.csv
460
- - features/support/imports/automobile_make_fleet_year_good.csv
461
- - features/support/imports/bus_class_good.csv
573
+ - features/support/imports/computation_platform_bad.csv
574
+ - features/support/imports/computation_platform_good.csv
575
+ - features/support/imports/data_center_company_bad.csv
576
+ - features/support/imports/data_center_company_good.csv
577
+ - features/support/imports/egrid_region_bad.csv
462
578
  - features/support/imports/egrid_region_good.csv
463
- - features/support/imports/shipment_mode_bad.csv
464
- - features/support/imports/automobile_make_model_bad.csv
465
- - features/support/imports/rail_class_bad.csv
466
- - features/support/imports/automobile_make_year_good.csv
467
- - features/support/imports/automobile_make_good.csv
468
- - features/support/imports/automobile_size_class_bad.csv
579
+ - features/support/imports/egrid_subregion_bad.csv
469
580
  - features/support/imports/egrid_subregion_good.csv
581
+ - features/support/imports/flight_segment_bad.csv
582
+ - features/support/imports/flight_segment_good.csv
583
+ - features/support/imports/fuel_year_bad.csv
584
+ - features/support/imports/fuel_year_good.csv
585
+ - features/support/imports/greenhouse_gas_bad.csv
586
+ - features/support/imports/greenhouse_gas_good.csv
587
+ - features/support/imports/rail_class_bad.csv
470
588
  - features/support/imports/rail_class_good.csv
471
- - features/support/env.rb
472
- - features/automobile_make.feature
473
- - features/bus_class.feature
474
- - features/carrier_mode.feature
475
- - features/automobile_size_class.feature
476
- - features/rail_class.feature
477
- - features/egrid_subregion.feature
478
- - features/carrier.feature
479
- - features/automobile_make_fleet_year.feature
480
- - spec/earth_spec.rb
589
+ - features/support/imports/server_type_alias_bad.csv
590
+ - features/support/imports/server_type_alias_good.csv
591
+ - features/support/imports/server_type_bad.csv
592
+ - features/support/imports/server_type_good.csv
593
+ - features/support/imports/shipment_mode_bad.csv
594
+ - features/support/imports/shipment_mode_good.csv
481
595
  - spec/earth/air/aircraft_spec.rb
596
+ - spec/earth_spec.rb
482
597
  - spec/spec_helper.rb
483
598
  - Gemfile
484
599
  - Gemfile.lock