earth 0.12.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) hide show
  1. data/.gitignore +4 -1
  2. data/Gemfile +0 -5
  3. data/README.markdown +32 -19
  4. data/Rakefile +4 -0
  5. data/bin/earth_tester.rb +66 -54
  6. data/earth.gemspec +6 -3
  7. data/lib/earth.rb +67 -114
  8. data/lib/earth/air.rb +1 -1
  9. data/lib/earth/air/aircraft.rb +37 -21
  10. data/lib/earth/air/aircraft/data_miner.rb +0 -4
  11. data/lib/earth/air/airline.rb +19 -5
  12. data/lib/earth/air/airline/data_miner.rb +0 -4
  13. data/lib/earth/air/airport.rb +23 -9
  14. data/lib/earth/air/airport/data_miner.rb +1 -5
  15. data/lib/earth/air/bts_aircraft.rb +14 -2
  16. data/lib/earth/air/flight_distance_class.rb +19 -7
  17. data/lib/earth/air/flight_distance_class_seat_class.rb +21 -4
  18. data/lib/earth/air/flight_seat_class.rb +13 -1
  19. data/lib/earth/air/flight_seat_class/data_miner.rb +2 -0
  20. data/lib/earth/air/flight_segment.rb +64 -59
  21. data/lib/earth/air/flight_segment/data_miner.rb +4 -5
  22. data/lib/earth/all.rb +1 -1
  23. data/lib/earth/automobile.rb +1 -1
  24. data/lib/earth/automobile/automobile_activity_year.rb +17 -3
  25. data/lib/earth/automobile/automobile_activity_year/data_miner.rb +0 -4
  26. data/lib/earth/automobile/automobile_activity_year_type.rb +21 -7
  27. data/lib/earth/automobile/automobile_activity_year_type/data_miner.rb +0 -4
  28. data/lib/earth/automobile/automobile_activity_year_type_fuel.rb +20 -8
  29. data/lib/earth/automobile/automobile_activity_year_type_fuel/data_miner.rb +0 -4
  30. data/lib/earth/automobile/automobile_fuel.rb +37 -23
  31. data/lib/earth/automobile/automobile_fuel/data_miner.rb +3 -5
  32. data/lib/earth/automobile/automobile_make.rb +17 -3
  33. data/lib/earth/automobile/automobile_make/data_miner.rb +0 -4
  34. data/lib/earth/automobile/automobile_make_model.rb +29 -14
  35. data/lib/earth/automobile/automobile_make_model/data_miner.rb +2 -5
  36. data/lib/earth/automobile/automobile_make_model_year.rb +31 -18
  37. data/lib/earth/automobile/automobile_make_model_year/data_miner.rb +3 -4
  38. data/lib/earth/automobile/automobile_make_model_year_variant.rb +43 -31
  39. data/lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb +0 -4
  40. data/lib/earth/automobile/automobile_make_year.rb +18 -7
  41. data/lib/earth/automobile/automobile_make_year/data_miner.rb +4 -4
  42. data/lib/earth/automobile/automobile_make_year_fleet.rb +19 -7
  43. data/lib/earth/automobile/automobile_make_year_fleet/data_miner.rb +0 -4
  44. data/lib/earth/automobile/automobile_model.rb +13 -1
  45. data/lib/earth/automobile/automobile_model/data_miner.rb +2 -4
  46. data/lib/earth/automobile/automobile_size_class.rb +24 -10
  47. data/lib/earth/automobile/automobile_size_class/data_miner.rb +0 -4
  48. data/lib/earth/automobile/automobile_type_fuel.rb +26 -12
  49. data/lib/earth/automobile/automobile_type_fuel/data_miner.rb +2 -4
  50. data/lib/earth/automobile/automobile_type_fuel_control.rb +20 -8
  51. data/lib/earth/automobile/automobile_type_fuel_control/data_miner.rb +0 -1
  52. data/lib/earth/automobile/automobile_type_fuel_year.rb +25 -11
  53. data/lib/earth/automobile/automobile_type_fuel_year/data_miner.rb +2 -4
  54. data/lib/earth/automobile/automobile_type_fuel_year_control.rb +21 -7
  55. data/lib/earth/automobile/automobile_type_fuel_year_control/data_miner.rb +0 -4
  56. data/lib/earth/automobile/automobile_year.rb +13 -1
  57. data/lib/earth/automobile/automobile_year/data_miner.rb +2 -0
  58. data/lib/earth/bus.rb +1 -1
  59. data/lib/earth/bus/bus_class.rb +38 -25
  60. data/lib/earth/bus/bus_class/data_miner.rb +0 -1
  61. data/lib/earth/bus/bus_fuel.rb +27 -13
  62. data/lib/earth/bus/bus_fuel/data_miner.rb +5 -1
  63. data/lib/earth/bus/bus_fuel_control.rb +19 -7
  64. data/lib/earth/bus/bus_fuel_control/data_miner.rb +0 -1
  65. data/lib/earth/bus/bus_fuel_year_control.rb +20 -7
  66. data/lib/earth/bus/bus_fuel_year_control/data_miner.rb +2 -1
  67. data/lib/earth/computation.rb +1 -1
  68. data/lib/earth/computation/computation_carrier.rb +16 -3
  69. data/lib/earth/computation/computation_carrier/data_miner.rb +0 -1
  70. data/lib/earth/computation/computation_carrier_instance_class.rb +21 -6
  71. data/lib/earth/computation/computation_carrier_instance_class/data_miner.rb +0 -1
  72. data/lib/earth/computation/computation_carrier_region.rb +18 -5
  73. data/lib/earth/computation/computation_carrier_region/data_miner.rb +0 -1
  74. data/lib/earth/diet.rb +1 -1
  75. data/lib/earth/diet/diet_class.rb +25 -13
  76. data/lib/earth/diet/food_group.rb +18 -7
  77. data/lib/earth/electricity.rb +1 -1
  78. data/lib/earth/electricity/electric_market.rb +17 -5
  79. data/lib/earth/electricity/electric_market/data_miner.rb +0 -2
  80. data/lib/earth/electricity/electric_utility.rb +22 -7
  81. data/lib/earth/electricity/electric_utility/data_miner.rb +1 -1
  82. data/lib/earth/electricity/green_button_adoption.rb +15 -3
  83. data/lib/earth/fuel.rb +1 -1
  84. data/lib/earth/fuel/fuel.rb +32 -19
  85. data/lib/earth/fuel/fuel/data_miner.rb +2 -4
  86. data/lib/earth/fuel/fuel_price.rb +17 -3
  87. data/lib/earth/fuel/fuel_type.rb +23 -12
  88. data/lib/earth/fuel/fuel_year.rb +27 -13
  89. data/lib/earth/fuel/greenhouse_gas.rb +18 -6
  90. data/lib/earth/hospitality.rb +1 -1
  91. data/lib/earth/hospitality/commercial_building_energy_consumption_survey_response.rb +68 -56
  92. data/lib/earth/hospitality/commercial_building_energy_consumption_survey_response/data_miner.rb +0 -4
  93. data/lib/earth/hospitality/lodging_class.rb +13 -1
  94. data/lib/earth/industry.rb +1 -1
  95. data/lib/earth/industry/cbecs_energy_intensity.rb +43 -32
  96. data/lib/earth/industry/cbecs_energy_intensity/data_miner.rb +0 -1
  97. data/lib/earth/industry/industry.rb +20 -2
  98. data/lib/earth/industry/industry/data_miner.rb +0 -4
  99. data/lib/earth/industry/industry_product.rb +20 -6
  100. data/lib/earth/industry/industry_product_line.rb +19 -5
  101. data/lib/earth/industry/industry_sector.rb +19 -6
  102. data/lib/earth/industry/mecs_energy.rb +34 -22
  103. data/lib/earth/industry/mecs_ratio.rb +17 -6
  104. data/lib/earth/industry/mecs_ratio/data_miner.rb +1 -1
  105. data/lib/earth/industry/merchant_category.rb +17 -2
  106. data/lib/earth/industry/merchant_category/data_miner.rb +0 -4
  107. data/lib/earth/industry/merchant_category_industry.rb +19 -4
  108. data/lib/earth/industry/naics_2002.rb +20 -3
  109. data/lib/earth/industry/naics_2002_naics_2007_concordance.rb +19 -4
  110. data/lib/earth/industry/naics_2002_sic_1987_concordance.rb +19 -4
  111. data/lib/earth/industry/naics_2007.rb +17 -2
  112. data/lib/earth/industry/product_line.rb +20 -5
  113. data/lib/earth/industry/product_line_industry_product.rb +19 -5
  114. data/lib/earth/industry/sector.rb +18 -5
  115. data/lib/earth/industry/sic_1987.rb +17 -2
  116. data/lib/earth/loader.rb +47 -0
  117. data/lib/earth/locality.rb +1 -1
  118. data/lib/earth/locality/census_division.rb +32 -13
  119. data/lib/earth/locality/census_division/data_miner.rb +0 -1
  120. data/lib/earth/locality/census_region.rb +18 -5
  121. data/lib/earth/locality/climate_division.rb +21 -6
  122. data/lib/earth/locality/country.rb +68 -56
  123. data/lib/earth/locality/country/data_miner.rb +8 -8
  124. data/lib/earth/locality/egrid_country.rb +22 -10
  125. data/lib/earth/locality/egrid_region.rb +25 -10
  126. data/lib/earth/locality/egrid_region/data_miner.rb +0 -4
  127. data/lib/earth/locality/egrid_subregion.rb +31 -16
  128. data/lib/earth/locality/egrid_subregion/data_miner.rb +7 -6
  129. data/lib/earth/locality/electricity_mix.rb +27 -13
  130. data/lib/earth/locality/electricity_mix/data_miner.rb +8 -8
  131. data/lib/earth/locality/petroleum_administration_for_defense_district.rb +17 -5
  132. data/lib/earth/locality/state.rb +36 -16
  133. data/lib/earth/locality/state/data_miner.rb +0 -4
  134. data/lib/earth/locality/zip_code.rb +34 -15
  135. data/lib/earth/locality/zip_code/data_miner.rb +0 -4
  136. data/lib/earth/model.rb +90 -0
  137. data/lib/earth/pet.rb +1 -1
  138. data/lib/earth/pet/breed.rb +19 -4
  139. data/lib/earth/pet/breed_gender.rb +20 -5
  140. data/lib/earth/pet/gender.rb +15 -1
  141. data/lib/earth/pet/species.rb +30 -14
  142. data/lib/earth/rail.rb +1 -1
  143. data/lib/earth/rail/country_rail_class.rb +26 -15
  144. data/lib/earth/rail/country_rail_class/data_miner.rb +0 -1
  145. data/lib/earth/rail/country_rail_traction.rb +21 -11
  146. data/lib/earth/rail/country_rail_traction/data_miner.rb +2 -2
  147. data/lib/earth/rail/country_rail_traction_class.rb +22 -12
  148. data/lib/earth/rail/country_rail_traction_class/data_miner.rb +2 -2
  149. data/lib/earth/rail/national_transit_database_company.rb +20 -6
  150. data/lib/earth/rail/national_transit_database_company/data_miner.rb +0 -1
  151. data/lib/earth/rail/national_transit_database_mode.rb +15 -3
  152. data/lib/earth/rail/national_transit_database_record.rb +45 -31
  153. data/lib/earth/rail/national_transit_database_record/data_miner.rb +0 -1
  154. data/lib/earth/rail/rail_class.rb +13 -1
  155. data/lib/earth/rail/rail_company.rb +34 -22
  156. data/lib/earth/rail/rail_company/data_miner.rb +7 -2
  157. data/lib/earth/rail/rail_company_traction.rb +21 -10
  158. data/lib/earth/rail/rail_company_traction/data_miner.rb +0 -1
  159. data/lib/earth/rail/rail_company_traction_class.rb +22 -11
  160. data/lib/earth/rail/rail_company_traction_class/data_miner.rb +0 -1
  161. data/lib/earth/rail/rail_fuel.rb +20 -7
  162. data/lib/earth/rail/rail_fuel/data_miner.rb +3 -1
  163. data/lib/earth/rail/rail_traction.rb +13 -1
  164. data/lib/earth/rail/rail_traction/data_miner.rb +5 -0
  165. data/lib/earth/residence.rb +1 -1
  166. data/lib/earth/residence/air_conditioner_use.rb +19 -3
  167. data/lib/earth/residence/clothes_machine_use.rb +17 -3
  168. data/lib/earth/residence/dishwasher_use.rb +17 -3
  169. data/lib/earth/residence/residence_appliance.rb +15 -3
  170. data/lib/earth/residence/residence_appliance/data_miner.rb +2 -0
  171. data/lib/earth/residence/residence_class.rb +15 -1
  172. data/lib/earth/residence/residence_fuel_price.rb +25 -12
  173. data/lib/earth/residence/residence_fuel_price/data_miner.rb +0 -1
  174. data/lib/earth/residence/residence_fuel_type.rb +17 -6
  175. data/lib/earth/residence/residential_energy_consumption_survey_response.rb +110 -91
  176. data/lib/earth/residence/residential_energy_consumption_survey_response/data_miner.rb +0 -1
  177. data/lib/earth/residence/urbanity.rb +15 -1
  178. data/lib/earth/shipping.rb +1 -1
  179. data/lib/earth/shipping/carrier.rb +24 -8
  180. data/lib/earth/shipping/carrier_mode.rb +22 -7
  181. data/lib/earth/shipping/shipment_mode.rb +18 -4
  182. data/lib/earth/tasks.rb +62 -0
  183. data/lib/earth/version.rb +1 -1
  184. data/lib/earth/warnings.rb +12 -0
  185. data/spec/data_mining_spec.rb +31 -0
  186. data/spec/earth/air/aircraft_spec.rb +0 -10
  187. data/spec/earth/air/airline_spec.rb +1 -11
  188. data/spec/earth/air/airport_spec.rb +0 -10
  189. data/spec/earth/air/bts_aircraft_spec.rb +0 -10
  190. data/spec/earth/air/flight_distance_class_spec.rb +0 -10
  191. data/spec/earth/air/flight_segment_spec.rb +27 -10
  192. data/spec/earth/automobile/automobile_activity_year_spec.rb +0 -7
  193. data/spec/earth/automobile/automobile_activity_year_type_fuel_spec.rb +0 -7
  194. data/spec/earth/automobile/automobile_activity_year_type_spec.rb +0 -7
  195. data/spec/earth/automobile/automobile_fuel_spec.rb +0 -10
  196. data/spec/earth/automobile/automobile_make_model_spec.rb +0 -8
  197. data/spec/earth/automobile/automobile_make_model_year_spec.rb +0 -8
  198. data/spec/earth/automobile/automobile_make_model_year_variant_spec.rb +0 -8
  199. data/spec/earth/automobile/automobile_make_spec.rb +0 -11
  200. data/spec/earth/automobile/automobile_make_year_fleet_spec.rb +0 -11
  201. data/spec/earth/automobile/automobile_make_year_spec.rb +0 -8
  202. data/spec/earth/automobile/automobile_model_spec.rb +0 -10
  203. data/spec/earth/automobile/automobile_size_class_spec.rb +0 -10
  204. data/spec/earth/automobile/automobile_type_fuel_control_spec.rb +0 -7
  205. data/spec/earth/automobile/automobile_type_fuel_spec.rb +0 -10
  206. data/spec/earth/automobile/automobile_type_fuel_year_control_spec.rb +0 -7
  207. data/spec/earth/automobile/automobile_type_fuel_year_spec.rb +1 -8
  208. data/spec/earth/automobile/automobile_year_spec.rb +2 -11
  209. data/spec/earth/bus/bus_fuel_control_spec.rb +0 -10
  210. data/spec/earth/bus/bus_fuel_spec.rb +0 -10
  211. data/spec/earth/bus/bus_fuel_year_control_spec.rb +0 -10
  212. data/spec/earth/electricity/electric_market_spec.rb +0 -10
  213. data/spec/earth/electricity/electric_utility_spec.rb +0 -10
  214. data/spec/earth/electricity/green_button_adoption_spec.rb +0 -10
  215. data/spec/earth/fuel/fuel_spec.rb +1 -10
  216. data/spec/earth/hospitality/commercial_building_energy_consumption_survey_response_spec.rb +0 -10
  217. data/spec/earth/hospitality/lodging_class_spec.rb +0 -10
  218. data/spec/earth/industry/cbecs_energy_intensity_spec.rb +3 -11
  219. data/spec/earth/industry/industry_spec.rb +0 -10
  220. data/spec/earth/industry/mecs_energy_spec.rb +0 -9
  221. data/spec/earth/industry/mecs_ratio_spec.rb +0 -9
  222. data/spec/earth/industry/merchant_category_spec.rb +2 -7
  223. data/spec/earth/industry/naics_2002_naics_2007_concordance_spec.rb +1 -12
  224. data/spec/earth/industry/naics_2002_sic_1987_concordance_spec.rb +3 -13
  225. data/spec/earth/industry/naics_2002_spec.rb +0 -10
  226. data/spec/earth/industry/naics_2007_spec.rb +0 -10
  227. data/spec/earth/industry/sic_1987_spec.rb +0 -10
  228. data/spec/earth/locality/country_spec.rb +0 -10
  229. data/spec/earth/locality/egrid_country_spec.rb +0 -11
  230. data/spec/earth/locality/egrid_region_spec.rb +0 -10
  231. data/spec/earth/locality/egrid_subregion_spec.rb +0 -10
  232. data/spec/earth/locality/electricity_mix_spec.rb +0 -10
  233. data/spec/earth/locality/state_spec.rb +0 -10
  234. data/spec/earth/locality/zip_code_spec.rb +7 -15
  235. data/spec/earth/model_spec.rb +27 -0
  236. data/spec/earth/pet/species_spec.rb +1 -1
  237. data/spec/earth_spec.rb +1 -30
  238. data/spec/factories/airline.rb +10 -0
  239. data/spec/factories/airport.rb +12 -0
  240. data/spec/factories/flight_segment.rb +38 -0
  241. data/spec/spec_helper.rb +27 -36
  242. metadata +249 -223
  243. data/lib/earth/active_record_base_class_methods.rb +0 -25
  244. data/lib/earth/air/data_miner.rb +0 -3
  245. data/lib/earth/automobile/data_miner.rb +0 -3
  246. data/lib/earth/bus/data_miner.rb +0 -3
  247. data/lib/earth/computation/data_miner.rb +0 -3
  248. data/lib/earth/data_miner.rb +0 -3
  249. data/lib/earth/diet/data_miner.rb +0 -3
  250. data/lib/earth/fuel/data_miner.rb +0 -3
  251. data/lib/earth/hospitality/data_miner.rb +0 -3
  252. data/lib/earth/industry/data_miner.rb +0 -3
  253. data/lib/earth/locality/data_miner.rb +0 -3
  254. data/lib/earth/pet/data_miner.rb +0 -3
  255. data/lib/earth/rail/data_miner.rb +0 -3
  256. data/lib/earth/residence/data_miner.rb +0 -3
  257. data/lib/earth/shipping/data_miner.rb +0 -3
metadata CHANGED
@@ -1,307 +1,337 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: earth
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
4
5
  prerelease:
5
- version: 0.12.4
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Seamus Abshere
9
9
  - Derek Kastner
10
10
  - Andy Rossmeissl
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
-
15
- date: 2012-07-25 00:00:00 Z
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
14
+ date: 2012-08-03 00:00:00.000000000Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
18
17
  name: activerecord
19
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &2166775580 !ruby/object:Gem::Requirement
20
19
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
25
24
  type: :runtime
26
25
  prerelease: false
27
- version_requirements: *id001
28
- - !ruby/object:Gem::Dependency
26
+ version_requirements: *2166775580
27
+ - !ruby/object:Gem::Dependency
29
28
  name: activesupport
30
- requirement: &id002 !ruby/object:Gem::Requirement
29
+ requirement: &2166775160 !ruby/object:Gem::Requirement
31
30
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
36
35
  type: :runtime
37
36
  prerelease: false
38
- version_requirements: *id002
39
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *2166775160
38
+ - !ruby/object:Gem::Dependency
40
39
  name: cohort_analysis
41
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ requirement: &2166774740 !ruby/object:Gem::Requirement
42
41
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
47
46
  type: :runtime
48
47
  prerelease: false
49
- version_requirements: *id003
50
- - !ruby/object:Gem::Dependency
48
+ version_requirements: *2166774740
49
+ - !ruby/object:Gem::Dependency
51
50
  name: conversions
52
- requirement: &id004 !ruby/object:Gem::Requirement
51
+ requirement: &2166774320 !ruby/object:Gem::Requirement
53
52
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
58
57
  type: :runtime
59
58
  prerelease: false
60
- version_requirements: *id004
61
- - !ruby/object:Gem::Dependency
59
+ version_requirements: *2166774320
60
+ - !ruby/object:Gem::Dependency
62
61
  name: data_miner
63
- requirement: &id005 !ruby/object:Gem::Requirement
62
+ requirement: &2166773820 !ruby/object:Gem::Requirement
64
63
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: 2.2.0
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: 2.4.0
69
68
  type: :runtime
70
69
  prerelease: false
71
- version_requirements: *id005
72
- - !ruby/object:Gem::Dependency
70
+ version_requirements: *2166773820
71
+ - !ruby/object:Gem::Dependency
73
72
  name: falls_back_on
74
- requirement: &id006 !ruby/object:Gem::Requirement
73
+ requirement: &2166773400 !ruby/object:Gem::Requirement
75
74
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: "0"
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
80
79
  type: :runtime
81
80
  prerelease: false
82
- version_requirements: *id006
83
- - !ruby/object:Gem::Dependency
81
+ version_requirements: *2166773400
82
+ - !ruby/object:Gem::Dependency
84
83
  name: fixed_width-multibyte
85
- requirement: &id007 !ruby/object:Gem::Requirement
84
+ requirement: &2166772940 !ruby/object:Gem::Requirement
86
85
  none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: "0"
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
91
90
  type: :runtime
92
91
  prerelease: false
93
- version_requirements: *id007
94
- - !ruby/object:Gem::Dependency
92
+ version_requirements: *2166772940
93
+ - !ruby/object:Gem::Dependency
95
94
  name: fuzzy_match
96
- requirement: &id008 !ruby/object:Gem::Requirement
95
+ requirement: &2166772440 !ruby/object:Gem::Requirement
97
96
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
101
100
  version: 1.3.3
102
101
  type: :runtime
103
102
  prerelease: false
104
- version_requirements: *id008
105
- - !ruby/object:Gem::Dependency
103
+ version_requirements: *2166772440
104
+ - !ruby/object:Gem::Dependency
106
105
  name: geokit
107
- requirement: &id009 !ruby/object:Gem::Requirement
106
+ requirement: &2166772020 !ruby/object:Gem::Requirement
108
107
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: "0"
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
113
112
  type: :runtime
114
113
  prerelease: false
115
- version_requirements: *id009
116
- - !ruby/object:Gem::Dependency
117
- name: active_record_inline_schema
118
- requirement: &id010 !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: "0"
124
- type: :runtime
125
- prerelease: false
126
- version_requirements: *id010
127
- - !ruby/object:Gem::Dependency
114
+ version_requirements: *2166772020
115
+ - !ruby/object:Gem::Dependency
128
116
  name: remote_table
129
- requirement: &id011 !ruby/object:Gem::Requirement
117
+ requirement: &2166771480 !ruby/object:Gem::Requirement
130
118
  none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
134
122
  version: 2.0.2
135
123
  type: :runtime
136
124
  prerelease: false
137
- version_requirements: *id011
138
- - !ruby/object:Gem::Dependency
125
+ version_requirements: *2166771480
126
+ - !ruby/object:Gem::Dependency
139
127
  name: table_warnings
140
- requirement: &id012 !ruby/object:Gem::Requirement
128
+ requirement: &2166770980 !ruby/object:Gem::Requirement
141
129
  none: false
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
145
133
  version: 1.0.1
146
134
  type: :runtime
147
135
  prerelease: false
148
- version_requirements: *id012
149
- - !ruby/object:Gem::Dependency
136
+ version_requirements: *2166770980
137
+ - !ruby/object:Gem::Dependency
150
138
  name: to_regexp
151
- requirement: &id013 !ruby/object:Gem::Requirement
139
+ requirement: &2166770580 !ruby/object:Gem::Requirement
152
140
  none: false
153
- requirements:
154
- - - ">="
155
- - !ruby/object:Gem::Version
156
- version: "0"
141
+ requirements:
142
+ - - ! '>='
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
157
145
  type: :runtime
158
146
  prerelease: false
159
- version_requirements: *id013
160
- - !ruby/object:Gem::Dependency
147
+ version_requirements: *2166770580
148
+ - !ruby/object:Gem::Dependency
161
149
  name: weighted_average
162
- requirement: &id014 !ruby/object:Gem::Requirement
150
+ requirement: &2166770040 !ruby/object:Gem::Requirement
163
151
  none: false
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
152
+ requirements:
153
+ - - ! '>='
154
+ - !ruby/object:Gem::Version
167
155
  version: 1.0.2
168
156
  type: :runtime
169
157
  prerelease: false
170
- version_requirements: *id014
171
- - !ruby/object:Gem::Dependency
158
+ version_requirements: *2166770040
159
+ - !ruby/object:Gem::Dependency
172
160
  name: timeframe
173
- requirement: &id015 !ruby/object:Gem::Requirement
161
+ requirement: &2166769620 !ruby/object:Gem::Requirement
174
162
  none: false
175
- requirements:
176
- - - ">="
177
- - !ruby/object:Gem::Version
178
- version: "0"
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
179
167
  type: :runtime
180
168
  prerelease: false
181
- version_requirements: *id015
182
- - !ruby/object:Gem::Dependency
169
+ version_requirements: *2166769620
170
+ - !ruby/object:Gem::Dependency
183
171
  name: bueller
184
- requirement: &id016 !ruby/object:Gem::Requirement
172
+ requirement: &2166769160 !ruby/object:Gem::Requirement
185
173
  none: false
186
- requirements:
187
- - - ">="
188
- - !ruby/object:Gem::Version
189
- version: "0"
174
+ requirements:
175
+ - - ! '>='
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
190
178
  type: :development
191
179
  prerelease: false
192
- version_requirements: *id016
193
- - !ruby/object:Gem::Dependency
180
+ version_requirements: *2166769160
181
+ - !ruby/object:Gem::Dependency
194
182
  name: bundler
195
- requirement: &id017 !ruby/object:Gem::Requirement
183
+ requirement: &2166768740 !ruby/object:Gem::Requirement
196
184
  none: false
197
- requirements:
198
- - - ">="
199
- - !ruby/object:Gem::Version
200
- version: "0"
185
+ requirements:
186
+ - - ! '>='
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
201
189
  type: :development
202
190
  prerelease: false
203
- version_requirements: *id017
204
- - !ruby/object:Gem::Dependency
191
+ version_requirements: *2166768740
192
+ - !ruby/object:Gem::Dependency
205
193
  name: charisma
206
- requirement: &id018 !ruby/object:Gem::Requirement
194
+ requirement: &2166768300 !ruby/object:Gem::Requirement
207
195
  none: false
208
- requirements:
209
- - - ">="
210
- - !ruby/object:Gem::Version
211
- version: "0"
196
+ requirements:
197
+ - - ! '>='
198
+ - !ruby/object:Gem::Version
199
+ version: '0'
212
200
  type: :development
213
201
  prerelease: false
214
- version_requirements: *id018
215
- - !ruby/object:Gem::Dependency
202
+ version_requirements: *2166768300
203
+ - !ruby/object:Gem::Dependency
216
204
  name: cucumber
217
- requirement: &id019 !ruby/object:Gem::Requirement
205
+ requirement: &2166767880 !ruby/object:Gem::Requirement
206
+ none: false
207
+ requirements:
208
+ - - ! '>='
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
211
+ type: :development
212
+ prerelease: false
213
+ version_requirements: *2166767880
214
+ - !ruby/object:Gem::Dependency
215
+ name: factory_girl
216
+ requirement: &2166767460 !ruby/object:Gem::Requirement
218
217
  none: false
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: "0"
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
223
222
  type: :development
224
223
  prerelease: false
225
- version_requirements: *id019
226
- - !ruby/object:Gem::Dependency
224
+ version_requirements: *2166767460
225
+ - !ruby/object:Gem::Dependency
227
226
  name: mysql2
228
- requirement: &id020 !ruby/object:Gem::Requirement
227
+ requirement: &2166767040 !ruby/object:Gem::Requirement
229
228
  none: false
230
- requirements:
231
- - - ">="
232
- - !ruby/object:Gem::Version
233
- version: "0"
229
+ requirements:
230
+ - - ! '>='
231
+ - !ruby/object:Gem::Version
232
+ version: '0'
234
233
  type: :development
235
234
  prerelease: false
236
- version_requirements: *id020
237
- - !ruby/object:Gem::Dependency
235
+ version_requirements: *2166767040
236
+ - !ruby/object:Gem::Dependency
238
237
  name: pg
239
- requirement: &id021 !ruby/object:Gem::Requirement
238
+ requirement: &2166766620 !ruby/object:Gem::Requirement
240
239
  none: false
241
- requirements:
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- version: "0"
240
+ requirements:
241
+ - - ! '>='
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
245
244
  type: :development
246
245
  prerelease: false
247
- version_requirements: *id021
248
- - !ruby/object:Gem::Dependency
246
+ version_requirements: *2166766620
247
+ - !ruby/object:Gem::Dependency
249
248
  name: rake
250
- requirement: &id022 !ruby/object:Gem::Requirement
249
+ requirement: &2166766200 !ruby/object:Gem::Requirement
251
250
  none: false
252
- requirements:
253
- - - ">="
254
- - !ruby/object:Gem::Version
255
- version: "0"
251
+ requirements:
252
+ - - ! '>='
253
+ - !ruby/object:Gem::Version
254
+ version: '0'
256
255
  type: :development
257
256
  prerelease: false
258
- version_requirements: *id022
259
- - !ruby/object:Gem::Dependency
257
+ version_requirements: *2166766200
258
+ - !ruby/object:Gem::Dependency
260
259
  name: rdoc
261
- requirement: &id023 !ruby/object:Gem::Requirement
260
+ requirement: &2166765780 !ruby/object:Gem::Requirement
262
261
  none: false
263
- requirements:
264
- - - ">="
265
- - !ruby/object:Gem::Version
266
- version: "0"
262
+ requirements:
263
+ - - ! '>='
264
+ - !ruby/object:Gem::Version
265
+ version: '0'
267
266
  type: :development
268
267
  prerelease: false
269
- version_requirements: *id023
270
- - !ruby/object:Gem::Dependency
268
+ version_requirements: *2166765780
269
+ - !ruby/object:Gem::Dependency
271
270
  name: rspec
272
- requirement: &id024 !ruby/object:Gem::Requirement
271
+ requirement: &2166765360 !ruby/object:Gem::Requirement
272
+ none: false
273
+ requirements:
274
+ - - ! '>='
275
+ - !ruby/object:Gem::Version
276
+ version: '0'
277
+ type: :development
278
+ prerelease: false
279
+ version_requirements: *2166765360
280
+ - !ruby/object:Gem::Dependency
281
+ name: sandbox
282
+ requirement: &2166764940 !ruby/object:Gem::Requirement
283
+ none: false
284
+ requirements:
285
+ - - ! '>='
286
+ - !ruby/object:Gem::Version
287
+ version: '0'
288
+ type: :development
289
+ prerelease: false
290
+ version_requirements: *2166764940
291
+ - !ruby/object:Gem::Dependency
292
+ name: sqlite3
293
+ requirement: &2166764520 !ruby/object:Gem::Requirement
294
+ none: false
295
+ requirements:
296
+ - - ! '>='
297
+ - !ruby/object:Gem::Version
298
+ version: '0'
299
+ type: :development
300
+ prerelease: false
301
+ version_requirements: *2166764520
302
+ - !ruby/object:Gem::Dependency
303
+ name: thor
304
+ requirement: &2166764100 !ruby/object:Gem::Requirement
273
305
  none: false
274
- requirements:
275
- - - ">="
276
- - !ruby/object:Gem::Version
277
- version: "0"
306
+ requirements:
307
+ - - ! '>='
308
+ - !ruby/object:Gem::Version
309
+ version: '0'
278
310
  type: :development
279
311
  prerelease: false
280
- version_requirements: *id024
281
- - !ruby/object:Gem::Dependency
282
- name: sqlite3-ruby
283
- requirement: &id025 !ruby/object:Gem::Requirement
312
+ version_requirements: *2166764100
313
+ - !ruby/object:Gem::Dependency
314
+ name: pry
315
+ requirement: &2166763680 !ruby/object:Gem::Requirement
284
316
  none: false
285
- requirements:
286
- - - ">="
287
- - !ruby/object:Gem::Version
288
- version: "0"
317
+ requirements:
318
+ - - ! '>='
319
+ - !ruby/object:Gem::Version
320
+ version: '0'
289
321
  type: :development
290
322
  prerelease: false
291
- version_requirements: *id025
323
+ version_requirements: *2166763680
292
324
  description: An earth-simulation environment with ActiveRecord models and data
293
- email:
325
+ email:
294
326
  - seamus@abshere.net
295
327
  - dkastner@gmail.com
296
328
  - andy@rossmeissl.net
297
329
  - ijhough@gmail.com
298
- executables:
330
+ executables:
299
331
  - earth_tester.rb
300
332
  extensions: []
301
-
302
333
  extra_rdoc_files: []
303
-
304
- files:
334
+ files:
305
335
  - .gitignore
306
336
  - CHANGELOG
307
337
  - DEVELOPERS.markdown
@@ -349,7 +379,6 @@ files:
349
379
  - errata/readme
350
380
  - lib/earth.rb
351
381
  - lib/earth/acronyms.rb
352
- - lib/earth/active_record_base_class_methods.rb
353
382
  - lib/earth/air.rb
354
383
  - lib/earth/air/aircraft.rb
355
384
  - lib/earth/air/aircraft/data_miner.rb
@@ -359,7 +388,6 @@ files:
359
388
  - lib/earth/air/airport/data_miner.rb
360
389
  - lib/earth/air/bts_aircraft.rb
361
390
  - lib/earth/air/bts_aircraft/data_miner.rb
362
- - lib/earth/air/data_miner.rb
363
391
  - lib/earth/air/flight_distance_class.rb
364
392
  - lib/earth/air/flight_distance_class/data_miner.rb
365
393
  - lib/earth/air/flight_distance_class_seat_class.rb
@@ -404,7 +432,6 @@ files:
404
432
  - lib/earth/automobile/automobile_type_fuel_year_control/data_miner.rb
405
433
  - lib/earth/automobile/automobile_year.rb
406
434
  - lib/earth/automobile/automobile_year/data_miner.rb
407
- - lib/earth/automobile/data_miner.rb
408
435
  - lib/earth/automobile/dependencies.txt
409
436
  - lib/earth/bus.rb
410
437
  - lib/earth/bus/bus_class.rb
@@ -415,7 +442,6 @@ files:
415
442
  - lib/earth/bus/bus_fuel_control/data_miner.rb
416
443
  - lib/earth/bus/bus_fuel_year_control.rb
417
444
  - lib/earth/bus/bus_fuel_year_control/data_miner.rb
418
- - lib/earth/bus/data_miner.rb
419
445
  - lib/earth/computation.rb
420
446
  - lib/earth/computation/computation_carrier.rb
421
447
  - lib/earth/computation/computation_carrier/data_miner.rb
@@ -423,11 +449,8 @@ files:
423
449
  - lib/earth/computation/computation_carrier_instance_class/data_miner.rb
424
450
  - lib/earth/computation/computation_carrier_region.rb
425
451
  - lib/earth/computation/computation_carrier_region/data_miner.rb
426
- - lib/earth/computation/data_miner.rb
427
452
  - lib/earth/conversions_ext.rb
428
- - lib/earth/data_miner.rb
429
453
  - lib/earth/diet.rb
430
- - lib/earth/diet/data_miner.rb
431
454
  - lib/earth/diet/diet_class.rb
432
455
  - lib/earth/diet/diet_class/data_miner.rb
433
456
  - lib/earth/diet/food_group.rb
@@ -441,7 +464,6 @@ files:
441
464
  - lib/earth/electricity/green_button_adoption.rb
442
465
  - lib/earth/electricity/green_button_adoption/data_miner.rb
443
466
  - lib/earth/fuel.rb
444
- - lib/earth/fuel/data_miner.rb
445
467
  - lib/earth/fuel/fuel.rb
446
468
  - lib/earth/fuel/fuel/data_miner.rb
447
469
  - lib/earth/fuel/fuel_price.rb
@@ -455,13 +477,11 @@ files:
455
477
  - lib/earth/hospitality.rb
456
478
  - lib/earth/hospitality/commercial_building_energy_consumption_survey_response.rb
457
479
  - lib/earth/hospitality/commercial_building_energy_consumption_survey_response/data_miner.rb
458
- - lib/earth/hospitality/data_miner.rb
459
480
  - lib/earth/hospitality/lodging_class.rb
460
481
  - lib/earth/hospitality/lodging_class/data_miner.rb
461
482
  - lib/earth/industry.rb
462
483
  - lib/earth/industry/cbecs_energy_intensity.rb
463
484
  - lib/earth/industry/cbecs_energy_intensity/data_miner.rb
464
- - lib/earth/industry/data_miner.rb
465
485
  - lib/earth/industry/industry.rb
466
486
  - lib/earth/industry/industry/data_miner.rb
467
487
  - lib/earth/industry/industry_product.rb
@@ -488,6 +508,7 @@ files:
488
508
  - lib/earth/industry/sic_1987.rb
489
509
  - lib/earth/industry/sic_1987/data_miner.rb
490
510
  - lib/earth/inflectors.rb
511
+ - lib/earth/loader.rb
491
512
  - lib/earth/locality.rb
492
513
  - lib/earth/locality/census_division.rb
493
514
  - lib/earth/locality/census_division/data_miner.rb
@@ -497,7 +518,6 @@ files:
497
518
  - lib/earth/locality/climate_division/data_miner.rb
498
519
  - lib/earth/locality/country.rb
499
520
  - lib/earth/locality/country/data_miner.rb
500
- - lib/earth/locality/data_miner.rb
501
521
  - lib/earth/locality/egrid_country.rb
502
522
  - lib/earth/locality/egrid_country/data_miner.rb
503
523
  - lib/earth/locality/egrid_region.rb
@@ -512,12 +532,12 @@ files:
512
532
  - lib/earth/locality/state/data_miner.rb
513
533
  - lib/earth/locality/zip_code.rb
514
534
  - lib/earth/locality/zip_code/data_miner.rb
535
+ - lib/earth/model.rb
515
536
  - lib/earth/pet.rb
516
537
  - lib/earth/pet/breed.rb
517
538
  - lib/earth/pet/breed/data_miner.rb
518
539
  - lib/earth/pet/breed_gender.rb
519
540
  - lib/earth/pet/breed_gender/data_miner.rb
520
- - lib/earth/pet/data_miner.rb
521
541
  - lib/earth/pet/gender.rb
522
542
  - lib/earth/pet/gender/data_miner.rb
523
543
  - lib/earth/pet/species.rb
@@ -529,7 +549,6 @@ files:
529
549
  - lib/earth/rail/country_rail_traction/data_miner.rb
530
550
  - lib/earth/rail/country_rail_traction_class.rb
531
551
  - lib/earth/rail/country_rail_traction_class/data_miner.rb
532
- - lib/earth/rail/data_miner.rb
533
552
  - lib/earth/rail/national_transit_database_company.rb
534
553
  - lib/earth/rail/national_transit_database_company/data_miner.rb
535
554
  - lib/earth/rail/national_transit_database_mode.rb
@@ -553,7 +572,6 @@ files:
553
572
  - lib/earth/residence/air_conditioner_use/data_miner.rb
554
573
  - lib/earth/residence/clothes_machine_use.rb
555
574
  - lib/earth/residence/clothes_machine_use/data_miner.rb
556
- - lib/earth/residence/data_miner.rb
557
575
  - lib/earth/residence/dishwasher_use.rb
558
576
  - lib/earth/residence/dishwasher_use/data_miner.rb
559
577
  - lib/earth/residence/residence_appliance.rb
@@ -573,11 +591,13 @@ files:
573
591
  - lib/earth/shipping/carrier/data_miner.rb
574
592
  - lib/earth/shipping/carrier_mode.rb
575
593
  - lib/earth/shipping/carrier_mode/data_miner.rb
576
- - lib/earth/shipping/data_miner.rb
577
594
  - lib/earth/shipping/shipment_mode.rb
578
595
  - lib/earth/shipping/shipment_mode/data_miner.rb
596
+ - lib/earth/tasks.rb
579
597
  - lib/earth/utils.rb
580
598
  - lib/earth/version.rb
599
+ - lib/earth/warnings.rb
600
+ - spec/data_mining_spec.rb
581
601
  - spec/earth/air/aircraft_spec.rb
582
602
  - spec/earth/air/airline_spec.rb
583
603
  - spec/earth/air/airport_spec.rb
@@ -627,8 +647,12 @@ files:
627
647
  - spec/earth/locality/electricity_mix_spec.rb
628
648
  - spec/earth/locality/state_spec.rb
629
649
  - spec/earth/locality/zip_code_spec.rb
650
+ - spec/earth/model_spec.rb
630
651
  - spec/earth/pet/species_spec.rb
631
652
  - spec/earth_spec.rb
653
+ - spec/factories/airline.rb
654
+ - spec/factories/airport.rb
655
+ - spec/factories/flight_segment.rb
632
656
  - spec/spec_helper.rb
633
657
  - spec/support/integration.rb
634
658
  - vendor/geokit-rails/.gitignore
@@ -677,38 +701,36 @@ files:
677
701
  - vendor/geokit-rails/test/test_helper.rb
678
702
  homepage: https://github.com/brighterplanet/earth
679
703
  licenses: []
680
-
681
704
  post_install_message:
682
705
  rdoc_options: []
683
-
684
- require_paths:
706
+ require_paths:
685
707
  - lib
686
- required_ruby_version: !ruby/object:Gem::Requirement
708
+ required_ruby_version: !ruby/object:Gem::Requirement
687
709
  none: false
688
- requirements:
689
- - - ">="
690
- - !ruby/object:Gem::Version
691
- hash: -3264838130013702299
692
- segments:
710
+ requirements:
711
+ - - ! '>='
712
+ - !ruby/object:Gem::Version
713
+ version: '0'
714
+ segments:
693
715
  - 0
694
- version: "0"
695
- required_rubygems_version: !ruby/object:Gem::Requirement
716
+ hash: -1250548202269852024
717
+ required_rubygems_version: !ruby/object:Gem::Requirement
696
718
  none: false
697
- requirements:
698
- - - ">="
699
- - !ruby/object:Gem::Version
700
- hash: -3264838130013702299
701
- segments:
719
+ requirements:
720
+ - - ! '>='
721
+ - !ruby/object:Gem::Version
722
+ version: '0'
723
+ segments:
702
724
  - 0
703
- version: "0"
725
+ hash: -1250548202269852024
704
726
  requirements: []
705
-
706
727
  rubyforge_project:
707
- rubygems_version: 1.8.15
728
+ rubygems_version: 1.8.11
708
729
  signing_key:
709
730
  specification_version: 3
710
731
  summary: Land, sky, and sea
711
- test_files:
732
+ test_files:
733
+ - spec/data_mining_spec.rb
712
734
  - spec/earth/air/aircraft_spec.rb
713
735
  - spec/earth/air/airline_spec.rb
714
736
  - spec/earth/air/airport_spec.rb
@@ -758,7 +780,11 @@ test_files:
758
780
  - spec/earth/locality/electricity_mix_spec.rb
759
781
  - spec/earth/locality/state_spec.rb
760
782
  - spec/earth/locality/zip_code_spec.rb
783
+ - spec/earth/model_spec.rb
761
784
  - spec/earth/pet/species_spec.rb
762
785
  - spec/earth_spec.rb
786
+ - spec/factories/airline.rb
787
+ - spec/factories/airport.rb
788
+ - spec/factories/flight_segment.rb
763
789
  - spec/spec_helper.rb
764
790
  - spec/support/integration.rb