earth 0.11.16 → 0.11.17
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +15 -0
- data/Gemfile +2 -2
- data/bin/earth_tester.rb +3 -1
- data/earth.gemspec +4 -8
- data/errata/aircraft/faa_errata.csv +375 -0
- data/errata/airport/openflights_errata.csv +1 -0
- data/errata/automobile_make_model_year_variant/feg_errata.csv +283 -0
- data/errata/automobile_make_year_fleet/cafe_errata.csv +1 -0
- data/errata/bts_aircraft/bts_errata.csv +68 -0
- data/errata/country/wri_errata.csv +25 -0
- data/errata/flight_segment/bts_errata.csv +1 -0
- data/errata/readme +3 -0
- data/features/step_definitions/data_steps.rb +1 -1
- data/lib/earth.rb +40 -75
- data/lib/earth/air/aircraft.rb +3 -1
- data/lib/earth/air/aircraft/data_miner.rb +2 -2
- data/lib/earth/air/airport.rb +1 -1
- data/lib/earth/air/airport/data_miner.rb +12 -32
- data/lib/earth/air/bts_aircraft/data_miner.rb +1 -1
- data/lib/earth/air/flight_segment/data_miner.rb +6 -7
- data/lib/earth/automobile/automobile_make_model_year/data_miner.rb +1 -1
- data/lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb +21 -42
- data/lib/earth/automobile/automobile_make_year_fleet/data_miner.rb +4 -4
- data/lib/earth/automobile/automobile_type_fuel_year/data_miner.rb +8 -8
- data/lib/earth/automobile/automobile_type_fuel_year_age/data_miner.rb +24 -24
- data/lib/earth/fuel/fuel/data_miner.rb +2 -2
- data/lib/earth/fuel/fuel_price/data_miner.rb +1 -1
- data/lib/earth/industry/cbecs_energy_intensity/data_miner.rb +1 -1
- data/lib/earth/industry/naics_2002_naics_2007_concordance/data_miner.rb +3 -3
- data/lib/earth/industry/naics_2002_sic_1987_concordance/data_miner.rb +4 -4
- data/lib/earth/industry/sic_1987/data_miner.rb +3 -3
- data/lib/earth/locality/census_region/data_miner.rb +1 -1
- data/lib/earth/locality/country/data_miner.rb +2 -2
- data/lib/earth/locality/egrid_region/data_miner.rb +1 -1
- data/lib/earth/locality/egrid_subregion/data_miner.rb +1 -1
- data/lib/earth/locality/state/data_miner.rb +2 -2
- data/lib/earth/locality/zip_code.rb +1 -1
- data/lib/earth/pet/breed/data_miner.rb +1 -1
- data/lib/earth/pet/breed_gender/data_miner.rb +2 -2
- data/lib/earth/pet/gender/data_miner.rb +1 -1
- data/lib/earth/rail/country_rail_class/data_miner.rb +1 -1
- data/lib/earth/rail/country_rail_traction/data_miner.rb +1 -1
- data/lib/earth/rail/country_rail_traction_class/data_miner.rb +1 -1
- data/lib/earth/rail/national_transit_database_record/data_miner.rb +3 -3
- data/lib/earth/residence/residence_fuel_price/data_miner.rb +5 -5
- data/lib/earth/residence/residential_energy_consumption_survey_response/data_miner.rb +9 -9
- data/lib/earth/version.rb +1 -1
- data/spec/earth/air/aircraft_spec.rb +11 -5
- data/spec/earth/air/airport_spec.rb +40 -0
- data/spec/earth/air/bts_aircraft_spec.rb +19 -0
- data/spec/earth/air/flight_segment_spec.rb +49 -0
- data/spec/earth/automobile/automobile_make_model_year_variant_spec.rb +55 -0
- data/spec/earth/automobile/automobile_make_year_fleet_spec.rb +37 -0
- data/spec/earth/locality/country_spec.rb +4 -0
- metadata +198 -172
- data/features/automobile_make_fleet_year.feature +0 -34
- data/features/automobile_make_model_year_variant.feature +0 -46
- data/features/support/imports/automobile_fuel_bad.csv +0 -3
- data/features/support/imports/automobile_fuel_good.csv +0 -3
- data/features/support/imports/automobile_make_bad.csv +0 -3
- data/features/support/imports/automobile_make_fleet_year_bad.csv +0 -2
- data/features/support/imports/automobile_make_fleet_year_good.csv +0 -2
- data/features/support/imports/automobile_make_good.csv +0 -3
- data/features/support/imports/automobile_make_model_bad.csv +0 -3
- data/features/support/imports/automobile_make_model_good.csv +0 -3
- data/features/support/imports/automobile_make_model_year_bad.csv +0 -3
- data/features/support/imports/automobile_make_model_year_good.csv +0 -3
- data/features/support/imports/automobile_make_model_year_variant_bad.csv +0 -3
- data/features/support/imports/automobile_make_model_year_variant_good.csv +0 -3
- data/features/support/imports/automobile_make_year_bad.csv +0 -3
- data/features/support/imports/automobile_make_year_good.csv +0 -3
- data/features/support/imports/automobile_size_class_bad.csv +0 -3
- data/features/support/imports/automobile_size_class_good.csv +0 -3
- data/features/support/imports/automobile_size_class_year_bad.csv +0 -2
- data/features/support/imports/automobile_size_class_year_good.csv +0 -2
- data/features/support/imports/automobile_type_fuel_age_bad.csv +0 -3
- data/features/support/imports/automobile_type_fuel_age_good.csv +0 -3
- data/features/support/imports/automobile_type_fuel_control_bad.csv +0 -3
- data/features/support/imports/automobile_type_fuel_control_good.csv +0 -3
- data/features/support/imports/automobile_type_fuel_year_age_bad.csv +0 -2
- data/features/support/imports/automobile_type_fuel_year_age_good.csv +0 -2
- data/features/support/imports/automobile_type_fuel_year_bad.csv +0 -2
- data/features/support/imports/automobile_type_fuel_year_control_bad.csv +0 -2
- data/features/support/imports/automobile_type_fuel_year_control_good.csv +0 -2
- data/features/support/imports/automobile_type_fuel_year_good.csv +0 -2
- data/features/support/imports/automobile_type_year_bad.csv +0 -2
- data/features/support/imports/automobile_type_year_good.csv +0 -2
- data/features/support/imports/bus_class_bad.csv +0 -2
- data/features/support/imports/bus_class_good.csv +0 -2
- data/features/support/imports/bus_fuel_bad.csv +0 -3
- data/features/support/imports/bus_fuel_good.csv +0 -3
- data/features/support/imports/carrier_bad.csv +0 -3
- data/features/support/imports/carrier_good.csv +0 -3
- data/features/support/imports/carrier_mode_bad.csv +0 -2
- data/features/support/imports/carrier_mode_good.csv +0 -2
- data/features/support/imports/computation_carrier_bad.csv +0 -3
- data/features/support/imports/computation_carrier_good.csv +0 -3
- data/features/support/imports/computation_carrier_instance_class_bad.csv +0 -2
- data/features/support/imports/computation_carrier_instance_class_good.csv +0 -2
- data/features/support/imports/egrid_region_bad.csv +0 -3
- data/features/support/imports/egrid_region_good.csv +0 -3
- data/features/support/imports/egrid_subregion_bad.csv +0 -2
- data/features/support/imports/egrid_subregion_good.csv +0 -2
- data/features/support/imports/fuel_year_bad.csv +0 -2
- data/features/support/imports/fuel_year_good.csv +0 -2
- data/features/support/imports/greenhouse_gas_bad.csv +0 -2
- data/features/support/imports/greenhouse_gas_good.csv +0 -2
- data/features/support/imports/rail_class_bad.csv +0 -3
- data/features/support/imports/rail_class_good.csv +0 -3
- data/features/support/imports/shipment_mode_bad.csv +0 -3
- data/features/support/imports/shipment_mode_good.csv +0 -3
- data/lib/earth/air/aircraft_instance.rb +0 -11
- data/lib/earth/air/aircraft_instance_seat_class.rb +0 -13
- data/lib/earth/hospitality/lodging_property.rb +0 -33
- data/vendor/clean_find_in_batches/init.rb +0 -35
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'earth/automobile/automobile_make_model_year_variant'
|
3
|
+
|
4
|
+
describe AutomobileMakeModelYearVariant do
|
5
|
+
before :all do
|
6
|
+
AutomobileMakeModelYearVariant.auto_upgrade!
|
7
|
+
end
|
8
|
+
|
9
|
+
describe 'import', :data_miner => true do
|
10
|
+
before do
|
11
|
+
require 'earth/automobile/automobile_make_model_year_variant/data_miner'
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'should import data' do
|
15
|
+
AutomobileMakeModelYearVariant.run_data_miner!
|
16
|
+
AutomobileMakeModelYearVariant.all.count.should == 27638
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe 'verify imported data', :sanity => true do
|
21
|
+
it 'should have variants from multiple years' do
|
22
|
+
AutomobileMakeModelYearVariant.where(:year => 1985).count.should == 1152
|
23
|
+
AutomobileMakeModelYearVariant.where(:year => 1986).count.should == 1183
|
24
|
+
AutomobileMakeModelYearVariant.where(:year => 1987).count.should == 1206
|
25
|
+
AutomobileMakeModelYearVariant.where(:year => 1988).count.should == 1104
|
26
|
+
AutomobileMakeModelYearVariant.where(:year => 1989).count.should == 1137
|
27
|
+
AutomobileMakeModelYearVariant.where(:year => 1990).count.should == 1049
|
28
|
+
AutomobileMakeModelYearVariant.where(:year => 1991).count.should == 1062
|
29
|
+
AutomobileMakeModelYearVariant.where(:year => 1992).count.should == 1055
|
30
|
+
AutomobileMakeModelYearVariant.where(:year => 1993).count.should == 986
|
31
|
+
AutomobileMakeModelYearVariant.where(:year => 1994).count.should == 963
|
32
|
+
AutomobileMakeModelYearVariant.where(:year => 1995).count.should == 917
|
33
|
+
AutomobileMakeModelYearVariant.where(:year => 1996).count.should == 750
|
34
|
+
AutomobileMakeModelYearVariant.where(:year => 1997).count.should == 727
|
35
|
+
AutomobileMakeModelYearVariant.where(:year => 1998).count.should == 790
|
36
|
+
AutomobileMakeModelYearVariant.where(:year => 1999).count.should == 795
|
37
|
+
AutomobileMakeModelYearVariant.where(:year => 2000).count.should == 841
|
38
|
+
AutomobileMakeModelYearVariant.where(:year => 2001).count.should == 849
|
39
|
+
AutomobileMakeModelYearVariant.where(:year => 2002).count.should == 936
|
40
|
+
AutomobileMakeModelYearVariant.where(:year => 2003).count.should == 1027
|
41
|
+
AutomobileMakeModelYearVariant.where(:year => 2004).count.should == 1131
|
42
|
+
AutomobileMakeModelYearVariant.where(:year => 2005).count.should == 1105
|
43
|
+
AutomobileMakeModelYearVariant.where(:year => 2006).count.should == 1076
|
44
|
+
AutomobileMakeModelYearVariant.where(:year => 2007).count.should == 1176
|
45
|
+
AutomobileMakeModelYearVariant.where(:year => 2008).count.should == 1239
|
46
|
+
AutomobileMakeModelYearVariant.where(:year => 2009).count.should == 1180
|
47
|
+
AutomobileMakeModelYearVariant.where(:year => 2010).count.should == 1105
|
48
|
+
AutomobileMakeModelYearVariant.where(:year => 2011).count.should == 1097
|
49
|
+
end
|
50
|
+
|
51
|
+
# fuel type code should be in AutomobileFuel
|
52
|
+
# fuel efficiencies should be > 0
|
53
|
+
# fuel efficiencies should be km / l
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'earth/automobile/automobile_make_year_fleet'
|
3
|
+
|
4
|
+
describe AutomobileMakeYearFleet do
|
5
|
+
before :all do
|
6
|
+
AutomobileMakeYearFleet.auto_upgrade!
|
7
|
+
end
|
8
|
+
|
9
|
+
describe 'import', :data_miner => true do
|
10
|
+
before do
|
11
|
+
require 'earth/automobile/automobile_make_year_fleet/data_miner'
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'should import data' do
|
15
|
+
AutomobileMakeYearFleet.run_data_miner!
|
16
|
+
AutomobileMakeYearFleet.all.count.should == 1349
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe 'verify imported data', :sanity => true do
|
21
|
+
it 'should have year from 1978 to 2011' do
|
22
|
+
AutomobileMakeYearFleet.where('year IS NULL OR year < 1978 OR year > 2011').count.should == 0
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should have volume greater than zero' do
|
26
|
+
AutomobileMakeYearFleet.where('volume IS NULL OR volume <= 0').count.should == 0
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'should have fuel efficiency greater than zero' do
|
30
|
+
AutomobileMakeYearFleet.where('fuel_efficiency IS NULL OR fuel_efficiency <= 0').count.should == 0
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'should have fuel efficiency units of kilometres per litre' do
|
34
|
+
AutomobileMakeYearFleet.where("fuel_efficiency_units IS NULL OR fuel_efficiency_units != 'kilometres_per_litre'").count.should == 0
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -25,6 +25,10 @@ describe Country do
|
|
25
25
|
Country.find('CI').name.should == "Côte d'Ivoire"
|
26
26
|
end
|
27
27
|
|
28
|
+
it 'has degree day data for 175 countries' do
|
29
|
+
Country.where('heating_degree_days IS NOT NULL AND cooling_degree_days IS NOT NULL').count.should == 173
|
30
|
+
end
|
31
|
+
|
28
32
|
it 'has valid electricity emission factor and electricity loss factor for most countries' do
|
29
33
|
Country.where('electricity_emission_factor IS NOT NULL').count.should == 136
|
30
34
|
Country.where(:electricity_emission_factor_units => 'kilograms_co2e_per_kilowatt_hour').count.should == 136
|
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: 0.11.
|
4
|
+
version: 0.11.17
|
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-
|
14
|
+
date: 2012-04-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activerecord
|
18
|
-
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
66
|
+
requirement: !ruby/object:Gem::Requirement
|
52
67
|
none: false
|
53
68
|
requirements:
|
54
69
|
- - ! '>='
|
@@ -56,21 +71,31 @@ dependencies:
|
|
56
71
|
version: '0'
|
57
72
|
type: :runtime
|
58
73
|
prerelease: false
|
59
|
-
version_requirements:
|
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:
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
63
83
|
none: false
|
64
84
|
requirements:
|
65
85
|
- - ! '>='
|
66
86
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
87
|
+
version: '2'
|
68
88
|
type: :runtime
|
69
89
|
prerelease: false
|
70
|
-
version_requirements:
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '2'
|
71
96
|
- !ruby/object:Gem::Dependency
|
72
97
|
name: falls_back_on
|
73
|
-
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:
|
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:
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
85
115
|
none: false
|
86
116
|
requirements:
|
87
117
|
- - ! '>='
|
@@ -89,21 +119,31 @@ dependencies:
|
|
89
119
|
version: '0'
|
90
120
|
type: :runtime
|
91
121
|
prerelease: false
|
92
|
-
version_requirements:
|
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:
|
130
|
+
requirement: !ruby/object:Gem::Requirement
|
96
131
|
none: false
|
97
132
|
requirements:
|
98
133
|
- - ! '>='
|
99
134
|
- !ruby/object:Gem::Version
|
100
|
-
version: 1.
|
135
|
+
version: 1.3.3
|
101
136
|
type: :runtime
|
102
137
|
prerelease: false
|
103
|
-
version_requirements:
|
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:
|
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:
|
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: active_record_inline_schema
|
117
|
-
requirement:
|
162
|
+
requirement: !ruby/object:Gem::Requirement
|
118
163
|
none: false
|
119
164
|
requirements:
|
120
165
|
- - ! '>='
|
@@ -122,10 +167,15 @@ dependencies:
|
|
122
167
|
version: '0'
|
123
168
|
type: :runtime
|
124
169
|
prerelease: false
|
125
|
-
version_requirements:
|
170
|
+
version_requirements: !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ! '>='
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
126
176
|
- !ruby/object:Gem::Dependency
|
127
177
|
name: remote_table
|
128
|
-
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.3.0
|
134
184
|
type: :runtime
|
135
185
|
prerelease: false
|
136
|
-
version_requirements:
|
186
|
+
version_requirements: !ruby/object:Gem::Requirement
|
187
|
+
none: false
|
188
|
+
requirements:
|
189
|
+
- - ! '>='
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: 1.3.0
|
137
192
|
- !ruby/object:Gem::Dependency
|
138
193
|
name: table_warnings
|
139
|
-
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.0.6
|
145
200
|
type: :runtime
|
146
201
|
prerelease: false
|
147
|
-
version_requirements:
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
203
|
+
none: false
|
204
|
+
requirements:
|
205
|
+
- - ! '>='
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: 0.0.6
|
148
208
|
- !ruby/object:Gem::Dependency
|
149
209
|
name: to_regexp
|
150
|
-
requirement:
|
210
|
+
requirement: !ruby/object:Gem::Requirement
|
151
211
|
none: false
|
152
212
|
requirements:
|
153
213
|
- - ! '>='
|
@@ -155,10 +215,15 @@ dependencies:
|
|
155
215
|
version: '0'
|
156
216
|
type: :runtime
|
157
217
|
prerelease: false
|
158
|
-
version_requirements:
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
none: false
|
220
|
+
requirements:
|
221
|
+
- - ! '>='
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '0'
|
159
224
|
- !ruby/object:Gem::Dependency
|
160
225
|
name: weighted_average
|
161
|
-
requirement:
|
226
|
+
requirement: !ruby/object:Gem::Requirement
|
162
227
|
none: false
|
163
228
|
requirements:
|
164
229
|
- - ! '>='
|
@@ -166,10 +231,15 @@ dependencies:
|
|
166
231
|
version: 1.0.2
|
167
232
|
type: :runtime
|
168
233
|
prerelease: false
|
169
|
-
version_requirements:
|
234
|
+
version_requirements: !ruby/object:Gem::Requirement
|
235
|
+
none: false
|
236
|
+
requirements:
|
237
|
+
- - ! '>='
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: 1.0.2
|
170
240
|
- !ruby/object:Gem::Dependency
|
171
241
|
name: bueller
|
172
|
-
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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: mysql2
|
216
|
-
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:
|
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: pg
|
227
|
-
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:
|
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: rake
|
238
|
-
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:
|
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: rdoc
|
249
|
-
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:
|
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: rspec
|
260
|
-
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:
|
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: sqlite3-ruby
|
271
|
-
requirement:
|
386
|
+
requirement: !ruby/object:Gem::Requirement
|
272
387
|
none: false
|
273
388
|
requirements:
|
274
389
|
- - ! '>='
|
@@ -276,9 +391,18 @@ dependencies:
|
|
276
391
|
version: '0'
|
277
392
|
type: :development
|
278
393
|
prerelease: false
|
279
|
-
version_requirements:
|
394
|
+
version_requirements: !ruby/object:Gem::Requirement
|
395
|
+
none: false
|
396
|
+
requirements:
|
397
|
+
- - ! '>='
|
398
|
+
- !ruby/object:Gem::Version
|
399
|
+
version: '0'
|
280
400
|
description: An earth-simulation environment with ActiveRecord models and data
|
281
|
-
email:
|
401
|
+
email:
|
402
|
+
- seamus@abshere.net
|
403
|
+
- dkastner@gmail.com
|
404
|
+
- andy@rossmeissl.net
|
405
|
+
- ijhough@gmail.com
|
282
406
|
executables:
|
283
407
|
- earth_tester.rb
|
284
408
|
extensions: []
|
@@ -288,6 +412,7 @@ extra_rdoc_files:
|
|
288
412
|
- README.markdown
|
289
413
|
files:
|
290
414
|
- .gitignore
|
415
|
+
- CHANGELOG
|
291
416
|
- Gemfile
|
292
417
|
- Guardfile
|
293
418
|
- LICENSE
|
@@ -298,12 +423,18 @@ files:
|
|
298
423
|
- bin/earth_tester.rb
|
299
424
|
- certification_changelog.markdown
|
300
425
|
- earth.gemspec
|
426
|
+
- errata/aircraft/faa_errata.csv
|
427
|
+
- errata/airport/openflights_errata.csv
|
428
|
+
- errata/automobile_make_model_year_variant/feg_errata.csv
|
429
|
+
- errata/automobile_make_year_fleet/cafe_errata.csv
|
430
|
+
- errata/bts_aircraft/bts_errata.csv
|
431
|
+
- errata/country/wri_errata.csv
|
432
|
+
- errata/flight_segment/bts_errata.csv
|
433
|
+
- errata/readme
|
301
434
|
- features/automobile_fuel.feature
|
302
435
|
- features/automobile_make.feature
|
303
|
-
- features/automobile_make_fleet_year.feature
|
304
436
|
- features/automobile_make_model.feature
|
305
437
|
- features/automobile_make_model_year.feature
|
306
|
-
- features/automobile_make_model_year_variant.feature
|
307
438
|
- features/automobile_make_year.feature
|
308
439
|
- features/automobile_size_class.feature
|
309
440
|
- features/automobile_size_class_year.feature
|
@@ -326,66 +457,10 @@ files:
|
|
326
457
|
- features/shipment_mode.feature
|
327
458
|
- features/step_definitions/data_steps.rb
|
328
459
|
- features/support/env.rb
|
329
|
-
- features/support/imports/automobile_fuel_bad.csv
|
330
|
-
- features/support/imports/automobile_fuel_good.csv
|
331
|
-
- features/support/imports/automobile_make_bad.csv
|
332
|
-
- features/support/imports/automobile_make_fleet_year_bad.csv
|
333
|
-
- features/support/imports/automobile_make_fleet_year_good.csv
|
334
|
-
- features/support/imports/automobile_make_good.csv
|
335
|
-
- features/support/imports/automobile_make_model_bad.csv
|
336
|
-
- features/support/imports/automobile_make_model_good.csv
|
337
|
-
- features/support/imports/automobile_make_model_year_bad.csv
|
338
|
-
- features/support/imports/automobile_make_model_year_good.csv
|
339
|
-
- features/support/imports/automobile_make_model_year_variant_bad.csv
|
340
|
-
- features/support/imports/automobile_make_model_year_variant_good.csv
|
341
|
-
- features/support/imports/automobile_make_year_bad.csv
|
342
|
-
- features/support/imports/automobile_make_year_good.csv
|
343
|
-
- features/support/imports/automobile_size_class_bad.csv
|
344
|
-
- features/support/imports/automobile_size_class_good.csv
|
345
|
-
- features/support/imports/automobile_size_class_year_bad.csv
|
346
|
-
- features/support/imports/automobile_size_class_year_good.csv
|
347
|
-
- features/support/imports/automobile_type_fuel_age_bad.csv
|
348
|
-
- features/support/imports/automobile_type_fuel_age_good.csv
|
349
|
-
- features/support/imports/automobile_type_fuel_control_bad.csv
|
350
|
-
- features/support/imports/automobile_type_fuel_control_good.csv
|
351
|
-
- features/support/imports/automobile_type_fuel_year_age_bad.csv
|
352
|
-
- features/support/imports/automobile_type_fuel_year_age_good.csv
|
353
|
-
- features/support/imports/automobile_type_fuel_year_bad.csv
|
354
|
-
- features/support/imports/automobile_type_fuel_year_control_bad.csv
|
355
|
-
- features/support/imports/automobile_type_fuel_year_control_good.csv
|
356
|
-
- features/support/imports/automobile_type_fuel_year_good.csv
|
357
|
-
- features/support/imports/automobile_type_year_bad.csv
|
358
|
-
- features/support/imports/automobile_type_year_good.csv
|
359
|
-
- features/support/imports/bus_class_bad.csv
|
360
|
-
- features/support/imports/bus_class_good.csv
|
361
|
-
- features/support/imports/bus_fuel_bad.csv
|
362
|
-
- features/support/imports/bus_fuel_good.csv
|
363
|
-
- features/support/imports/carrier_bad.csv
|
364
|
-
- features/support/imports/carrier_good.csv
|
365
|
-
- features/support/imports/carrier_mode_bad.csv
|
366
|
-
- features/support/imports/carrier_mode_good.csv
|
367
|
-
- features/support/imports/computation_carrier_bad.csv
|
368
|
-
- features/support/imports/computation_carrier_good.csv
|
369
|
-
- features/support/imports/computation_carrier_instance_class_bad.csv
|
370
|
-
- features/support/imports/computation_carrier_instance_class_good.csv
|
371
|
-
- features/support/imports/egrid_region_bad.csv
|
372
|
-
- features/support/imports/egrid_region_good.csv
|
373
|
-
- features/support/imports/egrid_subregion_bad.csv
|
374
|
-
- features/support/imports/egrid_subregion_good.csv
|
375
|
-
- features/support/imports/fuel_year_bad.csv
|
376
|
-
- features/support/imports/fuel_year_good.csv
|
377
|
-
- features/support/imports/greenhouse_gas_bad.csv
|
378
|
-
- features/support/imports/greenhouse_gas_good.csv
|
379
|
-
- features/support/imports/rail_class_bad.csv
|
380
|
-
- features/support/imports/rail_class_good.csv
|
381
|
-
- features/support/imports/shipment_mode_bad.csv
|
382
|
-
- features/support/imports/shipment_mode_good.csv
|
383
460
|
- lib/earth.rb
|
384
461
|
- lib/earth/air.rb
|
385
462
|
- lib/earth/air/aircraft.rb
|
386
463
|
- lib/earth/air/aircraft/data_miner.rb
|
387
|
-
- lib/earth/air/aircraft_instance.rb
|
388
|
-
- lib/earth/air/aircraft_instance_seat_class.rb
|
389
464
|
- lib/earth/air/airline.rb
|
390
465
|
- lib/earth/air/airline/data_miner.rb
|
391
466
|
- lib/earth/air/airport.rb
|
@@ -484,7 +559,6 @@ files:
|
|
484
559
|
- lib/earth/hospitality/data_miner.rb
|
485
560
|
- lib/earth/hospitality/lodging_class.rb
|
486
561
|
- lib/earth/hospitality/lodging_class/data_miner.rb
|
487
|
-
- lib/earth/hospitality/lodging_property.rb
|
488
562
|
- lib/earth/industry.rb
|
489
563
|
- lib/earth/industry/cbecs_energy_intensity.rb
|
490
564
|
- lib/earth/industry/cbecs_energy_intensity/data_miner.rb
|
@@ -604,8 +678,13 @@ files:
|
|
604
678
|
- lib/earth/utils.rb
|
605
679
|
- lib/earth/version.rb
|
606
680
|
- spec/earth/air/aircraft_spec.rb
|
681
|
+
- spec/earth/air/airport_spec.rb
|
682
|
+
- spec/earth/air/bts_aircraft_spec.rb
|
607
683
|
- spec/earth/air/flight_distance_class_spec.rb
|
684
|
+
- spec/earth/air/flight_segment_spec.rb
|
608
685
|
- spec/earth/automobile/automobile_fuel_spec.rb
|
686
|
+
- spec/earth/automobile/automobile_make_model_year_variant_spec.rb
|
687
|
+
- spec/earth/automobile/automobile_make_year_fleet_spec.rb
|
609
688
|
- spec/earth/automobile/automobile_type_fuel_year_age_spec.rb
|
610
689
|
- spec/earth/bus/bus_class_spec.rb
|
611
690
|
- spec/earth/bus/bus_fuel_control_spec.rb
|
@@ -629,7 +708,6 @@ files:
|
|
629
708
|
- spec/earth_spec.rb
|
630
709
|
- spec/spec_helper.rb
|
631
710
|
- spec/support/integration.rb
|
632
|
-
- vendor/clean_find_in_batches/init.rb
|
633
711
|
- vendor/geokit-rails/.gitignore
|
634
712
|
- vendor/geokit-rails/CHANGELOG.rdoc
|
635
713
|
- vendor/geokit-rails/MIT-LICENSE
|
@@ -677,8 +755,7 @@ files:
|
|
677
755
|
homepage: https://github.com/brighterplanet/earth
|
678
756
|
licenses: []
|
679
757
|
post_install_message:
|
680
|
-
rdoc_options:
|
681
|
-
- --charset=UTF-8
|
758
|
+
rdoc_options: []
|
682
759
|
require_paths:
|
683
760
|
- lib
|
684
761
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -695,17 +772,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
695
772
|
version: '0'
|
696
773
|
requirements: []
|
697
774
|
rubyforge_project:
|
698
|
-
rubygems_version: 1.8.
|
775
|
+
rubygems_version: 1.8.21
|
699
776
|
signing_key:
|
700
777
|
specification_version: 3
|
701
778
|
summary: Land, sky, and sea
|
702
779
|
test_files:
|
703
780
|
- features/automobile_fuel.feature
|
704
781
|
- features/automobile_make.feature
|
705
|
-
- features/automobile_make_fleet_year.feature
|
706
782
|
- features/automobile_make_model.feature
|
707
783
|
- features/automobile_make_model_year.feature
|
708
|
-
- features/automobile_make_model_year_variant.feature
|
709
784
|
- features/automobile_make_year.feature
|
710
785
|
- features/automobile_size_class.feature
|
711
786
|
- features/automobile_size_class_year.feature
|
@@ -728,63 +803,14 @@ test_files:
|
|
728
803
|
- features/shipment_mode.feature
|
729
804
|
- features/step_definitions/data_steps.rb
|
730
805
|
- features/support/env.rb
|
731
|
-
- features/support/imports/automobile_fuel_bad.csv
|
732
|
-
- features/support/imports/automobile_fuel_good.csv
|
733
|
-
- features/support/imports/automobile_make_bad.csv
|
734
|
-
- features/support/imports/automobile_make_fleet_year_bad.csv
|
735
|
-
- features/support/imports/automobile_make_fleet_year_good.csv
|
736
|
-
- features/support/imports/automobile_make_good.csv
|
737
|
-
- features/support/imports/automobile_make_model_bad.csv
|
738
|
-
- features/support/imports/automobile_make_model_good.csv
|
739
|
-
- features/support/imports/automobile_make_model_year_bad.csv
|
740
|
-
- features/support/imports/automobile_make_model_year_good.csv
|
741
|
-
- features/support/imports/automobile_make_model_year_variant_bad.csv
|
742
|
-
- features/support/imports/automobile_make_model_year_variant_good.csv
|
743
|
-
- features/support/imports/automobile_make_year_bad.csv
|
744
|
-
- features/support/imports/automobile_make_year_good.csv
|
745
|
-
- features/support/imports/automobile_size_class_bad.csv
|
746
|
-
- features/support/imports/automobile_size_class_good.csv
|
747
|
-
- features/support/imports/automobile_size_class_year_bad.csv
|
748
|
-
- features/support/imports/automobile_size_class_year_good.csv
|
749
|
-
- features/support/imports/automobile_type_fuel_age_bad.csv
|
750
|
-
- features/support/imports/automobile_type_fuel_age_good.csv
|
751
|
-
- features/support/imports/automobile_type_fuel_control_bad.csv
|
752
|
-
- features/support/imports/automobile_type_fuel_control_good.csv
|
753
|
-
- features/support/imports/automobile_type_fuel_year_age_bad.csv
|
754
|
-
- features/support/imports/automobile_type_fuel_year_age_good.csv
|
755
|
-
- features/support/imports/automobile_type_fuel_year_bad.csv
|
756
|
-
- features/support/imports/automobile_type_fuel_year_control_bad.csv
|
757
|
-
- features/support/imports/automobile_type_fuel_year_control_good.csv
|
758
|
-
- features/support/imports/automobile_type_fuel_year_good.csv
|
759
|
-
- features/support/imports/automobile_type_year_bad.csv
|
760
|
-
- features/support/imports/automobile_type_year_good.csv
|
761
|
-
- features/support/imports/bus_class_bad.csv
|
762
|
-
- features/support/imports/bus_class_good.csv
|
763
|
-
- features/support/imports/bus_fuel_bad.csv
|
764
|
-
- features/support/imports/bus_fuel_good.csv
|
765
|
-
- features/support/imports/carrier_bad.csv
|
766
|
-
- features/support/imports/carrier_good.csv
|
767
|
-
- features/support/imports/carrier_mode_bad.csv
|
768
|
-
- features/support/imports/carrier_mode_good.csv
|
769
|
-
- features/support/imports/computation_carrier_bad.csv
|
770
|
-
- features/support/imports/computation_carrier_good.csv
|
771
|
-
- features/support/imports/computation_carrier_instance_class_bad.csv
|
772
|
-
- features/support/imports/computation_carrier_instance_class_good.csv
|
773
|
-
- features/support/imports/egrid_region_bad.csv
|
774
|
-
- features/support/imports/egrid_region_good.csv
|
775
|
-
- features/support/imports/egrid_subregion_bad.csv
|
776
|
-
- features/support/imports/egrid_subregion_good.csv
|
777
|
-
- features/support/imports/fuel_year_bad.csv
|
778
|
-
- features/support/imports/fuel_year_good.csv
|
779
|
-
- features/support/imports/greenhouse_gas_bad.csv
|
780
|
-
- features/support/imports/greenhouse_gas_good.csv
|
781
|
-
- features/support/imports/rail_class_bad.csv
|
782
|
-
- features/support/imports/rail_class_good.csv
|
783
|
-
- features/support/imports/shipment_mode_bad.csv
|
784
|
-
- features/support/imports/shipment_mode_good.csv
|
785
806
|
- spec/earth/air/aircraft_spec.rb
|
807
|
+
- spec/earth/air/airport_spec.rb
|
808
|
+
- spec/earth/air/bts_aircraft_spec.rb
|
786
809
|
- spec/earth/air/flight_distance_class_spec.rb
|
810
|
+
- spec/earth/air/flight_segment_spec.rb
|
787
811
|
- spec/earth/automobile/automobile_fuel_spec.rb
|
812
|
+
- spec/earth/automobile/automobile_make_model_year_variant_spec.rb
|
813
|
+
- spec/earth/automobile/automobile_make_year_fleet_spec.rb
|
788
814
|
- spec/earth/automobile/automobile_type_fuel_year_age_spec.rb
|
789
815
|
- spec/earth/bus/bus_class_spec.rb
|
790
816
|
- spec/earth/bus/bus_fuel_control_spec.rb
|