earth 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. data/Rakefile +9 -21
  2. data/data/rail/ntd_companies.csv +1 -0
  3. data/data/rail/ntd_fuel_consumption.csv +1 -0
  4. data/data/rail/ntd_modes.csv +1 -0
  5. data/data/rail/ntd_service.csv +1 -0
  6. data/errata/flight_segment/bts_errata.csv +6 -0
  7. data/lib/earth.rb +1 -0
  8. data/lib/earth/air/aircraft.rb +3 -5
  9. data/lib/earth/air/airline.rb +2 -3
  10. data/lib/earth/air/airport.rb +4 -5
  11. data/lib/earth/air/bts_aircraft.rb +1 -1
  12. data/lib/earth/air/flight_distance_class.rb +0 -1
  13. data/lib/earth/air/flight_distance_class/data_miner.rb +0 -4
  14. data/lib/earth/air/flight_distance_class_seat_class.rb +0 -1
  15. data/lib/earth/air/flight_segment.rb +12 -13
  16. data/lib/earth/air/flight_segment/data_miner.rb +13 -0
  17. data/lib/earth/automobile/automobile_activity_year.rb +0 -1
  18. data/lib/earth/automobile/automobile_activity_year_type.rb +4 -4
  19. data/lib/earth/automobile/automobile_activity_year_type_fuel.rb +1 -2
  20. data/lib/earth/automobile/automobile_fuel.rb +1 -2
  21. data/lib/earth/automobile/automobile_make.rb +0 -1
  22. data/lib/earth/automobile/automobile_make/data_miner.rb +2 -0
  23. data/lib/earth/automobile/automobile_make_model.rb +1 -2
  24. data/lib/earth/automobile/automobile_make_model_year_variant.rb +0 -1
  25. data/lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb +2 -223
  26. data/lib/earth/automobile/automobile_make_model_year_variant/parser.rb +224 -0
  27. data/lib/earth/automobile/automobile_make_year_fleet.rb +0 -1
  28. data/lib/earth/automobile/automobile_model.rb +0 -1
  29. data/lib/earth/automobile/automobile_size_class.rb +0 -1
  30. data/lib/earth/automobile/automobile_type_fuel.rb +0 -1
  31. data/lib/earth/automobile/automobile_type_fuel_control.rb +0 -1
  32. data/lib/earth/automobile/automobile_type_fuel_year.rb +4 -4
  33. data/lib/earth/automobile/automobile_type_fuel_year_control.rb +7 -15
  34. data/lib/earth/automobile/automobile_year.rb +0 -1
  35. data/lib/earth/bus/bus_class.rb +0 -1
  36. data/lib/earth/bus/bus_fuel.rb +1 -72
  37. data/lib/earth/bus/bus_fuel_control.rb +0 -1
  38. data/lib/earth/bus/bus_fuel_control/data_miner.rb +0 -2
  39. data/lib/earth/bus/bus_fuel_year_control.rb +0 -1
  40. data/lib/earth/bus/bus_fuel_year_control/data_miner.rb +0 -2
  41. data/lib/earth/computation/computation_carrier.rb +1 -11
  42. data/lib/earth/computation/computation_carrier_instance_class.rb +4 -25
  43. data/lib/earth/computation/computation_carrier_region.rb +0 -1
  44. data/lib/earth/computation/computation_carrier_region/data_miner.rb +0 -3
  45. data/lib/earth/diet/diet_class.rb +0 -1
  46. data/lib/earth/diet/food_group.rb +1 -1
  47. data/lib/earth/electricity/electric_market.rb +2 -0
  48. data/lib/earth/electricity/electric_utility.rb +11 -4
  49. data/lib/earth/electricity/electric_utility/data_miner.rb +2 -8
  50. data/lib/earth/electricity/green_button_adoption.rb +2 -1
  51. data/lib/earth/fuel/fuel.rb +20 -81
  52. data/lib/earth/fuel/fuel_year.rb +0 -44
  53. data/lib/earth/fuel/greenhouse_gas.rb +0 -40
  54. data/lib/earth/hospitality/lodging_class.rb +0 -1
  55. data/lib/earth/industry/cbecs_energy_intensity.rb +25 -29
  56. data/lib/earth/industry/cbecs_energy_intensity/data_miner.rb +1 -1
  57. data/lib/earth/industry/industry.rb +1 -2
  58. data/lib/earth/industry/mecs_energy.rb +9 -10
  59. data/lib/earth/industry/mecs_ratio.rb +2 -1
  60. data/lib/earth/industry/merchant_category.rb +1 -0
  61. data/lib/earth/industry/naics_2002.rb +2 -0
  62. data/lib/earth/industry/naics_2002_naics_2007_concordance.rb +1 -0
  63. data/lib/earth/industry/naics_2002_sic_1987_concordance.rb +1 -0
  64. data/lib/earth/industry/naics_2007.rb +1 -0
  65. data/lib/earth/industry/sic_1987.rb +1 -0
  66. data/lib/earth/locality/census_division.rb +1 -3
  67. data/lib/earth/locality/climate_division.rb +0 -1
  68. data/lib/earth/locality/country.rb +1 -2
  69. data/lib/earth/locality/country/data_miner.rb +4 -0
  70. data/lib/earth/locality/egrid_country.rb +0 -1
  71. data/lib/earth/locality/egrid_region.rb +1 -3
  72. data/lib/earth/locality/egrid_subregion.rb +1 -3
  73. data/lib/earth/locality/electricity_mix.rb +2 -4
  74. data/lib/earth/locality/petroleum_administration_for_defense_district.rb +0 -1
  75. data/lib/earth/locality/state.rb +0 -1
  76. data/lib/earth/locality/zip_code.rb +0 -1
  77. data/lib/earth/model.rb +1 -1
  78. data/lib/earth/pet/breed.rb +0 -1
  79. data/lib/earth/pet/breed_gender.rb +0 -1
  80. data/lib/earth/pet/gender.rb +0 -1
  81. data/lib/earth/pet/species.rb +1 -3
  82. data/lib/earth/rail/country_rail_class.rb +0 -1
  83. data/lib/earth/rail/country_rail_traction.rb +0 -1
  84. data/lib/earth/rail/country_rail_traction_class.rb +0 -1
  85. data/lib/earth/rail/national_transit_database_company.rb +1 -3
  86. data/lib/earth/rail/national_transit_database_company/data_miner.rb +1 -1
  87. data/lib/earth/rail/national_transit_database_mode.rb +0 -1
  88. data/lib/earth/rail/national_transit_database_mode/data_miner.rb +1 -1
  89. data/lib/earth/rail/national_transit_database_record.rb +0 -1
  90. data/lib/earth/rail/national_transit_database_record/data_miner.rb +2 -2
  91. data/lib/earth/rail/rail_class.rb +0 -1
  92. data/lib/earth/rail/rail_class/data_miner.rb +5 -4
  93. data/lib/earth/rail/rail_company.rb +0 -1
  94. data/lib/earth/rail/rail_fuel.rb +0 -1
  95. data/lib/earth/rail/rail_traction.rb +0 -1
  96. data/lib/earth/rail/rail_traction/data_miner.rb +2 -8
  97. data/lib/earth/residence/air_conditioner_use.rb +0 -1
  98. data/lib/earth/residence/clothes_machine_use.rb +0 -1
  99. data/lib/earth/residence/dishwasher_use.rb +0 -1
  100. data/lib/earth/residence/residence_appliance.rb +0 -1
  101. data/lib/earth/residence/residence_class.rb +0 -1
  102. data/lib/earth/residence/residence_fuel_price.rb +1 -2
  103. data/lib/earth/residence/urbanity.rb +0 -1
  104. data/lib/earth/shipping/carrier.rb +1 -52
  105. data/lib/earth/shipping/carrier_mode.rb +0 -34
  106. data/lib/earth/shipping/shipment_mode.rb +0 -26
  107. data/lib/earth/tasks.rb +14 -4
  108. data/lib/earth/version.rb +1 -1
  109. data/spec/earth/air/aircraft_spec.rb +9 -1
  110. data/spec/earth/air/airline_spec.rb +2 -2
  111. data/spec/earth/air/airport_spec.rb +1 -2
  112. data/spec/earth/air/bts_aircraft_spec.rb +2 -2
  113. data/spec/earth/air/flight_distance_class_seat_class_spec.rb +22 -0
  114. data/spec/earth/air/flight_distance_class_spec.rb +26 -18
  115. data/spec/earth/air/flight_seat_class_spec.rb +12 -0
  116. data/spec/earth/air/flight_segment_spec.rb +38 -33
  117. data/spec/earth/automobile/automobile_activity_year_spec.rb +20 -14
  118. data/spec/earth/automobile/automobile_activity_year_type_fuel_spec.rb +14 -10
  119. data/spec/earth/automobile/automobile_activity_year_type_spec.rb +28 -20
  120. data/spec/earth/automobile/automobile_fuel_spec.rb +106 -52
  121. data/spec/earth/automobile/automobile_make_model_spec.rb +103 -62
  122. data/spec/earth/automobile/automobile_make_model_year_spec.rb +69 -46
  123. data/spec/earth/automobile/automobile_make_model_year_variant_spec.rb +108 -109
  124. data/spec/earth/automobile/automobile_make_spec.rb +8 -8
  125. data/spec/earth/automobile/automobile_make_year_fleet_spec.rb +10 -6
  126. data/spec/earth/automobile/automobile_make_year_spec.rb +10 -9
  127. data/spec/earth/automobile/automobile_model_spec.rb +3 -0
  128. data/spec/earth/automobile/automobile_size_class_spec.rb +12 -11
  129. data/spec/earth/automobile/automobile_type_fuel_control_spec.rb +9 -9
  130. data/spec/earth/automobile/automobile_type_fuel_spec.rb +23 -18
  131. data/spec/earth/automobile/automobile_type_fuel_year_control_spec.rb +37 -29
  132. data/spec/earth/automobile/automobile_type_fuel_year_spec.rb +35 -36
  133. data/spec/earth/automobile/automobile_year_spec.rb +4 -2
  134. data/spec/earth/bus/bus_class_spec.rb +10 -0
  135. data/spec/earth/bus/bus_fuel_control_spec.rb +3 -5
  136. data/spec/earth/bus/bus_fuel_spec.rb +16 -8
  137. data/spec/earth/bus/bus_fuel_year_control_spec.rb +7 -7
  138. data/spec/earth/computation/computation_carrrier_instance_class_spec.rb +17 -0
  139. data/spec/earth/computation/computation_carrrier_region_spec.rb +10 -0
  140. data/spec/earth/computation/computation_carrrier_spec.rb +17 -0
  141. data/spec/earth/diet/diet_class_spec.rb +14 -0
  142. data/spec/earth/diet/food_group_spec.rb +26 -0
  143. data/spec/earth/electricity/electric_market_spec.rb +4 -5
  144. data/spec/earth/electricity/electric_utility_spec.rb +30 -19
  145. data/spec/earth/electricity/green_button_adoption_spec.rb +29 -7
  146. data/spec/earth/fuel/fuel_spec.rb +88 -14
  147. data/spec/earth/fuel/fuel_year_spec.rb +21 -0
  148. data/spec/earth/fuel/greenhouse_gas_spec.rb +23 -0
  149. data/spec/earth/hospitality/commercial_building_energy_consumption_survey_response_spec.rb +13 -10
  150. data/spec/earth/hospitality/lodging_class_spec.rb +1 -1
  151. data/spec/earth/industry/cbecs_energy_intensity_spec.rb +72 -72
  152. data/spec/earth/industry/industry_spec.rb +16 -9
  153. data/spec/earth/industry/mecs_energy_spec.rb +76 -72
  154. data/spec/earth/industry/mecs_ratio_spec.rb +35 -31
  155. data/spec/earth/industry/merchant_category_spec.rb +7 -5
  156. data/spec/earth/industry/naics_2002_naics_2007_concordance_spec.rb +10 -19
  157. data/spec/earth/industry/naics_2002_sic_1987_concordance_spec.rb +9 -19
  158. data/spec/earth/industry/naics_2002_spec.rb +1 -11
  159. data/spec/earth/industry/naics_2007_spec.rb +2 -11
  160. data/spec/earth/industry/sic_1987_spec.rb +3 -14
  161. data/spec/earth/locality/census_division_spec.rb +25 -0
  162. data/spec/earth/locality/census_region_spec.rb +8 -0
  163. data/spec/earth/locality/climate_division_spec.rb +13 -0
  164. data/spec/earth/locality/country_spec.rb +24 -23
  165. data/spec/earth/locality/egrid_country_spec.rb +7 -6
  166. data/spec/earth/locality/egrid_region_spec.rb +6 -6
  167. data/spec/earth/locality/egrid_subregion_spec.rb +14 -14
  168. data/spec/earth/locality/electricity_mix_spec.rb +17 -17
  169. data/spec/earth/locality/padd_spec.rb +21 -0
  170. data/spec/earth/locality/state_spec.rb +8 -11
  171. data/spec/earth/locality/zip_code_spec.rb +29 -22
  172. data/spec/earth/pet/breed_gender_spec.rb +8 -0
  173. data/spec/earth/pet/breed_spec.rb +8 -0
  174. data/spec/earth/pet/gender_spec.rb +8 -0
  175. data/spec/earth/pet/species_spec.rb +11 -5
  176. data/spec/earth/rail/country_rail_class_spec.rb +16 -0
  177. data/spec/earth/rail/country_rail_traction_class_spec.rb +14 -0
  178. data/spec/earth/rail/country_rail_traction_spec.rb +14 -0
  179. data/spec/earth/rail/national_transit_database_company_spec.rb +103 -0
  180. data/spec/earth/rail/national_transit_database_mode_spec.rb +21 -0
  181. data/spec/earth/rail/national_transit_database_record_spec.rb +31 -0
  182. data/spec/earth/rail/rail_class_spec.rb +8 -0
  183. data/spec/earth/rail/rail_company_spec.rb +20 -0
  184. data/spec/earth/rail/rail_fuel_spec.rb +19 -0
  185. data/spec/earth/rail/rail_traction_spec.rb +8 -0
  186. data/spec/earth/residence/air_conditioner_use_spec.rb +17 -0
  187. data/spec/earth/residence/clothes_machine_use_spec.rb +11 -0
  188. data/spec/earth/residence/dishwasher_use_spec.rb +11 -0
  189. data/spec/earth/residence/residence_appliance_spec.rb +19 -0
  190. data/spec/earth/residence/residence_class_spec.rb +15 -0
  191. data/spec/earth/residence/residence_fuel_price_spec.rb +12 -0
  192. data/spec/earth/residence/residence_fuel_type_spec.rb +18 -0
  193. data/spec/earth/residence/residential_energy_consumption_survey_response_spec.rb +13 -0
  194. data/spec/earth/residence/urbanity_spec.rb +8 -0
  195. data/spec/earth/shipping/carrier_mode_spec.rb +18 -0
  196. data/spec/earth/shipping/carrier_spec.rb +27 -0
  197. data/spec/earth/shipping/shipment_mode_spec.rb +16 -0
  198. data/spec/earth_spec.rb +1 -1
  199. data/spec/factories/airline.rb +0 -1
  200. data/spec/factories/airport.rb +0 -1
  201. data/spec/factories/automobile_activity_year.rb +8 -0
  202. data/spec/factories/automobile_activity_year_type.rb +8 -0
  203. data/spec/factories/automobile_activity_year_type_fuel.rb +9 -0
  204. data/spec/factories/automobile_fuel.rb +15 -0
  205. data/spec/factories/automobile_make.rb +9 -0
  206. data/spec/factories/automobile_make_model.rb +10 -0
  207. data/spec/factories/automobile_make_model_year.rb +9 -0
  208. data/spec/factories/automobile_model.rb +9 -0
  209. data/spec/factories/automobile_type_fuel.rb +7 -0
  210. data/spec/factories/automobile_type_fuel_control.rb +16 -0
  211. data/spec/factories/automobile_type_fuel_year.rb +9 -0
  212. data/spec/factories/automobile_type_fuel_year_control.rb +11 -0
  213. data/spec/factories/bus_fuel.rb +7 -0
  214. data/spec/factories/bus_fuel_year_control.rb +9 -0
  215. data/spec/factories/cbecs_energy_intensity.rb +15 -0
  216. data/spec/factories/commercial_building_energy_consumption_survey_response.rb +10 -0
  217. data/spec/factories/electric_utility.rb +8 -0
  218. data/spec/factories/flight_distance_class.rb +8 -0
  219. data/spec/factories/flight_segment.rb +0 -1
  220. data/spec/factories/food_group.rb +8 -0
  221. data/spec/factories/fuel.rb +8 -0
  222. data/spec/factories/fuel_year.rb +8 -0
  223. data/spec/factories/green_button_adoption.rb +8 -0
  224. data/spec/factories/greenhouse_gas.rb +7 -0
  225. data/spec/factories/industry.rb +9 -0
  226. data/spec/factories/mecs_energy.rb +15 -0
  227. data/spec/factories/mecs_ratio.rb +15 -0
  228. data/spec/factories/national_transit_database_company.rb +8 -0
  229. data/spec/factories/national_transit_database_mode.rb +8 -0
  230. data/spec/factories/national_transit_database_record.rb +9 -0
  231. data/spec/factories/residence_appliance.rb +7 -0
  232. data/spec/factories/zip_code.rb +9 -0
  233. data/spec/spec_helper.rb +36 -19
  234. metadata +346 -66
  235. data/lib/earth/acronyms.rb +0 -12
  236. data/lib/earth/rail/rail_company_traction.rb +0 -24
  237. data/lib/earth/rail/rail_company_traction/data_miner.rb +0 -4
  238. data/lib/earth/rail/rail_company_traction_class.rb +0 -26
  239. data/lib/earth/rail/rail_company_traction_class/data_miner.rb +0 -4
@@ -0,0 +1,7 @@
1
+ require 'earth/fuel/greenhouse_gas'
2
+
3
+ FactoryGirl.define do
4
+ factory :ghg, :class => GreenhouseGas do
5
+ trait(:co2) { name 'Carbon dioxide'; abbreviation 'co2' }
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'earth/industry/industry'
2
+
3
+ FactoryGirl.define do
4
+ factory :industry, :class => Industry do
5
+ trait(:corn_farming) { naics_code 11115; description 'Corn farming' }
6
+ trait(:retail_trade) { naics_code 44; description 'Retail trade' }
7
+ trait(:wholesale_trade) { naics_code 42; description 'Wholesale trade' }
8
+ end
9
+ end
@@ -0,0 +1,15 @@
1
+ require 'earth/industry/mecs_energy'
2
+
3
+ FactoryGirl.define do
4
+ factory :mecs_energy, :class => MecsEnergy do
5
+ trait(:r11) { name '11'; naics_code 11; energy 100 }
6
+ trait(:r11c1) { name '11-1'; naics_code 11; census_region_number 1; energy 100 }
7
+ trait(:r111) { name '111'; naics_code 111; energy 100 }
8
+ trait(:r111c1) { name '111-1';naics_code 111; census_region_number 1; energy 100 }
9
+ trait(:r1111) { name '1111';naics_code 1111; energy 100 }
10
+ trait(:r1111c1) { name '1111-1';naics_code 1111; census_region_number 1; energy 100 }
11
+ trait(:r1111c2) { name '1111-2';naics_code 1111; census_region_number 2 }
12
+ trait(:r1112) { name '1112';naics_code 1112; energy 100 }
13
+ trait(:r1112c1) { name '1112-1';naics_code 1112; census_region_number 1; energy 100 }
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ require 'earth/industry/mecs_ratio'
2
+
3
+ FactoryGirl.define do
4
+ factory :mecs_ratio, :class => MecsRatio do
5
+ trait(:r11) { name '11'; naics_code 11; energy_per_dollar_of_shipments 0.1 }
6
+ trait(:r11c1) { name '11-1'; naics_code 11; census_region_number 1; energy_per_dollar_of_shipments 0.1 }
7
+ trait(:r111) { name '111'; naics_code 111; energy_per_dollar_of_shipments 0.1 }
8
+ trait(:r111c1) { name '111-1';naics_code 111; census_region_number 1; energy_per_dollar_of_shipments 0.1 }
9
+ trait(:r1111) { name '1111';naics_code 1111; energy_per_dollar_of_shipments 0.1 }
10
+ trait(:r1111c1) { name '1111-1';naics_code 1111; census_region_number 1; energy_per_dollar_of_shipments 0.1 }
11
+ trait(:r1111c2) { name '1111-2';naics_code 1111; census_region_number 2 }
12
+ trait(:r1112) { name '1112';naics_code 1112; energy_per_dollar_of_shipments 0.1 }
13
+ trait(:r1112c1) { name '1112-1';naics_code 1112; census_region_number 1; energy_per_dollar_of_shipments 0.1 }
14
+ end
15
+ end
@@ -0,0 +1,8 @@
1
+ require 'earth/rail/national_transit_database_company'
2
+
3
+ FactoryGirl.define do
4
+ factory :ntd_company, :class => NationalTransitDatabaseCompany do
5
+ trait(:rail_company) { id 'muni'; name 'SF muni ' }
6
+ trait(:bus_company) { id 'gg'; name 'Golden gate transit' }
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'earth/rail/national_transit_database_mode'
2
+
3
+ FactoryGirl.define do
4
+ factory :ntd_mode, :class => NationalTransitDatabaseMode do
5
+ trait(:rail) { code 'R'; name 'Rail'; rail_mode true }
6
+ trait(:bus) { code 'B'; name 'Bus'; rail_mode false }
7
+ end
8
+ end
@@ -0,0 +1,9 @@
1
+ require 'earth/rail/national_transit_database_record'
2
+
3
+ FactoryGirl.define do
4
+ factory :ntd_record, :class => NationalTransitDatabaseRecord do
5
+ trait(:sf_rail_record) { name 'SF muni rail'; company_id 'muni'; mode_code 'R'; vehicle_distance 10000; vehicle_time 100; passenger_distance 500000; passengers 5000; electricity 25000 }
6
+ trait(:ny_rail_record) { name 'Metro north rail'; company_id 'mtn'; mode_code 'R' }
7
+ trait(:bus_record) { name 'Golden gate transit bus'; company_id 'gg'; mode_code 'B' }
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ require 'earth/residence/residence_appliance'
2
+
3
+ FactoryGirl.define do
4
+ factory :residence_appliance, :class => ResidenceAppliance do
5
+ trait(:fridge) { name 'fridge'; annual_energy_from_electricity 1000 }
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'earth/locality/zip_code'
2
+
3
+ FactoryGirl.define do
4
+ factory :zip_code, :class => ZipCode do
5
+ trait(:zip1) { name 'test1'; latitude '50'; longitude '-75'; egrid_subregion_abbreviation 'CAMX' }
6
+ trait(:zip2) { name 'test2'; latitude '50'; longitude '-75.1' }
7
+ trait(:zip3) { name 'test3'; latitude '50'; longitude '-75.25' }
8
+ end
9
+ end
data/spec/spec_helper.rb CHANGED
@@ -12,35 +12,52 @@ require 'support/integration'
12
12
  include Integration
13
13
 
14
14
  require 'logger'
15
- logger = Logger.new 'log/test.log'
16
- ActiveRecord::Base.logger = logger
17
- DataMiner.logger = logger
15
+ ActiveRecord::Base.logger = DataMiner.logger = Logger.new('log/test.log')
18
16
 
17
+ require 'earth'
18
+ Earth.init :connect => true, :mine_original_sources => true
19
19
  DataMiner.unit_converter = :conversions
20
20
 
21
21
  RSpec.configure do |c|
22
- unless ENV['ALL'] == 'true'
23
- c.filter_run_excluding :sanity => true
24
- c.filter_run_excluding :data_miner => true
25
- end
26
- if ENV['SKIP_FLIGHT_SEGMENT'] == 'true'
27
- c.filter_run_excluding :flight_segment => true
28
- end
29
-
30
22
  c.before :all do
31
- require 'earth'
32
- Earth.init :mine_original_sources => true, :connect => true
23
+ # FULL_MINE=true clears, reloads, and sanity-checks data for the
24
+ # tested resource. This can be very slow because it clears and reloads
25
+ # data for any dependencies.
26
+ if ENV['FULL_MINE'] == 'true'
27
+ described_class.run_data_miner!
28
+
29
+ # FAST_MINE=true clears, reloads, and sanity-checks data for the
30
+ # tested resource without reloading data for any dependencies. Only
31
+ # works if the test db already has sane data for those dependencies.
32
+ elsif ENV['FAST_MINE'] == 'true'
33
+ Earth.resource_models.each do |resource_model|
34
+ resource_model.data_miner_script.steps.clear unless resource_model == described_class
35
+ end
36
+ described_class.run_data_miner!
37
+ else
38
+ Earth.resource_models.each do |resource_model|
39
+ resource_model.create_table! false
40
+ end
41
+ end
33
42
  end
34
- c.before :all, :sanity => true do
35
- described_class.run_data_miner!
36
- end
37
-
38
- c.before(:each) do
43
+
44
+ # SANITY=true sanity-checks data for the tested resource
45
+ c.filter_run_excluding(:sanity => true) unless (ENV['SANITY'] == 'true' || ENV['FAST_MINE'] == 'true' || ENV['FULL_MINE'] == 'true')
46
+
47
+ # SKIP_SLOW=true lets you skip slow tests e.g. FlightSegment
48
+ c.filter_run_excluding(:slow => true) if ENV['SKIP_SLOW'] == 'true'
49
+
50
+ # TEST_MINING=true runs spec/data_mining_spec.rb which data_mines all resources
51
+ c.filter_run_excluding :data_miner => true unless ENV['TEST_MINING'] == 'true'
52
+
53
+ # Remember and revert any data added or removed by tests
54
+ # (doesn't apply to data loaded with FULL_MINE=true or FAST_MINE=true)
55
+ c.before :each do
39
56
  ActiveRecord::Base.connection.increment_open_transactions
40
57
  ActiveRecord::Base.connection.transaction_joinable = false
41
58
  ActiveRecord::Base.connection.begin_db_transaction
42
59
  end
43
- c.after(:each) do
60
+ c.after :each do
44
61
  ActiveRecord::Base.connection.rollback_db_transaction
45
62
  ActiveRecord::Base.connection.decrement_open_transactions
46
63
  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: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-08-03 00:00:00.000000000Z
14
+ date: 2012-08-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activerecord
18
- requirement: &2166775580 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,15 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2166775580
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: activesupport
29
- requirement: &2166775160 !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
30
35
  none: false
31
36
  requirements:
32
37
  - - ! '>='
@@ -34,10 +39,15 @@ dependencies:
34
39
  version: '0'
35
40
  type: :runtime
36
41
  prerelease: false
37
- version_requirements: *2166775160
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
38
48
  - !ruby/object:Gem::Dependency
39
49
  name: cohort_analysis
40
- requirement: &2166774740 !ruby/object:Gem::Requirement
50
+ requirement: !ruby/object:Gem::Requirement
41
51
  none: false
42
52
  requirements:
43
53
  - - ! '>='
@@ -45,10 +55,15 @@ dependencies:
45
55
  version: '0'
46
56
  type: :runtime
47
57
  prerelease: false
48
- version_requirements: *2166774740
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
49
64
  - !ruby/object:Gem::Dependency
50
65
  name: conversions
51
- requirement: &2166774320 !ruby/object:Gem::Requirement
66
+ requirement: !ruby/object:Gem::Requirement
52
67
  none: false
53
68
  requirements:
54
69
  - - ! '>='
@@ -56,10 +71,15 @@ dependencies:
56
71
  version: '0'
57
72
  type: :runtime
58
73
  prerelease: false
59
- version_requirements: *2166774320
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
60
80
  - !ruby/object:Gem::Dependency
61
81
  name: data_miner
62
- requirement: &2166773820 !ruby/object:Gem::Requirement
82
+ requirement: !ruby/object:Gem::Requirement
63
83
  none: false
64
84
  requirements:
65
85
  - - ! '>='
@@ -67,10 +87,15 @@ dependencies:
67
87
  version: 2.4.0
68
88
  type: :runtime
69
89
  prerelease: false
70
- version_requirements: *2166773820
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: 2.4.0
71
96
  - !ruby/object:Gem::Dependency
72
97
  name: falls_back_on
73
- requirement: &2166773400 !ruby/object:Gem::Requirement
98
+ requirement: !ruby/object:Gem::Requirement
74
99
  none: false
75
100
  requirements:
76
101
  - - ! '>='
@@ -78,10 +103,15 @@ dependencies:
78
103
  version: '0'
79
104
  type: :runtime
80
105
  prerelease: false
81
- version_requirements: *2166773400
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
82
112
  - !ruby/object:Gem::Dependency
83
113
  name: fixed_width-multibyte
84
- requirement: &2166772940 !ruby/object:Gem::Requirement
114
+ requirement: !ruby/object:Gem::Requirement
85
115
  none: false
86
116
  requirements:
87
117
  - - ! '>='
@@ -89,10 +119,15 @@ dependencies:
89
119
  version: '0'
90
120
  type: :runtime
91
121
  prerelease: false
92
- version_requirements: *2166772940
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ! '>='
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
93
128
  - !ruby/object:Gem::Dependency
94
129
  name: fuzzy_match
95
- requirement: &2166772440 !ruby/object:Gem::Requirement
130
+ requirement: !ruby/object:Gem::Requirement
96
131
  none: false
97
132
  requirements:
98
133
  - - ! '>='
@@ -100,10 +135,15 @@ dependencies:
100
135
  version: 1.3.3
101
136
  type: :runtime
102
137
  prerelease: false
103
- version_requirements: *2166772440
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: 1.3.3
104
144
  - !ruby/object:Gem::Dependency
105
145
  name: geokit
106
- requirement: &2166772020 !ruby/object:Gem::Requirement
146
+ requirement: !ruby/object:Gem::Requirement
107
147
  none: false
108
148
  requirements:
109
149
  - - ! '>='
@@ -111,10 +151,15 @@ dependencies:
111
151
  version: '0'
112
152
  type: :runtime
113
153
  prerelease: false
114
- version_requirements: *2166772020
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
115
160
  - !ruby/object:Gem::Dependency
116
161
  name: remote_table
117
- requirement: &2166771480 !ruby/object:Gem::Requirement
162
+ requirement: !ruby/object:Gem::Requirement
118
163
  none: false
119
164
  requirements:
120
165
  - - ! '>='
@@ -122,10 +167,15 @@ dependencies:
122
167
  version: 2.0.2
123
168
  type: :runtime
124
169
  prerelease: false
125
- version_requirements: *2166771480
170
+ version_requirements: !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ! '>='
174
+ - !ruby/object:Gem::Version
175
+ version: 2.0.2
126
176
  - !ruby/object:Gem::Dependency
127
177
  name: table_warnings
128
- requirement: &2166770980 !ruby/object:Gem::Requirement
178
+ requirement: !ruby/object:Gem::Requirement
129
179
  none: false
130
180
  requirements:
131
181
  - - ! '>='
@@ -133,10 +183,15 @@ dependencies:
133
183
  version: 1.0.1
134
184
  type: :runtime
135
185
  prerelease: false
136
- version_requirements: *2166770980
186
+ version_requirements: !ruby/object:Gem::Requirement
187
+ none: false
188
+ requirements:
189
+ - - ! '>='
190
+ - !ruby/object:Gem::Version
191
+ version: 1.0.1
137
192
  - !ruby/object:Gem::Dependency
138
193
  name: to_regexp
139
- requirement: &2166770580 !ruby/object:Gem::Requirement
194
+ requirement: !ruby/object:Gem::Requirement
140
195
  none: false
141
196
  requirements:
142
197
  - - ! '>='
@@ -144,10 +199,15 @@ dependencies:
144
199
  version: '0'
145
200
  type: :runtime
146
201
  prerelease: false
147
- version_requirements: *2166770580
202
+ version_requirements: !ruby/object:Gem::Requirement
203
+ none: false
204
+ requirements:
205
+ - - ! '>='
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
148
208
  - !ruby/object:Gem::Dependency
149
209
  name: weighted_average
150
- requirement: &2166770040 !ruby/object:Gem::Requirement
210
+ requirement: !ruby/object:Gem::Requirement
151
211
  none: false
152
212
  requirements:
153
213
  - - ! '>='
@@ -155,10 +215,15 @@ dependencies:
155
215
  version: 1.0.2
156
216
  type: :runtime
157
217
  prerelease: false
158
- version_requirements: *2166770040
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ none: false
220
+ requirements:
221
+ - - ! '>='
222
+ - !ruby/object:Gem::Version
223
+ version: 1.0.2
159
224
  - !ruby/object:Gem::Dependency
160
225
  name: timeframe
161
- requirement: &2166769620 !ruby/object:Gem::Requirement
226
+ requirement: !ruby/object:Gem::Requirement
162
227
  none: false
163
228
  requirements:
164
229
  - - ! '>='
@@ -166,10 +231,15 @@ dependencies:
166
231
  version: '0'
167
232
  type: :runtime
168
233
  prerelease: false
169
- version_requirements: *2166769620
234
+ version_requirements: !ruby/object:Gem::Requirement
235
+ none: false
236
+ requirements:
237
+ - - ! '>='
238
+ - !ruby/object:Gem::Version
239
+ version: '0'
170
240
  - !ruby/object:Gem::Dependency
171
241
  name: bueller
172
- requirement: &2166769160 !ruby/object:Gem::Requirement
242
+ requirement: !ruby/object:Gem::Requirement
173
243
  none: false
174
244
  requirements:
175
245
  - - ! '>='
@@ -177,10 +247,15 @@ dependencies:
177
247
  version: '0'
178
248
  type: :development
179
249
  prerelease: false
180
- version_requirements: *2166769160
250
+ version_requirements: !ruby/object:Gem::Requirement
251
+ none: false
252
+ requirements:
253
+ - - ! '>='
254
+ - !ruby/object:Gem::Version
255
+ version: '0'
181
256
  - !ruby/object:Gem::Dependency
182
257
  name: bundler
183
- requirement: &2166768740 !ruby/object:Gem::Requirement
258
+ requirement: !ruby/object:Gem::Requirement
184
259
  none: false
185
260
  requirements:
186
261
  - - ! '>='
@@ -188,10 +263,15 @@ dependencies:
188
263
  version: '0'
189
264
  type: :development
190
265
  prerelease: false
191
- version_requirements: *2166768740
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ none: false
268
+ requirements:
269
+ - - ! '>='
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
192
272
  - !ruby/object:Gem::Dependency
193
273
  name: charisma
194
- requirement: &2166768300 !ruby/object:Gem::Requirement
274
+ requirement: !ruby/object:Gem::Requirement
195
275
  none: false
196
276
  requirements:
197
277
  - - ! '>='
@@ -199,10 +279,15 @@ dependencies:
199
279
  version: '0'
200
280
  type: :development
201
281
  prerelease: false
202
- version_requirements: *2166768300
282
+ version_requirements: !ruby/object:Gem::Requirement
283
+ none: false
284
+ requirements:
285
+ - - ! '>='
286
+ - !ruby/object:Gem::Version
287
+ version: '0'
203
288
  - !ruby/object:Gem::Dependency
204
289
  name: cucumber
205
- requirement: &2166767880 !ruby/object:Gem::Requirement
290
+ requirement: !ruby/object:Gem::Requirement
206
291
  none: false
207
292
  requirements:
208
293
  - - ! '>='
@@ -210,10 +295,15 @@ dependencies:
210
295
  version: '0'
211
296
  type: :development
212
297
  prerelease: false
213
- version_requirements: *2166767880
298
+ version_requirements: !ruby/object:Gem::Requirement
299
+ none: false
300
+ requirements:
301
+ - - ! '>='
302
+ - !ruby/object:Gem::Version
303
+ version: '0'
214
304
  - !ruby/object:Gem::Dependency
215
305
  name: factory_girl
216
- requirement: &2166767460 !ruby/object:Gem::Requirement
306
+ requirement: !ruby/object:Gem::Requirement
217
307
  none: false
218
308
  requirements:
219
309
  - - ! '>='
@@ -221,10 +311,15 @@ dependencies:
221
311
  version: '0'
222
312
  type: :development
223
313
  prerelease: false
224
- version_requirements: *2166767460
314
+ version_requirements: !ruby/object:Gem::Requirement
315
+ none: false
316
+ requirements:
317
+ - - ! '>='
318
+ - !ruby/object:Gem::Version
319
+ version: '0'
225
320
  - !ruby/object:Gem::Dependency
226
321
  name: mysql2
227
- requirement: &2166767040 !ruby/object:Gem::Requirement
322
+ requirement: !ruby/object:Gem::Requirement
228
323
  none: false
229
324
  requirements:
230
325
  - - ! '>='
@@ -232,10 +327,15 @@ dependencies:
232
327
  version: '0'
233
328
  type: :development
234
329
  prerelease: false
235
- version_requirements: *2166767040
330
+ version_requirements: !ruby/object:Gem::Requirement
331
+ none: false
332
+ requirements:
333
+ - - ! '>='
334
+ - !ruby/object:Gem::Version
335
+ version: '0'
236
336
  - !ruby/object:Gem::Dependency
237
337
  name: pg
238
- requirement: &2166766620 !ruby/object:Gem::Requirement
338
+ requirement: !ruby/object:Gem::Requirement
239
339
  none: false
240
340
  requirements:
241
341
  - - ! '>='
@@ -243,10 +343,15 @@ dependencies:
243
343
  version: '0'
244
344
  type: :development
245
345
  prerelease: false
246
- version_requirements: *2166766620
346
+ version_requirements: !ruby/object:Gem::Requirement
347
+ none: false
348
+ requirements:
349
+ - - ! '>='
350
+ - !ruby/object:Gem::Version
351
+ version: '0'
247
352
  - !ruby/object:Gem::Dependency
248
353
  name: rake
249
- requirement: &2166766200 !ruby/object:Gem::Requirement
354
+ requirement: !ruby/object:Gem::Requirement
250
355
  none: false
251
356
  requirements:
252
357
  - - ! '>='
@@ -254,10 +359,15 @@ dependencies:
254
359
  version: '0'
255
360
  type: :development
256
361
  prerelease: false
257
- version_requirements: *2166766200
362
+ version_requirements: !ruby/object:Gem::Requirement
363
+ none: false
364
+ requirements:
365
+ - - ! '>='
366
+ - !ruby/object:Gem::Version
367
+ version: '0'
258
368
  - !ruby/object:Gem::Dependency
259
369
  name: rdoc
260
- requirement: &2166765780 !ruby/object:Gem::Requirement
370
+ requirement: !ruby/object:Gem::Requirement
261
371
  none: false
262
372
  requirements:
263
373
  - - ! '>='
@@ -265,10 +375,15 @@ dependencies:
265
375
  version: '0'
266
376
  type: :development
267
377
  prerelease: false
268
- version_requirements: *2166765780
378
+ version_requirements: !ruby/object:Gem::Requirement
379
+ none: false
380
+ requirements:
381
+ - - ! '>='
382
+ - !ruby/object:Gem::Version
383
+ version: '0'
269
384
  - !ruby/object:Gem::Dependency
270
385
  name: rspec
271
- requirement: &2166765360 !ruby/object:Gem::Requirement
386
+ requirement: !ruby/object:Gem::Requirement
272
387
  none: false
273
388
  requirements:
274
389
  - - ! '>='
@@ -276,10 +391,15 @@ dependencies:
276
391
  version: '0'
277
392
  type: :development
278
393
  prerelease: false
279
- version_requirements: *2166765360
394
+ version_requirements: !ruby/object:Gem::Requirement
395
+ none: false
396
+ requirements:
397
+ - - ! '>='
398
+ - !ruby/object:Gem::Version
399
+ version: '0'
280
400
  - !ruby/object:Gem::Dependency
281
401
  name: sandbox
282
- requirement: &2166764940 !ruby/object:Gem::Requirement
402
+ requirement: !ruby/object:Gem::Requirement
283
403
  none: false
284
404
  requirements:
285
405
  - - ! '>='
@@ -287,10 +407,15 @@ dependencies:
287
407
  version: '0'
288
408
  type: :development
289
409
  prerelease: false
290
- version_requirements: *2166764940
410
+ version_requirements: !ruby/object:Gem::Requirement
411
+ none: false
412
+ requirements:
413
+ - - ! '>='
414
+ - !ruby/object:Gem::Version
415
+ version: '0'
291
416
  - !ruby/object:Gem::Dependency
292
417
  name: sqlite3
293
- requirement: &2166764520 !ruby/object:Gem::Requirement
418
+ requirement: !ruby/object:Gem::Requirement
294
419
  none: false
295
420
  requirements:
296
421
  - - ! '>='
@@ -298,10 +423,15 @@ dependencies:
298
423
  version: '0'
299
424
  type: :development
300
425
  prerelease: false
301
- version_requirements: *2166764520
426
+ version_requirements: !ruby/object:Gem::Requirement
427
+ none: false
428
+ requirements:
429
+ - - ! '>='
430
+ - !ruby/object:Gem::Version
431
+ version: '0'
302
432
  - !ruby/object:Gem::Dependency
303
433
  name: thor
304
- requirement: &2166764100 !ruby/object:Gem::Requirement
434
+ requirement: !ruby/object:Gem::Requirement
305
435
  none: false
306
436
  requirements:
307
437
  - - ! '>='
@@ -309,10 +439,15 @@ dependencies:
309
439
  version: '0'
310
440
  type: :development
311
441
  prerelease: false
312
- version_requirements: *2166764100
442
+ version_requirements: !ruby/object:Gem::Requirement
443
+ none: false
444
+ requirements:
445
+ - - ! '>='
446
+ - !ruby/object:Gem::Version
447
+ version: '0'
313
448
  - !ruby/object:Gem::Dependency
314
449
  name: pry
315
- requirement: &2166763680 !ruby/object:Gem::Requirement
450
+ requirement: !ruby/object:Gem::Requirement
316
451
  none: false
317
452
  requirements:
318
453
  - - ! '>='
@@ -320,7 +455,12 @@ dependencies:
320
455
  version: '0'
321
456
  type: :development
322
457
  prerelease: false
323
- version_requirements: *2166763680
458
+ version_requirements: !ruby/object:Gem::Requirement
459
+ none: false
460
+ requirements:
461
+ - - ! '>='
462
+ - !ruby/object:Gem::Version
463
+ version: '0'
324
464
  description: An earth-simulation environment with ActiveRecord models and data
325
465
  email:
326
466
  - seamus@abshere.net
@@ -365,6 +505,10 @@ files:
365
505
  - data/locality/us_auto_data.csv
366
506
  - data/locality/wri_hdd_cdd_data.csv
367
507
  - data/locality/zip_climate_divisions.csv
508
+ - data/rail/ntd_companies.csv
509
+ - data/rail/ntd_fuel_consumption.csv
510
+ - data/rail/ntd_modes.csv
511
+ - data/rail/ntd_service.csv
368
512
  - earth.gemspec
369
513
  - errata/aircraft/faa_errata.csv
370
514
  - errata/airline/bts_carrier_codes_errata.csv
@@ -378,7 +522,6 @@ files:
378
522
  - errata/flight_segment/bts_errata.csv
379
523
  - errata/readme
380
524
  - lib/earth.rb
381
- - lib/earth/acronyms.rb
382
525
  - lib/earth/air.rb
383
526
  - lib/earth/air/aircraft.rb
384
527
  - lib/earth/air/aircraft/data_miner.rb
@@ -414,6 +557,7 @@ files:
414
557
  - lib/earth/automobile/automobile_make_model_year/data_miner.rb
415
558
  - lib/earth/automobile/automobile_make_model_year_variant.rb
416
559
  - lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb
560
+ - lib/earth/automobile/automobile_make_model_year_variant/parser.rb
417
561
  - lib/earth/automobile/automobile_make_year.rb
418
562
  - lib/earth/automobile/automobile_make_year/data_miner.rb
419
563
  - lib/earth/automobile/automobile_make_year_fleet.rb
@@ -559,10 +703,6 @@ files:
559
703
  - lib/earth/rail/rail_class/data_miner.rb
560
704
  - lib/earth/rail/rail_company.rb
561
705
  - lib/earth/rail/rail_company/data_miner.rb
562
- - lib/earth/rail/rail_company_traction.rb
563
- - lib/earth/rail/rail_company_traction/data_miner.rb
564
- - lib/earth/rail/rail_company_traction_class.rb
565
- - lib/earth/rail/rail_company_traction_class/data_miner.rb
566
706
  - lib/earth/rail/rail_fuel.rb
567
707
  - lib/earth/rail/rail_fuel/data_miner.rb
568
708
  - lib/earth/rail/rail_traction.rb
@@ -602,7 +742,9 @@ files:
602
742
  - spec/earth/air/airline_spec.rb
603
743
  - spec/earth/air/airport_spec.rb
604
744
  - spec/earth/air/bts_aircraft_spec.rb
745
+ - spec/earth/air/flight_distance_class_seat_class_spec.rb
605
746
  - spec/earth/air/flight_distance_class_spec.rb
747
+ - spec/earth/air/flight_seat_class_spec.rb
606
748
  - spec/earth/air/flight_segment_spec.rb
607
749
  - spec/earth/automobile/automobile_activity_year_spec.rb
608
750
  - spec/earth/automobile/automobile_activity_year_type_fuel_spec.rb
@@ -621,13 +763,21 @@ files:
621
763
  - spec/earth/automobile/automobile_type_fuel_year_control_spec.rb
622
764
  - spec/earth/automobile/automobile_type_fuel_year_spec.rb
623
765
  - spec/earth/automobile/automobile_year_spec.rb
766
+ - spec/earth/bus/bus_class_spec.rb
624
767
  - spec/earth/bus/bus_fuel_control_spec.rb
625
768
  - spec/earth/bus/bus_fuel_spec.rb
626
769
  - spec/earth/bus/bus_fuel_year_control_spec.rb
770
+ - spec/earth/computation/computation_carrrier_instance_class_spec.rb
771
+ - spec/earth/computation/computation_carrrier_region_spec.rb
772
+ - spec/earth/computation/computation_carrrier_spec.rb
773
+ - spec/earth/diet/diet_class_spec.rb
774
+ - spec/earth/diet/food_group_spec.rb
627
775
  - spec/earth/electricity/electric_market_spec.rb
628
776
  - spec/earth/electricity/electric_utility_spec.rb
629
777
  - spec/earth/electricity/green_button_adoption_spec.rb
630
778
  - spec/earth/fuel/fuel_spec.rb
779
+ - spec/earth/fuel/fuel_year_spec.rb
780
+ - spec/earth/fuel/greenhouse_gas_spec.rb
631
781
  - spec/earth/hospitality/commercial_building_energy_consumption_survey_response_spec.rb
632
782
  - spec/earth/hospitality/lodging_class_spec.rb
633
783
  - spec/earth/industry/cbecs_energy_intensity_spec.rb
@@ -640,19 +790,79 @@ files:
640
790
  - spec/earth/industry/naics_2002_spec.rb
641
791
  - spec/earth/industry/naics_2007_spec.rb
642
792
  - spec/earth/industry/sic_1987_spec.rb
793
+ - spec/earth/locality/census_division_spec.rb
794
+ - spec/earth/locality/census_region_spec.rb
795
+ - spec/earth/locality/climate_division_spec.rb
643
796
  - spec/earth/locality/country_spec.rb
644
797
  - spec/earth/locality/egrid_country_spec.rb
645
798
  - spec/earth/locality/egrid_region_spec.rb
646
799
  - spec/earth/locality/egrid_subregion_spec.rb
647
800
  - spec/earth/locality/electricity_mix_spec.rb
801
+ - spec/earth/locality/padd_spec.rb
648
802
  - spec/earth/locality/state_spec.rb
649
803
  - spec/earth/locality/zip_code_spec.rb
650
804
  - spec/earth/model_spec.rb
805
+ - spec/earth/pet/breed_gender_spec.rb
806
+ - spec/earth/pet/breed_spec.rb
807
+ - spec/earth/pet/gender_spec.rb
651
808
  - spec/earth/pet/species_spec.rb
809
+ - spec/earth/rail/country_rail_class_spec.rb
810
+ - spec/earth/rail/country_rail_traction_class_spec.rb
811
+ - spec/earth/rail/country_rail_traction_spec.rb
812
+ - spec/earth/rail/national_transit_database_company_spec.rb
813
+ - spec/earth/rail/national_transit_database_mode_spec.rb
814
+ - spec/earth/rail/national_transit_database_record_spec.rb
815
+ - spec/earth/rail/rail_class_spec.rb
816
+ - spec/earth/rail/rail_company_spec.rb
817
+ - spec/earth/rail/rail_fuel_spec.rb
818
+ - spec/earth/rail/rail_traction_spec.rb
819
+ - spec/earth/residence/air_conditioner_use_spec.rb
820
+ - spec/earth/residence/clothes_machine_use_spec.rb
821
+ - spec/earth/residence/dishwasher_use_spec.rb
822
+ - spec/earth/residence/residence_appliance_spec.rb
823
+ - spec/earth/residence/residence_class_spec.rb
824
+ - spec/earth/residence/residence_fuel_price_spec.rb
825
+ - spec/earth/residence/residence_fuel_type_spec.rb
826
+ - spec/earth/residence/residential_energy_consumption_survey_response_spec.rb
827
+ - spec/earth/residence/urbanity_spec.rb
828
+ - spec/earth/shipping/carrier_mode_spec.rb
829
+ - spec/earth/shipping/carrier_spec.rb
830
+ - spec/earth/shipping/shipment_mode_spec.rb
652
831
  - spec/earth_spec.rb
653
832
  - spec/factories/airline.rb
654
833
  - spec/factories/airport.rb
834
+ - spec/factories/automobile_activity_year.rb
835
+ - spec/factories/automobile_activity_year_type.rb
836
+ - spec/factories/automobile_activity_year_type_fuel.rb
837
+ - spec/factories/automobile_fuel.rb
838
+ - spec/factories/automobile_make.rb
839
+ - spec/factories/automobile_make_model.rb
840
+ - spec/factories/automobile_make_model_year.rb
841
+ - spec/factories/automobile_model.rb
842
+ - spec/factories/automobile_type_fuel.rb
843
+ - spec/factories/automobile_type_fuel_control.rb
844
+ - spec/factories/automobile_type_fuel_year.rb
845
+ - spec/factories/automobile_type_fuel_year_control.rb
846
+ - spec/factories/bus_fuel.rb
847
+ - spec/factories/bus_fuel_year_control.rb
848
+ - spec/factories/cbecs_energy_intensity.rb
849
+ - spec/factories/commercial_building_energy_consumption_survey_response.rb
850
+ - spec/factories/electric_utility.rb
851
+ - spec/factories/flight_distance_class.rb
655
852
  - spec/factories/flight_segment.rb
853
+ - spec/factories/food_group.rb
854
+ - spec/factories/fuel.rb
855
+ - spec/factories/fuel_year.rb
856
+ - spec/factories/green_button_adoption.rb
857
+ - spec/factories/greenhouse_gas.rb
858
+ - spec/factories/industry.rb
859
+ - spec/factories/mecs_energy.rb
860
+ - spec/factories/mecs_ratio.rb
861
+ - spec/factories/national_transit_database_company.rb
862
+ - spec/factories/national_transit_database_mode.rb
863
+ - spec/factories/national_transit_database_record.rb
864
+ - spec/factories/residence_appliance.rb
865
+ - spec/factories/zip_code.rb
656
866
  - spec/spec_helper.rb
657
867
  - spec/support/integration.rb
658
868
  - vendor/geokit-rails/.gitignore
@@ -713,7 +923,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
713
923
  version: '0'
714
924
  segments:
715
925
  - 0
716
- hash: -1250548202269852024
926
+ hash: -4304792872288072718
717
927
  required_rubygems_version: !ruby/object:Gem::Requirement
718
928
  none: false
719
929
  requirements:
@@ -722,10 +932,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
722
932
  version: '0'
723
933
  segments:
724
934
  - 0
725
- hash: -1250548202269852024
935
+ hash: -4304792872288072718
726
936
  requirements: []
727
937
  rubyforge_project:
728
- rubygems_version: 1.8.11
938
+ rubygems_version: 1.8.24
729
939
  signing_key:
730
940
  specification_version: 3
731
941
  summary: Land, sky, and sea
@@ -735,7 +945,9 @@ test_files:
735
945
  - spec/earth/air/airline_spec.rb
736
946
  - spec/earth/air/airport_spec.rb
737
947
  - spec/earth/air/bts_aircraft_spec.rb
948
+ - spec/earth/air/flight_distance_class_seat_class_spec.rb
738
949
  - spec/earth/air/flight_distance_class_spec.rb
950
+ - spec/earth/air/flight_seat_class_spec.rb
739
951
  - spec/earth/air/flight_segment_spec.rb
740
952
  - spec/earth/automobile/automobile_activity_year_spec.rb
741
953
  - spec/earth/automobile/automobile_activity_year_type_fuel_spec.rb
@@ -754,13 +966,21 @@ test_files:
754
966
  - spec/earth/automobile/automobile_type_fuel_year_control_spec.rb
755
967
  - spec/earth/automobile/automobile_type_fuel_year_spec.rb
756
968
  - spec/earth/automobile/automobile_year_spec.rb
969
+ - spec/earth/bus/bus_class_spec.rb
757
970
  - spec/earth/bus/bus_fuel_control_spec.rb
758
971
  - spec/earth/bus/bus_fuel_spec.rb
759
972
  - spec/earth/bus/bus_fuel_year_control_spec.rb
973
+ - spec/earth/computation/computation_carrrier_instance_class_spec.rb
974
+ - spec/earth/computation/computation_carrrier_region_spec.rb
975
+ - spec/earth/computation/computation_carrrier_spec.rb
976
+ - spec/earth/diet/diet_class_spec.rb
977
+ - spec/earth/diet/food_group_spec.rb
760
978
  - spec/earth/electricity/electric_market_spec.rb
761
979
  - spec/earth/electricity/electric_utility_spec.rb
762
980
  - spec/earth/electricity/green_button_adoption_spec.rb
763
981
  - spec/earth/fuel/fuel_spec.rb
982
+ - spec/earth/fuel/fuel_year_spec.rb
983
+ - spec/earth/fuel/greenhouse_gas_spec.rb
764
984
  - spec/earth/hospitality/commercial_building_energy_consumption_survey_response_spec.rb
765
985
  - spec/earth/hospitality/lodging_class_spec.rb
766
986
  - spec/earth/industry/cbecs_energy_intensity_spec.rb
@@ -773,18 +993,78 @@ test_files:
773
993
  - spec/earth/industry/naics_2002_spec.rb
774
994
  - spec/earth/industry/naics_2007_spec.rb
775
995
  - spec/earth/industry/sic_1987_spec.rb
996
+ - spec/earth/locality/census_division_spec.rb
997
+ - spec/earth/locality/census_region_spec.rb
998
+ - spec/earth/locality/climate_division_spec.rb
776
999
  - spec/earth/locality/country_spec.rb
777
1000
  - spec/earth/locality/egrid_country_spec.rb
778
1001
  - spec/earth/locality/egrid_region_spec.rb
779
1002
  - spec/earth/locality/egrid_subregion_spec.rb
780
1003
  - spec/earth/locality/electricity_mix_spec.rb
1004
+ - spec/earth/locality/padd_spec.rb
781
1005
  - spec/earth/locality/state_spec.rb
782
1006
  - spec/earth/locality/zip_code_spec.rb
783
1007
  - spec/earth/model_spec.rb
1008
+ - spec/earth/pet/breed_gender_spec.rb
1009
+ - spec/earth/pet/breed_spec.rb
1010
+ - spec/earth/pet/gender_spec.rb
784
1011
  - spec/earth/pet/species_spec.rb
1012
+ - spec/earth/rail/country_rail_class_spec.rb
1013
+ - spec/earth/rail/country_rail_traction_class_spec.rb
1014
+ - spec/earth/rail/country_rail_traction_spec.rb
1015
+ - spec/earth/rail/national_transit_database_company_spec.rb
1016
+ - spec/earth/rail/national_transit_database_mode_spec.rb
1017
+ - spec/earth/rail/national_transit_database_record_spec.rb
1018
+ - spec/earth/rail/rail_class_spec.rb
1019
+ - spec/earth/rail/rail_company_spec.rb
1020
+ - spec/earth/rail/rail_fuel_spec.rb
1021
+ - spec/earth/rail/rail_traction_spec.rb
1022
+ - spec/earth/residence/air_conditioner_use_spec.rb
1023
+ - spec/earth/residence/clothes_machine_use_spec.rb
1024
+ - spec/earth/residence/dishwasher_use_spec.rb
1025
+ - spec/earth/residence/residence_appliance_spec.rb
1026
+ - spec/earth/residence/residence_class_spec.rb
1027
+ - spec/earth/residence/residence_fuel_price_spec.rb
1028
+ - spec/earth/residence/residence_fuel_type_spec.rb
1029
+ - spec/earth/residence/residential_energy_consumption_survey_response_spec.rb
1030
+ - spec/earth/residence/urbanity_spec.rb
1031
+ - spec/earth/shipping/carrier_mode_spec.rb
1032
+ - spec/earth/shipping/carrier_spec.rb
1033
+ - spec/earth/shipping/shipment_mode_spec.rb
785
1034
  - spec/earth_spec.rb
786
1035
  - spec/factories/airline.rb
787
1036
  - spec/factories/airport.rb
1037
+ - spec/factories/automobile_activity_year.rb
1038
+ - spec/factories/automobile_activity_year_type.rb
1039
+ - spec/factories/automobile_activity_year_type_fuel.rb
1040
+ - spec/factories/automobile_fuel.rb
1041
+ - spec/factories/automobile_make.rb
1042
+ - spec/factories/automobile_make_model.rb
1043
+ - spec/factories/automobile_make_model_year.rb
1044
+ - spec/factories/automobile_model.rb
1045
+ - spec/factories/automobile_type_fuel.rb
1046
+ - spec/factories/automobile_type_fuel_control.rb
1047
+ - spec/factories/automobile_type_fuel_year.rb
1048
+ - spec/factories/automobile_type_fuel_year_control.rb
1049
+ - spec/factories/bus_fuel.rb
1050
+ - spec/factories/bus_fuel_year_control.rb
1051
+ - spec/factories/cbecs_energy_intensity.rb
1052
+ - spec/factories/commercial_building_energy_consumption_survey_response.rb
1053
+ - spec/factories/electric_utility.rb
1054
+ - spec/factories/flight_distance_class.rb
788
1055
  - spec/factories/flight_segment.rb
1056
+ - spec/factories/food_group.rb
1057
+ - spec/factories/fuel.rb
1058
+ - spec/factories/fuel_year.rb
1059
+ - spec/factories/green_button_adoption.rb
1060
+ - spec/factories/greenhouse_gas.rb
1061
+ - spec/factories/industry.rb
1062
+ - spec/factories/mecs_energy.rb
1063
+ - spec/factories/mecs_ratio.rb
1064
+ - spec/factories/national_transit_database_company.rb
1065
+ - spec/factories/national_transit_database_mode.rb
1066
+ - spec/factories/national_transit_database_record.rb
1067
+ - spec/factories/residence_appliance.rb
1068
+ - spec/factories/zip_code.rb
789
1069
  - spec/spec_helper.rb
790
1070
  - spec/support/integration.rb