earth 0.5.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. data/Gemfile +1 -0
  2. data/TODO +2 -0
  3. data/bin/earth_tester.rb +62 -9
  4. data/earth.gemspec +7 -4
  5. data/lib/earth.rb +18 -17
  6. data/lib/earth/air.rb +2 -0
  7. data/lib/earth/air/aircraft.rb +76 -19
  8. data/lib/earth/air/aircraft/data_miner.rb +1 -63
  9. data/lib/earth/air/aircraft_class.rb +48 -12
  10. data/lib/earth/air/aircraft_class/data_miner.rb +3 -46
  11. data/lib/earth/air/aircraft_fuel_use_equation.rb +11 -13
  12. data/lib/earth/air/aircraft_instance.rb +9 -0
  13. data/lib/earth/air/aircraft_instance_seat_class.rb +12 -0
  14. data/lib/earth/air/airline.rb +6 -8
  15. data/lib/earth/air/airline/data_miner.rb +3 -3
  16. data/lib/earth/air/airport.rb +8 -10
  17. data/lib/earth/air/airport/data_miner.rb +1 -1
  18. data/lib/earth/air/bts_aircraft.rb +3 -5
  19. data/lib/earth/air/flight_distance_class.rb +4 -6
  20. data/lib/earth/air/flight_seat_class.rb +5 -7
  21. data/lib/earth/air/flight_segment.rb +58 -42
  22. data/lib/earth/air/flight_segment/data_miner.rb +11 -26
  23. data/lib/earth/automobile.rb +1 -0
  24. data/lib/earth/automobile/automobile_fuel.rb +78 -25
  25. data/lib/earth/automobile/automobile_fuel/data_miner.rb +5 -72
  26. data/lib/earth/automobile/automobile_make.rb +14 -6
  27. data/lib/earth/automobile/automobile_make/data_miner.rb +20 -35
  28. data/lib/earth/automobile/automobile_make_fleet_year.rb +39 -10
  29. data/lib/earth/automobile/automobile_make_fleet_year/data_miner.rb +0 -29
  30. data/lib/earth/automobile/automobile_make_model.rb +30 -9
  31. data/lib/earth/automobile/automobile_make_model/data_miner.rb +11 -26
  32. data/lib/earth/automobile/automobile_make_model_year.rb +41 -12
  33. data/lib/earth/automobile/automobile_make_model_year/data_miner.rb +14 -34
  34. data/lib/earth/automobile/automobile_make_model_year_variant.rb +56 -38
  35. data/lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb +15 -61
  36. data/lib/earth/automobile/automobile_make_year.rb +15 -8
  37. data/lib/earth/automobile/automobile_make_year/data_miner.rb +17 -51
  38. data/lib/earth/automobile/automobile_size_class.rb +78 -14
  39. data/lib/earth/automobile/automobile_size_class/data_miner.rb +0 -66
  40. data/lib/earth/automobile/automobile_size_class_year.rb +38 -10
  41. data/lib/earth/automobile/automobile_size_class_year/data_miner.rb +0 -30
  42. data/lib/earth/automobile/automobile_type_fuel_age.rb +60 -11
  43. data/lib/earth/automobile/automobile_type_fuel_age/data_miner.rb +10 -65
  44. data/lib/earth/automobile/automobile_type_fuel_control.rb +41 -10
  45. data/lib/earth/automobile/automobile_type_fuel_control/data_miner.rb +0 -33
  46. data/lib/earth/automobile/automobile_type_fuel_year.rb +60 -15
  47. data/lib/earth/automobile/automobile_type_fuel_year/data_miner.rb +1 -52
  48. data/lib/earth/automobile/automobile_type_fuel_year_age.rb +64 -12
  49. data/lib/earth/automobile/automobile_type_fuel_year_age/data_miner.rb +1 -59
  50. data/lib/earth/automobile/automobile_type_fuel_year_control.rb +31 -10
  51. data/lib/earth/automobile/automobile_type_fuel_year_control/data_miner.rb +2 -32
  52. data/lib/earth/automobile/automobile_type_year.rb +51 -10
  53. data/lib/earth/automobile/automobile_type_year/data_miner.rb +1 -43
  54. data/lib/earth/automobile/data_miner.rb +1 -0
  55. data/lib/earth/bus/bus_class.rb +108 -28
  56. data/lib/earth/bus/bus_class/data_miner.rb +0 -88
  57. data/lib/earth/bus/bus_fuel.rb +83 -15
  58. data/lib/earth/bus/bus_fuel/data_miner.rb +0 -76
  59. data/lib/earth/bus/bus_fuel_control.rb +8 -10
  60. data/lib/earth/bus/bus_fuel_year_control.rb +7 -9
  61. data/lib/earth/bus/bus_fuel_year_control/data_miner.rb +1 -5
  62. data/lib/earth/computation/computation_carrier.rb +11 -5
  63. data/lib/earth/computation/computation_carrier/data_miner.rb +0 -7
  64. data/lib/earth/computation/computation_carrier_instance_class.rb +25 -8
  65. data/lib/earth/computation/computation_carrier_instance_class/data_miner.rb +0 -18
  66. data/lib/earth/computation/computation_carrier_region.rb +5 -7
  67. data/lib/earth/diet/diet_class.rb +14 -16
  68. data/lib/earth/diet/food_group.rb +7 -9
  69. data/lib/earth/fuel/fuel.rb +14 -16
  70. data/lib/earth/fuel/fuel/data_miner.rb +7 -3
  71. data/lib/earth/fuel/fuel_price.rb +4 -6
  72. data/lib/earth/fuel/fuel_type.rb +12 -14
  73. data/lib/earth/fuel/fuel_year.rb +57 -16
  74. data/lib/earth/fuel/fuel_year/data_miner.rb +0 -43
  75. data/lib/earth/fuel/greenhouse_gas.rb +46 -9
  76. data/lib/earth/fuel/greenhouse_gas/data_miner.rb +0 -38
  77. data/lib/earth/hospitality/lodging_class.rb +10 -12
  78. data/lib/earth/industry/industry.rb +3 -5
  79. data/lib/earth/industry/industry_product.rb +6 -8
  80. data/lib/earth/industry/industry_product_line.rb +5 -7
  81. data/lib/earth/industry/industry_sector.rb +5 -7
  82. data/lib/earth/industry/merchant.rb +4 -6
  83. data/lib/earth/industry/merchant_category.rb +3 -5
  84. data/lib/earth/industry/merchant_category_industry.rb +5 -7
  85. data/lib/earth/industry/product_line.rb +5 -7
  86. data/lib/earth/industry/product_line_industry_product.rb +5 -7
  87. data/lib/earth/industry/sector.rb +5 -7
  88. data/lib/earth/locality/census_division.rb +21 -23
  89. data/lib/earth/locality/census_region.rb +3 -5
  90. data/lib/earth/locality/climate_division.rb +5 -7
  91. data/lib/earth/locality/country.rb +13 -15
  92. data/lib/earth/locality/egrid_region.rb +14 -5
  93. data/lib/earth/locality/egrid_region/data_miner.rb +0 -10
  94. data/lib/earth/locality/egrid_subregion.rb +71 -18
  95. data/lib/earth/locality/egrid_subregion/data_miner.rb +0 -59
  96. data/lib/earth/locality/petroleum_administration_for_defense_district.rb +6 -8
  97. data/lib/earth/locality/state.rb +6 -8
  98. data/lib/earth/locality/urbanity.rb +2 -4
  99. data/lib/earth/locality/urbanity/data_miner.rb +7 -3
  100. data/lib/earth/locality/zip_code.rb +8 -10
  101. data/lib/earth/pet/breed.rb +5 -7
  102. data/lib/earth/pet/breed_gender.rb +6 -8
  103. data/lib/earth/pet/gender.rb +2 -4
  104. data/lib/earth/pet/species.rb +15 -17
  105. data/lib/earth/rail/rail_class.rb +64 -14
  106. data/lib/earth/rail/rail_class/data_miner.rb +0 -51
  107. data/lib/earth/residence/air_conditioner_use.rb +4 -6
  108. data/lib/earth/residence/air_conditioner_use/data_miner.rb +7 -3
  109. data/lib/earth/residence/clothes_machine_use.rb +4 -6
  110. data/lib/earth/residence/clothes_machine_use/data_miner.rb +11 -9
  111. data/lib/earth/residence/dishwasher_use.rb +4 -6
  112. data/lib/earth/residence/dishwasher_use/data_miner.rb +11 -9
  113. data/lib/earth/residence/residence_appliance.rb +4 -6
  114. data/lib/earth/residence/residence_class.rb +2 -4
  115. data/lib/earth/residence/residence_class/data_miner.rb +7 -3
  116. data/lib/earth/residence/residence_fuel_price.rb +12 -14
  117. data/lib/earth/residence/residence_fuel_price/data_miner.rb +7 -0
  118. data/lib/earth/residence/residence_fuel_type.rb +6 -8
  119. data/lib/earth/residence/residential_energy_consumption_survey_response.rb +91 -93
  120. data/lib/earth/residence/residential_energy_consumption_survey_response/data_miner.rb +9 -8
  121. data/lib/earth/shipping/carrier.rb +57 -10
  122. data/lib/earth/shipping/carrier/data_miner.rb +0 -48
  123. data/lib/earth/shipping/carrier_mode.rb +41 -10
  124. data/lib/earth/shipping/carrier_mode/data_miner.rb +0 -33
  125. data/lib/earth/shipping/shipment_mode.rb +30 -7
  126. data/lib/earth/shipping/shipment_mode/data_miner.rb +0 -23
  127. data/lib/earth/utils.rb +45 -0
  128. data/lib/earth/version.rb +1 -1
  129. data/spec/earth/air/aircraft_spec.rb +1 -1
  130. data/vendor/clean_find_in_batches/init.rb +35 -0
  131. metadata +74 -47
@@ -3,10 +3,33 @@ class ShipmentMode < ActiveRecord::Base
3
3
 
4
4
  has_many :carrier_modes, :foreign_key => 'mode_name', :primary_key => 'name'
5
5
 
6
- force_schema do
7
- string 'name'
8
- float 'route_inefficiency_factor'
9
- float 'transport_emission_factor'
10
- string 'transport_emission_factor_units'
11
- end
12
- end
6
+ col :name
7
+ col :route_inefficiency_factor, :type => :float
8
+ col :transport_emission_factor, :type => :float
9
+ col :transport_emission_factor_units
10
+
11
+ # verify "Route inefficiency factor should be one or more" do
12
+ # ShipmentMode.all.each do |mode|
13
+ # unless mode.route_inefficiency_factor >= 1.0
14
+ # raise "Invalid route inefficiency factor for ShipmentMode #{mode.name}: #{mode.route_inefficiency_factor} (should be >= 1.0)"
15
+ # end
16
+ # end
17
+ # end
18
+ #
19
+ # verify "Transport emission factor should be greater than zero" do
20
+ # ShipmentMode.all.each do |mode|
21
+ # unless mode.transport_emission_factor > 0
22
+ # raise "Invalid transport emission factor for ShipmentMode #{mode.name}: #{mode.transport_emission_factor} (should be > 0)"
23
+ # end
24
+ # end
25
+ # end
26
+ #
27
+ # verify "Transport emission factor units should never be missing" do
28
+ # ShipmentMode.all.each do |mode|
29
+ # unless mode.transport_emission_factor_units.present?
30
+ # raise "Missing transport emission factor units for ShipmentMode #{mode.name}"
31
+ # end
32
+ # end
33
+ # end
34
+
35
+ end
@@ -19,28 +19,5 @@ ShipmentMode.class_eval do
19
19
  # what about transport_emission_factor_units?
20
20
  # end
21
21
 
22
- verify "Route inefficiency factor should be one or more" do
23
- ShipmentMode.all.each do |mode|
24
- unless mode.route_inefficiency_factor >= 1.0
25
- raise "Invalid route inefficiency factor for ShipmentMode #{mode.name}: #{mode.route_inefficiency_factor} (should be >= 1.0)"
26
- end
27
- end
28
- end
29
-
30
- verify "Transport emission factor should be greater than zero" do
31
- ShipmentMode.all.each do |mode|
32
- unless mode.transport_emission_factor > 0
33
- raise "Invalid transport emission factor for ShipmentMode #{mode.name}: #{mode.transport_emission_factor} (should be > 0)"
34
- end
35
- end
36
- end
37
-
38
- verify "Transport emission factor units should never be missing" do
39
- ShipmentMode.all.each do |mode|
40
- unless mode.transport_emission_factor_units.present?
41
- raise "Missing transport emission factor units for ShipmentMode #{mode.name}"
42
- end
43
- end
44
- end
45
22
  end
46
23
  end
@@ -0,0 +1,45 @@
1
+ module Earth
2
+ module Utils
3
+ # MySQL's INSERT INTO is not standard SQL
4
+ # ::Earth::Utils.insert_ignore(
5
+ # :src => AutomobileMakeModelYearVariant,
6
+ # :dest => AutomobileMakeModelYear,
7
+ # :cols => {
8
+ # :make_model_year_name => :name,
9
+ # :make_name => :make_name,
10
+ # :name => :model_name,
11
+ # :make_model_name => :make_model_name,
12
+ # :year => :year,
13
+ # :make_year_name => :make_year_name
14
+ # },
15
+ # :where => 'LENGTH(src.make_name) > 0 AND LENGTH(src.make_model_name) > 0'
16
+ # )
17
+ # ...executes...
18
+ # INSERT INTO automobile_make_model_years(name,make_name,model_name,make_model_name,year,make_year_name)
19
+ # SELECT MAX(src.make_model_year_name),MAX(src.make_name),MAX(src.name),MAX(src.make_model_name),MAX(src.year),MAX(src.make_year_name)
20
+ # FROM automobile_make_model_year_variants AS src
21
+ # WHERE
22
+ # src.make_model_year_name IS NOT NULL
23
+ # AND LENGTH(TRIM(CAST(src.make_model_year_name AS CHAR))) > 0
24
+ # AND src.make_model_year_name NOT IN (SELECT dest.name FROM automobile_make_model_years AS dest)
25
+ # AND (1=1)
26
+ # GROUP BY src.make_model_year_name
27
+ def self.insert_ignore(args = {})
28
+ dest_cols = args[:cols].values
29
+ dest_primary_key = args[:dest].primary_key.to_sym
30
+ dest_primary_key_in_src = args[:cols].key(dest_primary_key)
31
+ sql = %{
32
+ INSERT INTO #{args[:dest].table_name}(#{dest_cols.join(',')})
33
+ SELECT #{dest_cols.map { |dest_col| 'MAX(src.' + args[:cols].key(dest_col).to_s + ')' }.join(',')}
34
+ FROM #{args[:src].table_name} AS src
35
+ WHERE
36
+ src.#{dest_primary_key_in_src} IS NOT NULL
37
+ AND LENGTH(TRIM(CAST(src.#{dest_primary_key_in_src} AS CHAR))) > 0
38
+ AND src.#{dest_primary_key_in_src} NOT IN (SELECT dest.#{dest_primary_key} FROM #{args[:dest].table_name} AS dest)
39
+ AND (#{args[:where] || '1=1'})
40
+ GROUP BY src.#{dest_primary_key_in_src}
41
+ }
42
+ ::ActiveRecord::Base.connection.execute sql
43
+ end
44
+ end
45
+ end
@@ -1,3 +1,3 @@
1
1
  module Earth
2
- VERSION = "0.5.4"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -5,7 +5,7 @@ require 'earth/air/aircraft/data_miner'
5
5
  describe Aircraft do
6
6
  describe 'import', :slow => true do
7
7
  it 'should treat empty cells as null' do
8
- Aircraft.force_schema!
8
+ Aircraft.auto_upgrade!
9
9
  Aircraft.run_data_miner!
10
10
  Aircraft.count.should > 1
11
11
  Aircraft.where(:brighter_planet_aircraft_class_code => nil).should_not be_empty
@@ -0,0 +1,35 @@
1
+ # http://seejohncode.com/2011/09/16/uuids-and-find-in-batches
2
+ module CleanFindInBatches
3
+ def self.included(base)
4
+ base.class_eval do
5
+ alias :old_find_in_batches :find_in_batches
6
+ alias :find_in_batches :replacement_find_in_batches
7
+ end
8
+ end
9
+
10
+ # Override this here because of the implementation of regular find_in_batches
11
+ # conflicting with this class using UUIDs
12
+ def replacement_find_in_batches(options = {}, &block)
13
+ relation = self
14
+ return old_find_in_batches(options, &block) if relation.primary_key.is_a?(::Arel::Attributes::Integer)
15
+ # Throw errors like the real thing
16
+ if (finder_options = options.except(:batch_size)).present?
17
+ raise "You can't specify an order, it's forced to be #{batch_order}" if options[:order].present?
18
+ raise "You can't specify a limit, it's forced to be the batch_size" if options[:limit].present?
19
+ raise 'You can\'t specify start, it\'s forced to be 0 because the ID is a string' if options.delete(:start)
20
+ relation = apply_finder_options(finder_options)
21
+ end
22
+ # Compute the batch size
23
+ batch_size = options.delete(:batch_size) || 1000
24
+ offset = 0
25
+ # Get the relation and keep going over it until there's nothing left
26
+ relation = relation.except(:order).order(batch_order).limit(batch_size)
27
+ while (results = relation.offset(offset).limit(batch_size).all).any?
28
+ block.call results
29
+ offset += batch_size
30
+ end
31
+ nil
32
+ end
33
+ end
34
+
35
+ ::ActiveRecord::Batches.send(:include, ::CleanFindInBatches)
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.5.4
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,18 +15,18 @@ date: 2011-06-06 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: data_miner
18
- requirement: &2160276440 !ruby/object:Gem::Requirement
18
+ requirement: &2168455600 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
22
22
  - !ruby/object:Gem::Version
23
- version: '0'
23
+ version: '1.3'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2160276440
26
+ version_requirements: *2168455600
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: to_regexp
29
- requirement: &2160276000 !ruby/object:Gem::Requirement
29
+ requirement: &2168455180 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2160276000
37
+ version_requirements: *2168455180
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: cohort_scope
40
- requirement: &2160275560 !ruby/object:Gem::Requirement
40
+ requirement: &2161928740 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,21 @@ dependencies:
45
45
  version: '0'
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *2160275560
48
+ version_requirements: *2161928740
49
+ - !ruby/object:Gem::Dependency
50
+ name: table_warnings
51
+ requirement: &2161928240 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: 0.0.6
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: *2161928240
49
60
  - !ruby/object:Gem::Dependency
50
61
  name: remote_table
51
- requirement: &2160275040 !ruby/object:Gem::Requirement
62
+ requirement: &2161927740 !ruby/object:Gem::Requirement
52
63
  none: false
53
64
  requirements:
54
65
  - - ! '>='
@@ -56,10 +67,10 @@ dependencies:
56
67
  version: 1.2.3
57
68
  type: :runtime
58
69
  prerelease: false
59
- version_requirements: *2160275040
70
+ version_requirements: *2161927740
60
71
  - !ruby/object:Gem::Dependency
61
72
  name: falls_back_on
62
- requirement: &2160274620 !ruby/object:Gem::Requirement
73
+ requirement: &2161927360 !ruby/object:Gem::Requirement
63
74
  none: false
64
75
  requirements:
65
76
  - - ! '>='
@@ -67,10 +78,10 @@ dependencies:
67
78
  version: '0'
68
79
  type: :runtime
69
80
  prerelease: false
70
- version_requirements: *2160274620
81
+ version_requirements: *2161927360
71
82
  - !ruby/object:Gem::Dependency
72
83
  name: fixed_width-multibyte
73
- requirement: &2160274160 !ruby/object:Gem::Requirement
84
+ requirement: &2161926900 !ruby/object:Gem::Requirement
74
85
  none: false
75
86
  requirements:
76
87
  - - ! '>='
@@ -78,10 +89,10 @@ dependencies:
78
89
  version: '0'
79
90
  type: :runtime
80
91
  prerelease: false
81
- version_requirements: *2160274160
92
+ version_requirements: *2161926900
82
93
  - !ruby/object:Gem::Dependency
83
94
  name: geokit-rails
84
- requirement: &2160273740 !ruby/object:Gem::Requirement
95
+ requirement: &2161926480 !ruby/object:Gem::Requirement
85
96
  none: false
86
97
  requirements:
87
98
  - - ! '>='
@@ -89,10 +100,10 @@ dependencies:
89
100
  version: '0'
90
101
  type: :runtime
91
102
  prerelease: false
92
- version_requirements: *2160273740
103
+ version_requirements: *2161926480
93
104
  - !ruby/object:Gem::Dependency
94
105
  name: loose_tight_dictionary
95
- requirement: &2160273240 !ruby/object:Gem::Requirement
106
+ requirement: &2161925980 !ruby/object:Gem::Requirement
96
107
  none: false
97
108
  requirements:
98
109
  - - ! '>='
@@ -100,10 +111,21 @@ dependencies:
100
111
  version: 0.2.3
101
112
  type: :runtime
102
113
  prerelease: false
103
- version_requirements: *2160273240
114
+ version_requirements: *2161925980
104
115
  - !ruby/object:Gem::Dependency
105
116
  name: weighted_average
106
- requirement: &2160272780 !ruby/object:Gem::Requirement
117
+ requirement: &2161925480 !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '1'
123
+ type: :runtime
124
+ prerelease: false
125
+ version_requirements: *2161925480
126
+ - !ruby/object:Gem::Dependency
127
+ name: activesupport
128
+ requirement: &2161925100 !ruby/object:Gem::Requirement
107
129
  none: false
108
130
  requirements:
109
131
  - - ! '>='
@@ -111,21 +133,21 @@ dependencies:
111
133
  version: '0'
112
134
  type: :runtime
113
135
  prerelease: false
114
- version_requirements: *2160272780
136
+ version_requirements: *2161925100
115
137
  - !ruby/object:Gem::Dependency
116
- name: force_schema
117
- requirement: &2160272240 !ruby/object:Gem::Requirement
138
+ name: activerecord
139
+ requirement: &2161924640 !ruby/object:Gem::Requirement
118
140
  none: false
119
141
  requirements:
120
142
  - - ! '>='
121
143
  - !ruby/object:Gem::Version
122
- version: 0.0.2
144
+ version: '0'
123
145
  type: :runtime
124
146
  prerelease: false
125
- version_requirements: *2160272240
147
+ version_requirements: *2161924640
126
148
  - !ruby/object:Gem::Dependency
127
149
  name: bundler
128
- requirement: &2160271740 !ruby/object:Gem::Requirement
150
+ requirement: &2161924220 !ruby/object:Gem::Requirement
129
151
  none: false
130
152
  requirements:
131
153
  - - ! '>='
@@ -133,10 +155,10 @@ dependencies:
133
155
  version: '0'
134
156
  type: :development
135
157
  prerelease: false
136
- version_requirements: *2160271740
158
+ version_requirements: *2161924220
137
159
  - !ruby/object:Gem::Dependency
138
160
  name: bueller
139
- requirement: &2160271280 !ruby/object:Gem::Requirement
161
+ requirement: &2161923800 !ruby/object:Gem::Requirement
140
162
  none: false
141
163
  requirements:
142
164
  - - ! '>='
@@ -144,10 +166,10 @@ dependencies:
144
166
  version: '0'
145
167
  type: :development
146
168
  prerelease: false
147
- version_requirements: *2160271280
169
+ version_requirements: *2161923800
148
170
  - !ruby/object:Gem::Dependency
149
171
  name: cucumber
150
- requirement: &2160270860 !ruby/object:Gem::Requirement
172
+ requirement: &2161923380 !ruby/object:Gem::Requirement
151
173
  none: false
152
174
  requirements:
153
175
  - - ! '>='
@@ -155,10 +177,10 @@ dependencies:
155
177
  version: '0'
156
178
  type: :development
157
179
  prerelease: false
158
- version_requirements: *2160270860
180
+ version_requirements: *2161923380
159
181
  - !ruby/object:Gem::Dependency
160
182
  name: rake
161
- requirement: &2160270400 !ruby/object:Gem::Requirement
183
+ requirement: &2161922960 !ruby/object:Gem::Requirement
162
184
  none: false
163
185
  requirements:
164
186
  - - ! '>='
@@ -166,10 +188,10 @@ dependencies:
166
188
  version: '0'
167
189
  type: :development
168
190
  prerelease: false
169
- version_requirements: *2160270400
191
+ version_requirements: *2161922960
170
192
  - !ruby/object:Gem::Dependency
171
193
  name: rdoc
172
- requirement: &2160269960 !ruby/object:Gem::Requirement
194
+ requirement: &2161922540 !ruby/object:Gem::Requirement
173
195
  none: false
174
196
  requirements:
175
197
  - - ! '>='
@@ -177,10 +199,10 @@ dependencies:
177
199
  version: '0'
178
200
  type: :development
179
201
  prerelease: false
180
- version_requirements: *2160269960
202
+ version_requirements: *2161922540
181
203
  - !ruby/object:Gem::Dependency
182
- name: rdoc
183
- requirement: &2160269520 !ruby/object:Gem::Requirement
204
+ name: rspec
205
+ requirement: &2161922120 !ruby/object:Gem::Requirement
184
206
  none: false
185
207
  requirements:
186
208
  - - ! '>='
@@ -188,10 +210,10 @@ dependencies:
188
210
  version: '0'
189
211
  type: :development
190
212
  prerelease: false
191
- version_requirements: *2160269520
213
+ version_requirements: *2161922120
192
214
  - !ruby/object:Gem::Dependency
193
- name: rspec
194
- requirement: &2160269100 !ruby/object:Gem::Requirement
215
+ name: sqlite3-ruby
216
+ requirement: &2161921700 !ruby/object:Gem::Requirement
195
217
  none: false
196
218
  requirements:
197
219
  - - ! '>='
@@ -199,10 +221,10 @@ dependencies:
199
221
  version: '0'
200
222
  type: :development
201
223
  prerelease: false
202
- version_requirements: *2160269100
224
+ version_requirements: *2161921700
203
225
  - !ruby/object:Gem::Dependency
204
- name: sqlite3-ruby
205
- requirement: &2160268660 !ruby/object:Gem::Requirement
226
+ name: mysql
227
+ requirement: &2161921280 !ruby/object:Gem::Requirement
206
228
  none: false
207
229
  requirements:
208
230
  - - ! '>='
@@ -210,10 +232,10 @@ dependencies:
210
232
  version: '0'
211
233
  type: :development
212
234
  prerelease: false
213
- version_requirements: *2160268660
235
+ version_requirements: *2161921280
214
236
  - !ruby/object:Gem::Dependency
215
- name: mysql
216
- requirement: &2160268240 !ruby/object:Gem::Requirement
237
+ name: pg
238
+ requirement: &2161937220 !ruby/object:Gem::Requirement
217
239
  none: false
218
240
  requirements:
219
241
  - - ! '>='
@@ -221,7 +243,7 @@ dependencies:
221
243
  version: '0'
222
244
  type: :development
223
245
  prerelease: false
224
- version_requirements: *2160268240
246
+ version_requirements: *2161937220
225
247
  description: An earth-simulation environment with ActiveRecord models and data
226
248
  email: andy@rossmeissl.net
227
249
  executables:
@@ -239,6 +261,7 @@ files:
239
261
  - LICENSE-PREAMBLE
240
262
  - README.markdown
241
263
  - Rakefile
264
+ - TODO
242
265
  - bin/earth_tester.rb
243
266
  - earth.gemspec
244
267
  - features/automobile_fuel.feature
@@ -332,6 +355,8 @@ files:
332
355
  - lib/earth/air/aircraft_class/data_miner.rb
333
356
  - lib/earth/air/aircraft_fuel_use_equation.rb
334
357
  - lib/earth/air/aircraft_fuel_use_equation/data_miner.rb
358
+ - lib/earth/air/aircraft_instance.rb
359
+ - lib/earth/air/aircraft_instance_seat_class.rb
335
360
  - lib/earth/air/airline.rb
336
361
  - lib/earth/air/airline/data_miner.rb
337
362
  - lib/earth/air/airport.rb
@@ -495,6 +520,7 @@ files:
495
520
  - lib/earth/shipping/data_miner.rb
496
521
  - lib/earth/shipping/shipment_mode.rb
497
522
  - lib/earth/shipping/shipment_mode/data_miner.rb
523
+ - lib/earth/utils.rb
498
524
  - lib/earth/version.rb
499
525
  - spec/earth/air/aircraft_spec.rb
500
526
  - spec/earth/automobile/automobile_fuel_spec.rb
@@ -506,6 +532,7 @@ files:
506
532
  - spec/earth_spec.rb
507
533
  - spec/spec_helper.rb
508
534
  - test/test_aircraft_match.rb
535
+ - vendor/clean_find_in_batches/init.rb
509
536
  - vendor/geokit-rails/CHANGELOG.rdoc
510
537
  - vendor/geokit-rails/MIT-LICENSE
511
538
  - vendor/geokit-rails/README.markdown
@@ -569,7 +596,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
569
596
  version: '0'
570
597
  requirements: []
571
598
  rubyforge_project:
572
- rubygems_version: 1.8.5
599
+ rubygems_version: 1.8.6
573
600
  signing_key:
574
601
  specification_version: 3
575
602
  summary: Land, sky, and sea