earth 0.11.13 → 0.11.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/README.markdown +1 -1
  2. data/bin/earth_tester.rb +1 -1
  3. data/earth.gemspec +2 -3
  4. data/lib/earth.rb +1 -1
  5. data/lib/earth/air/aircraft/data_miner.rb +4 -0
  6. data/lib/earth/air/airline/data_miner.rb +5 -1
  7. data/lib/earth/air/airport/data_miner.rb +4 -0
  8. data/lib/earth/air/flight_segment.rb +2 -2
  9. data/lib/earth/air/flight_segment/data_miner.rb +4 -0
  10. data/lib/earth/computation/computation_carrier_instance_class.rb +1 -1
  11. data/lib/earth/hospitality/commercial_building_energy_consumption_survey_response.rb +3 -8
  12. data/lib/earth/hospitality/commercial_building_energy_consumption_survey_response/data_miner.rb +10 -19
  13. data/lib/earth/hospitality/country_lodging_class/data_miner.rb +17 -23
  14. data/lib/earth/hospitality/lodging_property.rb +4 -0
  15. data/lib/earth/industry/mecs_energy.rb +15 -6
  16. data/lib/earth/industry/mecs_ratio.rb +16 -7
  17. data/lib/earth/industry/sic_1987.rb +0 -1
  18. data/lib/earth/locality/country/data_miner.rb +7 -14
  19. data/lib/earth/locality/zip_code/data_miner.rb +4 -6
  20. data/lib/earth/version.rb +1 -1
  21. data/spec/earth/air/aircraft_spec.rb +1 -1
  22. data/spec/earth/automobile/automobile_fuel_spec.rb +1 -1
  23. data/spec/earth/automobile/automobile_type_fuel_year_age_spec.rb +1 -1
  24. data/spec/earth/bus/bus_class_spec.rb +1 -1
  25. data/spec/earth/fuel/fuel_spec.rb +1 -1
  26. data/spec/earth/hospitality/commercial_building_energy_consumption_survey_response_spec.rb +37 -0
  27. data/spec/earth/hospitality/country_lodging_class_spec.rb +31 -0
  28. data/spec/earth/industry/cbecs_energy_intensity_spec.rb +1 -1
  29. data/spec/earth/industry/industry_spec.rb +1 -1
  30. data/spec/earth/industry/mecs_energy_spec.rb +10 -2
  31. data/spec/earth/industry/mecs_ratio_spec.rb +9 -1
  32. data/spec/earth/industry/naics_2002_naics_2007_concordance_spec.rb +1 -1
  33. data/spec/earth/industry/naics_2002_sic_1987_concordance_spec.rb +1 -1
  34. data/spec/earth/industry/naics_2002_spec.rb +1 -1
  35. data/spec/earth/industry/naics_2007_spec.rb +1 -1
  36. data/spec/earth/industry/sic_1987_spec.rb +1 -15
  37. data/spec/earth/locality/country_spec.rb +27 -10
  38. data/spec/earth/locality/state_spec.rb +1 -1
  39. data/spec/earth/locality/zip_code_spec.rb +1 -1
  40. data/spec/spec_helper.rb +2 -2
  41. metadata +193 -199
  42. data/.document +0 -5
@@ -4,7 +4,7 @@ require 'earth/automobile/data_miner'
4
4
 
5
5
  describe AutomobileTypeFuelYearAge do
6
6
  describe 'import' do
7
- it 'imports and processes data successfully', :slow => true do
7
+ it 'imports and processes data successfully', :data_miner => true do
8
8
  expect do
9
9
  AutomobileTypeFuelYearAge.run_data_miner!
10
10
  end.should_not raise_error
@@ -5,7 +5,7 @@ describe 'BusFuel' do
5
5
  Earth.init :bus, :fuel, :apply_schemas => true
6
6
  end
7
7
 
8
- describe 'import', :slow => true do
8
+ describe 'import', :data_miner => true do
9
9
  it 'is related to fuels' do
10
10
  BusFuel.run_data_miner!
11
11
  BusFuel.last.fuel.should_not be_nil
@@ -8,7 +8,7 @@ describe Fuel do
8
8
  Fuel.auto_upgrade!
9
9
  end
10
10
 
11
- describe 'when importing data', :slow => true do
11
+ describe 'when importing data', :data_miner => true do
12
12
  it 'fetches all fuels' do
13
13
  Earth.init :fuel, :load_data_miner => true
14
14
  Fuel.run_data_miner!
@@ -0,0 +1,37 @@
1
+ require 'spec_helper'
2
+ require 'earth/hospitality/commercial_building_energy_consumption_survey_response'
3
+
4
+ describe CommercialBuildingEnergyConsumptionSurveyResponse do
5
+ before :all do
6
+ CommercialBuildingEnergyConsumptionSurveyResponse.auto_upgrade!
7
+ end
8
+
9
+ describe "when importing data", :data_miner => true do
10
+ before do
11
+ require 'earth/hospitality/commercial_building_energy_consumption_survey_response/data_miner'
12
+ end
13
+
14
+ it "imports all naics codes" do
15
+ CommercialBuildingEnergyConsumptionSurveyResponse.run_data_miner!
16
+ CommercialBuildingEnergyConsumptionSurveyResponse.count.should == 5215
17
+ end
18
+ end
19
+
20
+ describe "verify imported data", :sanity => true do
21
+ it "should have room nights and fuel intensities per room night for lodging_records" do
22
+ spot_check = CommercialBuildingEnergyConsumptionSurveyResponse.lodging_records.first
23
+ spot_check.room_nights.should == 6205
24
+ spot_check.natural_gas_per_room_night.should be_within(0.00001).of(1.62234)
25
+ spot_check.natural_gas_per_room_night_units.should == 'cubic_metres_per_room_night'
26
+ end
27
+ end
28
+
29
+ describe ".lodging_records" do
30
+ it "should return only records representing Hotels, Motels, and Inns with no other activity" do
31
+ lodging_records = CommercialBuildingEnergyConsumptionSurveyResponse.lodging_records
32
+ lodging_records.map(&:detailed_activity).uniq.sort.should == ['Hotel', 'Motel or inn']
33
+ lodging_records.map(&:first_activity).uniq.should == [nil]
34
+ lodging_records.count.should == 192
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,31 @@
1
+ require 'spec_helper'
2
+ require 'earth/hospitality/country_lodging_class'
3
+
4
+ describe CountryLodgingClass do
5
+ before :all do
6
+ CountryLodgingClass.auto_upgrade!
7
+ end
8
+
9
+ describe "when importing data", :data_miner => true do
10
+ before do
11
+ require 'earth/hospitality/country_lodging_class/data_miner'
12
+ end
13
+
14
+ it "imports all naics codes" do
15
+ CountryLodgingClass.run_data_miner!
16
+ CountryLodgingClass.count.should == 3
17
+ end
18
+ end
19
+
20
+ describe "verify imported data", :sanity => true do
21
+ it "should have fuel intensities" do
22
+ us_hotel = CountryLodgingClass.find 'US Hotel'
23
+ us_hotel.fuel_oil_intensity.should be_within(0.00001).of(0.25014)
24
+ us_hotel.fuel_oil_intensity_units.should == 'litres_per_occupied_room_night'
25
+ end
26
+
27
+ it "should have the correct total weighting for the US" do
28
+ CountryLodgingClass.where(:country_iso_3166_code => 'US').sum(&:weighting).should == be_within(0.0001).of(89209.27734)
29
+ end
30
+ end
31
+ end
@@ -8,7 +8,7 @@ def create_cbecs(name, args)
8
8
  end
9
9
 
10
10
  describe CbecsEnergyIntensity do
11
- describe 'import', :slow => true do
11
+ describe 'import', :data_miner => true do
12
12
  before do
13
13
  require 'earth/industry/cbecs_energy_intensity/data_miner'
14
14
  CbecsEnergyIntensity.auto_upgrade!
@@ -6,7 +6,7 @@ describe Industry do
6
6
  Industry.auto_upgrade!
7
7
  end
8
8
 
9
- describe "when importing data", :slow => true do
9
+ describe "when importing data", :data_miner => true do
10
10
  before do
11
11
  require 'earth/industry/industry/data_miner'
12
12
  end
@@ -3,7 +3,7 @@ require 'earth/industry/mecs_energy'
3
3
  require 'earth/industry/industry' # MecsEnergy's custom find by method calls an Industry method
4
4
 
5
5
  describe MecsEnergy do
6
- describe 'import', :slow => true do
6
+ describe 'import', :data_miner => true do
7
7
  before do
8
8
  require 'earth/industry/mecs_energy/data_miner'
9
9
  MecsEnergy.auto_upgrade!
@@ -19,7 +19,7 @@ describe MecsEnergy do
19
19
  it 'spot checks the data' do
20
20
  apparel = MecsEnergy.find_by_naics_code '315'
21
21
  apparel.census_region_number.should be_nil
22
- apparel.energy.should be_within(10_000).of(14.trillion_btus.to(:megajoules))
22
+ apparel.energy.should be_within(20_000).of(14770781900)
23
23
  apparel.energy_units.should == 'megajoules'
24
24
  apparel.electricity.should == be_within(1_000).of(7.trillion_btus.to(:megajoules))
25
25
  apparel.electricity_units.should == 'megajoules'
@@ -49,6 +49,14 @@ describe MecsEnergy do
49
49
  MecsEnergy.find_by_naics_code_and_census_region_number('3117', 2).
50
50
  name.should == '311-2'
51
51
  end
52
+ it 'finds same category nationwide when census region is not present' do
53
+ MecsEnergy.find_by_naics_code_and_census_region_number('311221', 5).
54
+ name.should == '311221-'
55
+ end
56
+ it 'looks nationwide and at parent codes if fuel ratios is invalid' do
57
+ MecsEnergy.find_by_naics_code_and_census_region_number('311221', 1).
58
+ name.should == '311221-'
59
+ end
52
60
  it 'finds a parent category rather than a sibling category' do
53
61
  MecsEnergy.find_by_naics_code_and_census_region_number('311225', 2).
54
62
  name.should == '3112-2'
@@ -3,7 +3,7 @@ require 'earth/industry/mecs_ratio'
3
3
  require 'earth/industry/industry' # MecsRatio's custom find by method calls an Industry method
4
4
 
5
5
  describe MecsRatio do
6
- describe 'import', :slow => true do
6
+ describe 'import', :data_miner => true do
7
7
  before do
8
8
  require 'earth/industry/mecs_ratio/data_miner'
9
9
  MecsRatio.auto_upgrade!
@@ -33,6 +33,14 @@ describe MecsRatio do
33
33
  MecsRatio.find_by_naics_code_and_census_region_number('3117', 2).
34
34
  name.should == '311-2'
35
35
  end
36
+ it 'finds same category nationwide when census region is not present' do
37
+ MecsRatio.find_by_naics_code_and_census_region_number('311221', 5).
38
+ name.should == '311221-'
39
+ end
40
+ it 'looks nationwide and at parent codes if energy per dollar of shipments is missing' do
41
+ MecsRatio.find_by_naics_code_and_census_region_number('313', 4).
42
+ name.should == '313-'
43
+ end
36
44
  it 'finds a parent category rather than a sibling category' do
37
45
  MecsRatio.find_by_naics_code_and_census_region_number('311225', 2).
38
46
  name.should == '3112-2'
@@ -6,7 +6,7 @@ describe Naics2002Naics2007Concordance do
6
6
  Naics2002Naics2007Concordance.auto_upgrade!
7
7
  end
8
8
 
9
- describe "when importing data", :slow => true do
9
+ describe "when importing data", :data_miner => true do
10
10
  before do
11
11
  require 'earth/industry/naics_2002_naics_2007_concordance/data_miner'
12
12
  end
@@ -6,7 +6,7 @@ describe Naics2002Sic1987Concordance do
6
6
  Naics2002Sic1987Concordance.auto_upgrade!
7
7
  end
8
8
 
9
- describe "when importing data", :slow => true do
9
+ describe "when importing data", :data_miner => true do
10
10
  before do
11
11
  require 'earth/industry/naics_2002_sic_1987_concordance/data_miner'
12
12
  end
@@ -6,7 +6,7 @@ describe Naics2002 do
6
6
  Naics2002.auto_upgrade!
7
7
  end
8
8
 
9
- describe "when importing data", :slow => true do
9
+ describe "when importing data", :data_miner => true do
10
10
  before do
11
11
  require 'earth/industry/naics_2002/data_miner'
12
12
  end
@@ -6,7 +6,7 @@ describe Naics2007 do
6
6
  Naics2007.auto_upgrade!
7
7
  end
8
8
 
9
- describe "when importing data", :slow => true do
9
+ describe "when importing data", :data_miner => true do
10
10
  before do
11
11
  require 'earth/industry/naics_2007/data_miner'
12
12
  end
@@ -6,7 +6,7 @@ describe Sic1987 do
6
6
  Sic1987.auto_upgrade!
7
7
  end
8
8
 
9
- describe "when importing data", :slow => true do
9
+ describe "when importing data", :data_miner => true do
10
10
  before do
11
11
  require 'earth/industry/sic_1987/data_miner'
12
12
  end
@@ -27,11 +27,6 @@ describe Sic1987 do
27
27
  before do
28
28
  require 'earth/industry/naics_2002'
29
29
  require 'earth/industry/naics_2002_sic_1987_concordance'
30
-
31
- require 'earth/industry/naics_2007'
32
- require 'earth/industry/naics_2002_naics_2007_concordance'
33
-
34
- require 'earth/industry/industry'
35
30
  end
36
31
 
37
32
  it "can be translated to a NAICS 2002 code" do
@@ -42,14 +37,5 @@ describe Sic1987 do
42
37
  Sic1987.find(sic).naics_2002.map(&:code).sort.should == naics
43
38
  end
44
39
  end
45
-
46
- it "can be translated to an industry code" do
47
- {
48
- '0119' => %w{ 111120 111130 111150 111191 111199 },
49
- '0131' => %w{ 111920 },
50
- }.each do |sic, industries|
51
- Sic1987.find(sic).industries.map(&:naics_code).sort.should == industries
52
- end
53
- end
54
40
  end
55
41
  end
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  require 'spec_helper'
2
4
  require 'earth/locality/country'
3
5
 
@@ -6,7 +8,7 @@ describe Country do
6
8
  Country.auto_upgrade!
7
9
  end
8
10
 
9
- describe 'import', :slow => true do
11
+ describe 'import', :data_miner => true do
10
12
  before do
11
13
  require 'earth/locality/country/data_miner'
12
14
  end
@@ -18,6 +20,11 @@ describe Country do
18
20
  end
19
21
 
20
22
  describe 'verify imported data', :sanity => true do
23
+ it 'uses UTF-8 encoding' do
24
+ Country.find('AX').name.should == "Åland Islands"
25
+ Country.find('CI').name.should == "Côte d'Ivoire"
26
+ end
27
+
21
28
  it 'has valid electricity emission factor and electricity loss factor for most countries' do
22
29
  Country.where('electricity_emission_factor IS NOT NULL').count.should == 136
23
30
  Country.where(:electricity_emission_factor_units => 'kilograms_co2e_per_kilowatt_hour').count.should == 136
@@ -27,19 +34,29 @@ describe Country do
27
34
  Country.minimum(:electricity_loss_factor).should >= 0.0
28
35
  Country.maximum(:electricity_loss_factor).should < 0.3
29
36
 
30
- Country.find('US').electricity_emission_factor.should be_within(0.00001).of(0.58946)
31
- Country.find('US').electricity_emission_factor_units.should == 'kilograms_co2e_per_kilowatt_hour'
32
- Country.find('US').electricity_loss_factor.should be_within(0.001).of(0.062)
37
+ us = Country.united_states
38
+ us.electricity_emission_factor.should be_within(0.00001).of(0.58946)
39
+ us.electricity_emission_factor_units.should == 'kilograms_co2e_per_kilowatt_hour'
40
+ us.electricity_loss_factor.should be_within(0.001).of(0.062)
33
41
 
34
- Country.find('GB').electricity_emission_factor.should be_within(0.00001).of(0.51020)
35
- Country.find('GB').electricity_emission_factor_units.should == 'kilograms_co2e_per_kilowatt_hour'
36
- Country.find('GB').electricity_loss_factor.should be_within(0.001).of(0.073)
42
+ uk = Country.find 'GB'
43
+ uk.electricity_emission_factor.should be_within(0.00001).of(0.51020)
44
+ uk.electricity_emission_factor_units.should == 'kilograms_co2e_per_kilowatt_hour'
45
+ uk.electricity_loss_factor.should be_within(0.001).of(0.073)
37
46
  end
38
47
 
39
48
  it 'has fallback electricity emission factor and electricity loss factor' do
40
- Country.fallback.electricity_emission_factor.should be_within(0.00001).of(0.62609)
41
- Country.fallback.electricity_emission_factor_units.should == 'kilograms_co2e_per_kilowatt_hour'
42
- Country.fallback.electricity_loss_factor.should be_within(0.001).of(0.096)
49
+ fallback = Country.fallback
50
+ fallback.electricity_emission_factor.should be_within(0.00001).of(0.62609)
51
+ fallback.electricity_emission_factor_units.should == 'kilograms_co2e_per_kilowatt_hour'
52
+ fallback.electricity_loss_factor.should be_within(0.001).of(0.096)
53
+ end
54
+
55
+ it 'has lodging data for the US' do
56
+ us = Country.united_states
57
+ us.lodging_occupancy_rate.should be_within(0.001).of(0.601)
58
+ us.lodging_natural_gas_intensity.should be_within(0.00001).of(1.93316)
59
+ us.lodging_natural_gas_intensity_units.should == 'cubic_metres_per_occupied_room_night'
43
60
  end
44
61
  end
45
62
 
@@ -6,7 +6,7 @@ describe State do
6
6
  State.auto_upgrade!
7
7
  end
8
8
 
9
- describe 'when importing data', :slow => true do
9
+ describe 'when importing data', :data_miner => true do
10
10
  before do
11
11
  require 'earth/locality/state/data_miner'
12
12
  end
@@ -6,7 +6,7 @@ describe ZipCode do
6
6
  ZipCode.auto_upgrade!
7
7
  end
8
8
 
9
- describe 'when importing data', :slow => true do
9
+ describe 'when importing data', :data_miner => true do
10
10
  before do
11
11
  require 'earth/locality/zip_code/data_miner'
12
12
  end
data/spec/spec_helper.rb CHANGED
@@ -13,7 +13,7 @@ include Integration
13
13
 
14
14
  case ENV['EARTH_DB_ADAPTER']
15
15
  when 'mysql'
16
- adapter = 'mysql'
16
+ adapter = 'mysql2'
17
17
  database = 'test_earth'
18
18
  username = 'root'
19
19
  password = 'password'
@@ -45,6 +45,6 @@ DataMiner.logger = logger
45
45
 
46
46
  RSpec.configure do |c|
47
47
  unless ENV['ALL'] == 'true'
48
- c.filter_run_excluding :slow => true
48
+ c.filter_run_excluding :data_miner => true
49
49
  end
50
50
  end
metadata CHANGED
@@ -1,295 +1,292 @@
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: 0.11.14
4
5
  prerelease:
5
- version: 0.11.13
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-03-05 00:00:00 Z
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
14
+ date: 2012-03-26 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
18
17
  name: activerecord
19
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &2165356220 !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: *2165356220
27
+ - !ruby/object:Gem::Dependency
29
28
  name: activesupport
30
- requirement: &id002 !ruby/object:Gem::Requirement
29
+ requirement: &2165355780 !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: *2165355780
38
+ - !ruby/object:Gem::Dependency
40
39
  name: cohort_analysis
41
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ requirement: &2165355360 !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: *2165355360
49
+ - !ruby/object:Gem::Dependency
51
50
  name: conversions
52
- requirement: &id004 !ruby/object:Gem::Requirement
51
+ requirement: &2165370800 !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: *2165370800
60
+ - !ruby/object:Gem::Dependency
62
61
  name: data_miner
63
- requirement: &id005 !ruby/object:Gem::Requirement
62
+ requirement: &2165370300 !ruby/object:Gem::Requirement
64
63
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: "1.3"
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '1.3'
69
68
  type: :runtime
70
69
  prerelease: false
71
- version_requirements: *id005
72
- - !ruby/object:Gem::Dependency
70
+ version_requirements: *2165370300
71
+ - !ruby/object:Gem::Dependency
73
72
  name: falls_back_on
74
- requirement: &id006 !ruby/object:Gem::Requirement
73
+ requirement: &2165369760 !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: *2165369760
82
+ - !ruby/object:Gem::Dependency
84
83
  name: fixed_width-multibyte
85
- requirement: &id007 !ruby/object:Gem::Requirement
84
+ requirement: &2165369300 !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: *2165369300
93
+ - !ruby/object:Gem::Dependency
95
94
  name: fuzzy_match
96
- requirement: &id008 !ruby/object:Gem::Requirement
95
+ requirement: &2165368800 !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.1.0
102
101
  type: :runtime
103
102
  prerelease: false
104
- version_requirements: *id008
105
- - !ruby/object:Gem::Dependency
103
+ version_requirements: *2165368800
104
+ - !ruby/object:Gem::Dependency
106
105
  name: geokit
107
- requirement: &id009 !ruby/object:Gem::Requirement
106
+ requirement: &2165368360 !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: mini_record-compat
118
- requirement: &id010 !ruby/object:Gem::Requirement
114
+ version_requirements: *2165368360
115
+ - !ruby/object:Gem::Dependency
116
+ name: active_record_inline_schema
117
+ requirement: &2165367900 !ruby/object:Gem::Requirement
119
118
  none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: "0"
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
124
123
  type: :runtime
125
124
  prerelease: false
126
- version_requirements: *id010
127
- - !ruby/object:Gem::Dependency
125
+ version_requirements: *2165367900
126
+ - !ruby/object:Gem::Dependency
128
127
  name: remote_table
129
- requirement: &id011 !ruby/object:Gem::Requirement
128
+ requirement: &2165367380 !ruby/object:Gem::Requirement
130
129
  none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
134
133
  version: 1.3.0
135
134
  type: :runtime
136
135
  prerelease: false
137
- version_requirements: *id011
138
- - !ruby/object:Gem::Dependency
136
+ version_requirements: *2165367380
137
+ - !ruby/object:Gem::Dependency
139
138
  name: table_warnings
140
- requirement: &id012 !ruby/object:Gem::Requirement
139
+ requirement: &2165366880 !ruby/object:Gem::Requirement
141
140
  none: false
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
141
+ requirements:
142
+ - - ! '>='
143
+ - !ruby/object:Gem::Version
145
144
  version: 0.0.6
146
145
  type: :runtime
147
146
  prerelease: false
148
- version_requirements: *id012
149
- - !ruby/object:Gem::Dependency
147
+ version_requirements: *2165366880
148
+ - !ruby/object:Gem::Dependency
150
149
  name: to_regexp
151
- requirement: &id013 !ruby/object:Gem::Requirement
150
+ requirement: &2165366500 !ruby/object:Gem::Requirement
152
151
  none: false
153
- requirements:
154
- - - ">="
155
- - !ruby/object:Gem::Version
156
- version: "0"
152
+ requirements:
153
+ - - ! '>='
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
157
156
  type: :runtime
158
157
  prerelease: false
159
- version_requirements: *id013
160
- - !ruby/object:Gem::Dependency
158
+ version_requirements: *2165366500
159
+ - !ruby/object:Gem::Dependency
161
160
  name: weighted_average
162
- requirement: &id014 !ruby/object:Gem::Requirement
161
+ requirement: &2165365960 !ruby/object:Gem::Requirement
163
162
  none: false
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
167
166
  version: 1.0.2
168
167
  type: :runtime
169
168
  prerelease: false
170
- version_requirements: *id014
171
- - !ruby/object:Gem::Dependency
169
+ version_requirements: *2165365960
170
+ - !ruby/object:Gem::Dependency
172
171
  name: bueller
173
- requirement: &id015 !ruby/object:Gem::Requirement
172
+ requirement: &2165365500 !ruby/object:Gem::Requirement
174
173
  none: false
175
- requirements:
176
- - - ">="
177
- - !ruby/object:Gem::Version
178
- version: "0"
174
+ requirements:
175
+ - - ! '>='
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
179
178
  type: :development
180
179
  prerelease: false
181
- version_requirements: *id015
182
- - !ruby/object:Gem::Dependency
180
+ version_requirements: *2165365500
181
+ - !ruby/object:Gem::Dependency
183
182
  name: bundler
184
- requirement: &id016 !ruby/object:Gem::Requirement
183
+ requirement: &2165365020 !ruby/object:Gem::Requirement
185
184
  none: false
186
- requirements:
187
- - - ">="
188
- - !ruby/object:Gem::Version
189
- version: "0"
185
+ requirements:
186
+ - - ! '>='
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
190
189
  type: :development
191
190
  prerelease: false
192
- version_requirements: *id016
193
- - !ruby/object:Gem::Dependency
191
+ version_requirements: *2165365020
192
+ - !ruby/object:Gem::Dependency
194
193
  name: charisma
195
- requirement: &id017 !ruby/object:Gem::Requirement
194
+ requirement: &2165364520 !ruby/object:Gem::Requirement
196
195
  none: false
197
- requirements:
198
- - - ">="
199
- - !ruby/object:Gem::Version
200
- version: "0"
196
+ requirements:
197
+ - - ! '>='
198
+ - !ruby/object:Gem::Version
199
+ version: '0'
201
200
  type: :development
202
201
  prerelease: false
203
- version_requirements: *id017
204
- - !ruby/object:Gem::Dependency
202
+ version_requirements: *2165364520
203
+ - !ruby/object:Gem::Dependency
205
204
  name: cucumber
206
- requirement: &id018 !ruby/object:Gem::Requirement
205
+ requirement: &2165364020 !ruby/object:Gem::Requirement
207
206
  none: false
208
- requirements:
209
- - - ">="
210
- - !ruby/object:Gem::Version
211
- version: "0"
207
+ requirements:
208
+ - - ! '>='
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
212
211
  type: :development
213
212
  prerelease: false
214
- version_requirements: *id018
215
- - !ruby/object:Gem::Dependency
216
- name: mysql
217
- requirement: &id019 !ruby/object:Gem::Requirement
213
+ version_requirements: *2165364020
214
+ - !ruby/object:Gem::Dependency
215
+ name: mysql2
216
+ requirement: &2165379760 !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: *2165379760
225
+ - !ruby/object:Gem::Dependency
227
226
  name: pg
228
- requirement: &id020 !ruby/object:Gem::Requirement
227
+ requirement: &2165379300 !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: *2165379300
236
+ - !ruby/object:Gem::Dependency
238
237
  name: rake
239
- requirement: &id021 !ruby/object:Gem::Requirement
238
+ requirement: &2165378880 !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: *2165378880
247
+ - !ruby/object:Gem::Dependency
249
248
  name: rdoc
250
- requirement: &id022 !ruby/object:Gem::Requirement
249
+ requirement: &2165378460 !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: *2165378460
258
+ - !ruby/object:Gem::Dependency
260
259
  name: rspec
261
- requirement: &id023 !ruby/object:Gem::Requirement
260
+ requirement: &2165378040 !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: *2165378040
269
+ - !ruby/object:Gem::Dependency
271
270
  name: sqlite3-ruby
272
- requirement: &id024 !ruby/object:Gem::Requirement
271
+ requirement: &2165377620 !ruby/object:Gem::Requirement
273
272
  none: false
274
- requirements:
275
- - - ">="
276
- - !ruby/object:Gem::Version
277
- version: "0"
273
+ requirements:
274
+ - - ! '>='
275
+ - !ruby/object:Gem::Version
276
+ version: '0'
278
277
  type: :development
279
278
  prerelease: false
280
- version_requirements: *id024
279
+ version_requirements: *2165377620
281
280
  description: An earth-simulation environment with ActiveRecord models and data
282
281
  email: andy@rossmeissl.net
283
- executables:
282
+ executables:
284
283
  - earth_tester.rb
285
284
  extensions: []
286
-
287
- extra_rdoc_files:
285
+ extra_rdoc_files:
288
286
  - LICENSE
289
287
  - LICENSE-PREAMBLE
290
288
  - README.markdown
291
- files:
292
- - .document
289
+ files:
293
290
  - .gitignore
294
291
  - Gemfile
295
292
  - Guardfile
@@ -613,6 +610,8 @@ files:
613
610
  - spec/earth/bus/bus_fuel_control_spec.rb
614
611
  - spec/earth/bus/bus_fuel_year_control_spec.rb
615
612
  - spec/earth/fuel/fuel_spec.rb
613
+ - spec/earth/hospitality/commercial_building_energy_consumption_survey_response_spec.rb
614
+ - spec/earth/hospitality/country_lodging_class_spec.rb
616
615
  - spec/earth/industry/cbecs_energy_intensity_spec.rb
617
616
  - spec/earth/industry/industry_spec.rb
618
617
  - spec/earth/industry/mecs_energy_spec.rb
@@ -676,38 +675,30 @@ files:
676
675
  - vendor/geokit-rails/test/test_helper.rb
677
676
  homepage: https://github.com/brighterplanet/earth
678
677
  licenses: []
679
-
680
678
  post_install_message:
681
- rdoc_options:
679
+ rdoc_options:
682
680
  - --charset=UTF-8
683
- require_paths:
681
+ require_paths:
684
682
  - lib
685
- required_ruby_version: !ruby/object:Gem::Requirement
683
+ required_ruby_version: !ruby/object:Gem::Requirement
686
684
  none: false
687
- requirements:
688
- - - ">="
689
- - !ruby/object:Gem::Version
690
- hash: -2326149133598914243
691
- segments:
692
- - 0
693
- version: "0"
694
- required_rubygems_version: !ruby/object:Gem::Requirement
685
+ requirements:
686
+ - - ! '>='
687
+ - !ruby/object:Gem::Version
688
+ version: '0'
689
+ required_rubygems_version: !ruby/object:Gem::Requirement
695
690
  none: false
696
- requirements:
697
- - - ">="
698
- - !ruby/object:Gem::Version
699
- hash: -2326149133598914243
700
- segments:
701
- - 0
702
- version: "0"
691
+ requirements:
692
+ - - ! '>='
693
+ - !ruby/object:Gem::Version
694
+ version: '0'
703
695
  requirements: []
704
-
705
696
  rubyforge_project:
706
697
  rubygems_version: 1.8.15
707
698
  signing_key:
708
699
  specification_version: 3
709
700
  summary: Land, sky, and sea
710
- test_files:
701
+ test_files:
711
702
  - features/automobile_fuel.feature
712
703
  - features/automobile_make.feature
713
704
  - features/automobile_make_fleet_year.feature
@@ -797,6 +788,8 @@ test_files:
797
788
  - spec/earth/bus/bus_fuel_control_spec.rb
798
789
  - spec/earth/bus/bus_fuel_year_control_spec.rb
799
790
  - spec/earth/fuel/fuel_spec.rb
791
+ - spec/earth/hospitality/commercial_building_energy_consumption_survey_response_spec.rb
792
+ - spec/earth/hospitality/country_lodging_class_spec.rb
800
793
  - spec/earth/industry/cbecs_energy_intensity_spec.rb
801
794
  - spec/earth/industry/industry_spec.rb
802
795
  - spec/earth/industry/mecs_energy_spec.rb
@@ -813,3 +806,4 @@ test_files:
813
806
  - spec/earth_spec.rb
814
807
  - spec/spec_helper.rb
815
808
  - spec/support/integration.rb
809
+ has_rdoc: