earth 0.11.7 → 0.11.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. data/README.markdown +30 -0
  2. data/bin/earth_tester.rb +1 -1
  3. data/earth.gemspec +3 -3
  4. data/lib/earth.rb +105 -90
  5. data/lib/earth/air.rb +3 -12
  6. data/lib/earth/air/aircraft.rb +9 -9
  7. data/lib/earth/air/airport.rb +3 -0
  8. data/lib/earth/air/airport/data_miner.rb +2 -0
  9. data/lib/earth/air/data_miner.rb +3 -10
  10. data/lib/earth/air/flight_segment.rb +3 -1
  11. data/lib/earth/air/flight_segment/data_miner.rb +2 -0
  12. data/lib/earth/all.rb +3 -13
  13. data/lib/earth/automobile.rb +3 -18
  14. data/lib/earth/automobile/automobile_fuel.rb +1 -3
  15. data/lib/earth/automobile/automobile_fuel/data_miner.rb +1 -0
  16. data/lib/earth/automobile/automobile_make.rb +1 -0
  17. data/lib/earth/automobile/automobile_make/data_miner.rb +1 -0
  18. data/lib/earth/automobile/automobile_make_model.rb +1 -0
  19. data/lib/earth/automobile/automobile_make_model/data_miner.rb +1 -0
  20. data/lib/earth/automobile/automobile_make_model_year.rb +1 -0
  21. data/lib/earth/automobile/automobile_make_model_year/data_miner.rb +1 -0
  22. data/lib/earth/automobile/automobile_make_model_year_variant.rb +1 -0
  23. data/lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb +1 -0
  24. data/lib/earth/automobile/automobile_make_year.rb +1 -0
  25. data/lib/earth/automobile/automobile_make_year/data_miner.rb +1 -0
  26. data/lib/earth/automobile/automobile_make_year_fleet.rb +1 -0
  27. data/lib/earth/automobile/automobile_make_year_fleet/data_miner.rb +1 -0
  28. data/lib/earth/automobile/automobile_model.rb +1 -0
  29. data/lib/earth/automobile/automobile_model/data_miner.rb +1 -0
  30. data/lib/earth/automobile/automobile_size_class.rb +1 -0
  31. data/lib/earth/automobile/automobile_size_class/data_miner.rb +1 -0
  32. data/lib/earth/automobile/automobile_size_class_year.rb +1 -0
  33. data/lib/earth/automobile/automobile_size_class_year/data_miner.rb +1 -0
  34. data/lib/earth/automobile/automobile_type_fuel_control.rb +1 -0
  35. data/lib/earth/automobile/automobile_type_fuel_control/data_miner.rb +1 -0
  36. data/lib/earth/automobile/automobile_type_fuel_year.rb +1 -0
  37. data/lib/earth/automobile/automobile_type_fuel_year/data_miner.rb +1 -0
  38. data/lib/earth/automobile/automobile_type_fuel_year_age.rb +1 -0
  39. data/lib/earth/automobile/automobile_type_fuel_year_age/data_miner.rb +1 -0
  40. data/lib/earth/automobile/automobile_type_fuel_year_control.rb +1 -0
  41. data/lib/earth/automobile/automobile_type_fuel_year_control/data_miner.rb +1 -0
  42. data/lib/earth/automobile/automobile_type_year.rb +1 -0
  43. data/lib/earth/automobile/automobile_type_year/data_miner.rb +1 -0
  44. data/lib/earth/automobile/automobile_year.rb +1 -0
  45. data/lib/earth/automobile/automobile_year/data_miner.rb +1 -0
  46. data/lib/earth/automobile/data_miner.rb +3 -18
  47. data/lib/earth/bus.rb +3 -6
  48. data/lib/earth/bus/bus_class.rb +1 -0
  49. data/lib/earth/bus/bus_class/data_miner.rb +1 -0
  50. data/lib/earth/bus/bus_fuel.rb +1 -0
  51. data/lib/earth/bus/bus_fuel/data_miner.rb +1 -0
  52. data/lib/earth/bus/bus_fuel_control.rb +1 -0
  53. data/lib/earth/bus/bus_fuel_control/data_miner.rb +1 -0
  54. data/lib/earth/bus/bus_fuel_year_control.rb +1 -0
  55. data/lib/earth/bus/bus_fuel_year_control/data_miner.rb +1 -0
  56. data/lib/earth/bus/data_miner.rb +3 -6
  57. data/lib/earth/computation.rb +3 -5
  58. data/lib/earth/computation/computation_carrier.rb +1 -0
  59. data/lib/earth/computation/computation_carrier/data_miner.rb +1 -1
  60. data/lib/earth/computation/computation_carrier_instance_class.rb +1 -0
  61. data/lib/earth/computation/computation_carrier_instance_class/data_miner.rb +1 -0
  62. data/lib/earth/computation/computation_carrier_region.rb +1 -0
  63. data/lib/earth/computation/computation_carrier_region/data_miner.rb +1 -0
  64. data/lib/earth/computation/data_miner.rb +3 -5
  65. data/lib/earth/data_miner.rb +3 -13
  66. data/lib/earth/diet.rb +3 -2
  67. data/lib/earth/diet/data_miner.rb +3 -2
  68. data/lib/earth/eia.rb +11 -13
  69. data/lib/earth/fuel.rb +3 -5
  70. data/lib/earth/fuel/data_miner.rb +3 -5
  71. data/lib/earth/fuel/fuel_price.rb +1 -1
  72. data/lib/earth/hospitality.rb +3 -5
  73. data/lib/earth/hospitality/commercial_building_energy_consumption_survey_response.rb +2 -0
  74. data/lib/earth/hospitality/commercial_building_energy_consumption_survey_response/data_miner.rb +13 -7
  75. data/lib/earth/hospitality/country_lodging_class.rb +1 -0
  76. data/lib/earth/hospitality/country_lodging_class/data_miner.rb +4 -2
  77. data/lib/earth/hospitality/data_miner.rb +3 -4
  78. data/lib/earth/hospitality/lodging_class.rb +1 -10
  79. data/lib/earth/hospitality/lodging_class/data_miner.rb +7 -30
  80. data/lib/earth/hospitality/lodging_property.rb +1 -0
  81. data/lib/earth/industry.rb +3 -13
  82. data/lib/earth/industry/cbecs_energy_intensity.rb +5 -49
  83. data/lib/earth/industry/cbecs_energy_intensity/data_miner.rb +94 -42
  84. data/lib/earth/industry/data_miner.rb +3 -4
  85. data/lib/earth/industry/industry.rb +1 -0
  86. data/lib/earth/industry/industry/data_miner.rb +1 -0
  87. data/lib/earth/industry/industry_product.rb +1 -0
  88. data/lib/earth/industry/industry_product_line.rb +1 -0
  89. data/lib/earth/industry/industry_sector.rb +1 -0
  90. data/lib/earth/industry/mecs_energy.rb +3 -24
  91. data/lib/earth/industry/mecs_energy/data_miner.rb +34 -11
  92. data/lib/earth/industry/mecs_ratio.rb +6 -24
  93. data/lib/earth/industry/mecs_ratio/data_miner.rb +24 -1
  94. data/lib/earth/locality.rb +3 -15
  95. data/lib/earth/locality/census_division.rb +1 -0
  96. data/lib/earth/locality/census_division/data_miner.rb +1 -0
  97. data/lib/earth/locality/country.rb +3 -0
  98. data/lib/earth/locality/country/data_miner.rb +5 -1
  99. data/lib/earth/locality/data_miner.rb +3 -15
  100. data/lib/earth/locality/egrid_subregion.rb +1 -0
  101. data/lib/earth/locality/egrid_subregion/data_miner.rb +1 -0
  102. data/lib/earth/locality/state/data_miner.rb +11 -11
  103. data/lib/earth/locality/zip_code.rb +6 -0
  104. data/lib/earth/pet.rb +3 -4
  105. data/lib/earth/pet/data_miner.rb +3 -4
  106. data/lib/earth/rail.rb +3 -15
  107. data/lib/earth/rail/country_rail_class.rb +1 -0
  108. data/lib/earth/rail/country_rail_class/data_miner.rb +1 -0
  109. data/lib/earth/rail/country_rail_traction.rb +2 -0
  110. data/lib/earth/rail/country_rail_traction/data_miner.rb +2 -0
  111. data/lib/earth/rail/country_rail_traction_class.rb +2 -0
  112. data/lib/earth/rail/country_rail_traction_class/data_miner.rb +2 -0
  113. data/lib/earth/rail/data_miner.rb +3 -16
  114. data/lib/earth/rail/national_transit_database_company.rb +1 -0
  115. data/lib/earth/rail/national_transit_database_company/data_miner.rb +1 -0
  116. data/lib/earth/rail/national_transit_database_record.rb +1 -0
  117. data/lib/earth/rail/national_transit_database_record/data_miner.rb +1 -0
  118. data/lib/earth/rail/rail_company.rb +2 -0
  119. data/lib/earth/rail/rail_company/data_miner.rb +2 -0
  120. data/lib/earth/rail/rail_company_traction.rb +1 -0
  121. data/lib/earth/rail/rail_company_traction/data_miner.rb +1 -0
  122. data/lib/earth/rail/rail_company_traction_class.rb +1 -0
  123. data/lib/earth/rail/rail_company_traction_class/data_miner.rb +1 -0
  124. data/lib/earth/rail/rail_fuel.rb +1 -0
  125. data/lib/earth/rail/rail_fuel/data_miner.rb +1 -0
  126. data/lib/earth/residence.rb +3 -11
  127. data/lib/earth/residence/data_miner.rb +3 -11
  128. data/lib/earth/residence/residence_fuel_price.rb +1 -0
  129. data/lib/earth/residence/residence_fuel_price/data_miner.rb +1 -0
  130. data/lib/earth/residence/residential_energy_consumption_survey_response.rb +1 -0
  131. data/lib/earth/residence/residential_energy_consumption_survey_response/data_miner.rb +1 -0
  132. data/lib/earth/shipping.rb +3 -3
  133. data/lib/earth/shipping/data_miner.rb +3 -3
  134. data/lib/earth/version.rb +1 -1
  135. data/spec/earth/industry/mecs_energy_spec.rb +18 -0
  136. data/spec/earth_spec.rb +18 -29
  137. data/test/test_aircraft_match.rb +142 -142
  138. data/vendor/geokit-rails/.gitignore +2 -0
  139. data/vendor/geokit-rails/CHANGELOG.rdoc +4 -1
  140. data/vendor/geokit-rails/README.markdown +11 -3
  141. data/vendor/geokit-rails/about.yml +2 -0
  142. data/vendor/geokit-rails/lib/geokit-rails.rb +7 -4
  143. data/vendor/geokit-rails/lib/geokit-rails/acts_as_mappable.rb +15 -2
  144. data/vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb +1 -1
  145. data/vendor/geokit-rails/lib/geokit-rails/adapters/mysql2.rb +22 -0
  146. data/vendor/geokit-rails/test/database.yml +5 -0
  147. data/vendor/geokit-rails/test/ip_geocode_lookup_test.rb +1 -1
  148. data/vendor/geokit-rails/test/tasks.rake +2 -2
  149. metadata +179 -191
  150. data/lib/earth/hospitality/census_region_lodging_class.rb +0 -16
  151. data/lib/earth/hospitality/census_region_lodging_class/data_miner.rb +0 -40
@@ -0,0 +1,2 @@
1
+ test/*-debug.log
2
+ .svn
@@ -1,3 +1,6 @@
1
+ == 2011-04-03 / Version 1.1.5
2
+ * Added mysql2 adapter support backported from geokit-rails3.
3
+
1
4
  == 2009-10-02 / Version 1.2.0
2
5
  * Overhaul the test suite to be independent of a Rails project
3
6
  * Added concept of database adapter. Ported mysql/postgresql conditional code to their own adapter.
@@ -43,4 +46,4 @@ can still utilize all Geokit's "find by distance" finders. Also Rails 2.3 compat
43
46
  * fixed a small but with queries crossing meridian, and also fixed find(:closest)
44
47
 
45
48
  == 2007-10-11
46
- * Fixed Rails2/Edge compatability
49
+ * Fixed Rails2/Edge compatability
@@ -1,11 +1,19 @@
1
+ ## WHAT IS THIS?
2
+
3
+ It's geokit-rails for Rails 2.x with added mysql2 support. That's it.
4
+
5
+ Mysql2 support has been backported from Jérémy Lecour's work on [geokit-rails3](https://github.com/jlecour/geokit-rails3).
6
+
7
+ I confess to not having run the bundled tests against this, but it seems to work exactly how you'd expect, and is working great in a large production application. If you're a Geokit developer and want to let me know whether the tests pass I'd appreciate it.
8
+
1
9
  ## INSTALLATION
2
10
 
3
- Geokit consists of a Gem ([geokit-gem](http://github.com/andre/geokit-gem/tree/master)) and a Rails plugin ([geokit-rails](http://github.com/andre/geokit-rails/tree/master)).
11
+ Geokit consists of a Gem ([geokit-gem](http://github.com/andre/geokit-gem/tree/master)) and a Rails plugin ([geokit-rails](http://github.com/niralisse/geokit-rails-mysql2/tree/master)).
4
12
 
5
13
  #### 1. Install the Rails plugin:
6
14
 
7
15
  cd [YOUR_RAILS_APP_ROOT]
8
- script/plugin install git://github.com/andre/geokit-rails.git
16
+ script/plugin install git://github.com/niralisse/geokit-rails-mysql2.git
9
17
 
10
18
  #### 2. Add this line to your environment.rb
11
19
  (inside the Rails::Initializer.run do |config| block)
@@ -69,7 +77,7 @@ The optional parameters are :units, :formula, and distance_field_name.
69
77
  Values for :units can be :miles, :kms (kilometers), or :nms (nautical miles),
70
78
  with :miles as the default. Values for :formula can be :sphere or :flat with
71
79
  :sphere as the default. :sphere gives you Haversine calculations, while :flat
72
- gives the Pythagoreum Theory. These defaults persist through out the plug-in.
80
+ gives the Pythagorean Theory. These defaults persist through out the plug-in.
73
81
 
74
82
  The plug-in creates a calculated `distance` field on AR instances that have
75
83
  been retrieved throw a Geokit location query. By default, these fields are
@@ -3,6 +3,8 @@ author:
3
3
  homepage_1: http://blog.billeisenhauer.com
4
4
  name_2: Andre Lewis
5
5
  homepage_2: http://www.earthcode.com
6
+ name_3: Jonathan Owens
7
+ name_4: Jérémy Lecour
6
8
  summary: Geo distance calculations, distance calculation query support, geocoding for physical and ip addresses.
7
9
  version: 1.1.4
8
10
  rails_version: 1.0+
@@ -5,8 +5,8 @@
5
5
  # Note that we don't explicitly require the geokit gem.
6
6
  # You should specify gem dependencies in your config/environment.rb: config.gem "geokit"
7
7
  #
8
- begin
9
- require 'geokit'
8
+ require 'geokit'
9
+ if defined? Geokit
10
10
  require 'geokit-rails/defaults'
11
11
  require 'geokit-rails/adapters/abstract'
12
12
  require 'geokit-rails/acts_as_mappable'
@@ -14,11 +14,14 @@ begin
14
14
 
15
15
  # Automatically mix in distance finder support into ActiveRecord classes.
16
16
  ActiveRecord::Base.send :include, GeoKit::ActsAsMappable
17
- rescue LoadError
17
+
18
+ # # Automatically mix in ip geocoding helpers into ActionController classes.
19
+ # ActionController::Base.send :include, GeoKit::IpGeocodeLookup
20
+ else
18
21
  message=%q(WARNING: geokit-rails requires the Geokit gem. You either don't have the gem installed,
19
22
  or you haven't told Rails to require it. If you're using a recent version of Rails:
20
23
  config.gem "geokit" # in config/environment.rb
21
24
  and of course install the gem: sudo gem install geokit)
22
25
  puts message
23
26
  Rails.logger.error message
24
- end
27
+ end
@@ -337,16 +337,29 @@ module Geokit
337
337
 
338
338
  if distance_condition
339
339
  [:within, :beyond, :range].each { |option| options.delete(option) }
340
- options[:conditions] = merge_conditions(options[:conditions], distance_condition)
340
+ options[:conditions] = my_merge_conditions(options[:conditions], distance_condition)
341
341
  end
342
342
  end
343
+
344
+ # http://stackoverflow.com/questions/6409398/undefined-method-merge-conditions-for-geokit-rails
345
+ def my_merge_conditions(*conditions)
346
+ segments = []
347
+ conditions.each do |condition|
348
+ unless condition.blank?
349
+ sql = sanitize_sql(condition)
350
+ segments << sql unless sql.blank?
351
+ end
352
+ end
353
+ "(#{segments.join(') AND (')})" unless segments.empty?
354
+ end
355
+ # enough hacking
343
356
 
344
357
  # Alters the conditions to include rectangular bounds conditions.
345
358
  def apply_bounds_conditions(options,bounds)
346
359
  sw,ne = bounds.sw, bounds.ne
347
360
  lng_sql = bounds.crosses_meridian? ? "(#{qualified_lng_column_name}<#{ne.lng} OR #{qualified_lng_column_name}>#{sw.lng})" : "#{qualified_lng_column_name}>#{sw.lng} AND #{qualified_lng_column_name}<#{ne.lng}"
348
361
  bounds_sql = "#{qualified_lat_column_name}>#{sw.lat} AND #{qualified_lat_column_name}<#{ne.lat} AND #{lng_sql}"
349
- options[:conditions] = merge_conditions(options[:conditions], bounds_sql)
362
+ options[:conditions] = my_merge_conditions(options[:conditions], bounds_sql)
350
363
  end
351
364
 
352
365
  # Extracts the origin instance out of the options if it exists and returns
@@ -28,4 +28,4 @@ module Geokit
28
28
 
29
29
  end
30
30
  end
31
- end
31
+ end
@@ -0,0 +1,22 @@
1
+ module Geokit
2
+ module Adapters
3
+ class Mysql2 < Abstract
4
+
5
+ def sphere_distance_sql(lat, lng, multiplier)
6
+ %|
7
+ (ACOS(least(1,COS(#{lat})*COS(#{lng})*COS(RADIANS(#{qualified_lat_column_name}))*COS(RADIANS(#{qualified_lng_column_name}))+
8
+ COS(#{lat})*SIN(#{lng})*COS(RADIANS(#{qualified_lat_column_name}))*SIN(RADIANS(#{qualified_lng_column_name}))+
9
+ SIN(#{lat})*SIN(RADIANS(#{qualified_lat_column_name}))))*#{multiplier})
10
+ |
11
+ end
12
+
13
+ def flat_distance_sql(origin, lat_degree_units, lng_degree_units)
14
+ %|
15
+ SQRT(POW(#{lat_degree_units}*(#{origin.lat}-#{qualified_lat_column_name}),2)+
16
+ POW(#{lng_degree_units}*(#{origin.lng}-#{qualified_lng_column_name}),2))
17
+ |
18
+ end
19
+
20
+ end
21
+ end
22
+ end
@@ -8,6 +8,11 @@ mysql:
8
8
  database: geokit_plugin_test
9
9
  <<: *base
10
10
 
11
+ mysql2:
12
+ adapter: mysql2
13
+ database: geokit_plugin_test
14
+ <<: *base
15
+
11
16
  postgresql:
12
17
  adapter: postgresql
13
18
  database: geokit_plugin_test
@@ -74,4 +74,4 @@ class IpGeocodeLookupTest < ActionController::TestCase
74
74
  assert_not_nil cookies['geo_location']
75
75
  assert_equal @success, YAML.load(cookies['geo_location'])
76
76
  end
77
- end
77
+ end
@@ -18,7 +18,7 @@ class EnvTestTask < Rake::TestTask
18
18
 
19
19
  end
20
20
 
21
- %w(mysql postgresql sqlserver).each do |configuration|
21
+ %w(mysql mysql2 postgresql sqlserver).each do |configuration|
22
22
  EnvTestTask.new("test_#{configuration}") do |t|
23
23
  t.pattern = 'test/**/*_test.rb'
24
24
  t.verbose = true
@@ -28,4 +28,4 @@ end
28
28
  end
29
29
 
30
30
  desc 'Test available databases.'
31
- task :test_databases => %w(test_mysql test_postgresql test_sqlserver)
31
+ task :test_databases => %w(test_mysql test_postgresql test_sqlserver)
metadata CHANGED
@@ -1,273 +1,270 @@
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.8
4
5
  prerelease:
5
- version: 0.11.7
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: 2011-12-22 00:00:00 -05:00
16
- default_executable:
17
- dependencies:
18
- - !ruby/object:Gem::Dependency
14
+ date: 2011-12-22 00:00:00.000000000Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
19
17
  name: data_miner
20
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &2181048400 !ruby/object:Gem::Requirement
21
19
  none: false
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
25
- version: "1.3"
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '1.3'
26
24
  type: :runtime
27
25
  prerelease: false
28
- version_requirements: *id001
29
- - !ruby/object:Gem::Dependency
26
+ version_requirements: *2181048400
27
+ - !ruby/object:Gem::Dependency
30
28
  name: to_regexp
31
- requirement: &id002 !ruby/object:Gem::Requirement
29
+ requirement: &2181047980 !ruby/object:Gem::Requirement
32
30
  none: false
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: "0"
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
37
35
  type: :runtime
38
36
  prerelease: false
39
- version_requirements: *id002
40
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *2181047980
38
+ - !ruby/object:Gem::Dependency
41
39
  name: cohort_scope
42
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ requirement: &2181047260 !ruby/object:Gem::Requirement
43
41
  none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: "0"
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
48
46
  type: :runtime
49
47
  prerelease: false
50
- version_requirements: *id003
51
- - !ruby/object:Gem::Dependency
48
+ version_requirements: *2181047260
49
+ - !ruby/object:Gem::Dependency
52
50
  name: table_warnings
53
- requirement: &id004 !ruby/object:Gem::Requirement
51
+ requirement: &2181046760 !ruby/object:Gem::Requirement
54
52
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
58
56
  version: 0.0.6
59
57
  type: :runtime
60
58
  prerelease: false
61
- version_requirements: *id004
62
- - !ruby/object:Gem::Dependency
59
+ version_requirements: *2181046760
60
+ - !ruby/object:Gem::Dependency
63
61
  name: remote_table
64
- requirement: &id005 !ruby/object:Gem::Requirement
62
+ requirement: &2181046180 !ruby/object:Gem::Requirement
65
63
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: 1.2.3
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: 1.3.0
70
68
  type: :runtime
71
69
  prerelease: false
72
- version_requirements: *id005
73
- - !ruby/object:Gem::Dependency
70
+ version_requirements: *2181046180
71
+ - !ruby/object:Gem::Dependency
74
72
  name: falls_back_on
75
- requirement: &id006 !ruby/object:Gem::Requirement
73
+ requirement: &2181045720 !ruby/object:Gem::Requirement
76
74
  none: false
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: "0"
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
81
79
  type: :runtime
82
80
  prerelease: false
83
- version_requirements: *id006
84
- - !ruby/object:Gem::Dependency
81
+ version_requirements: *2181045720
82
+ - !ruby/object:Gem::Dependency
85
83
  name: fixed_width-multibyte
86
- requirement: &id007 !ruby/object:Gem::Requirement
84
+ requirement: &2181045260 !ruby/object:Gem::Requirement
87
85
  none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- version: "0"
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
92
90
  type: :runtime
93
91
  prerelease: false
94
- version_requirements: *id007
95
- - !ruby/object:Gem::Dependency
96
- name: geokit-rails
97
- requirement: &id008 !ruby/object:Gem::Requirement
92
+ version_requirements: *2181045260
93
+ - !ruby/object:Gem::Dependency
94
+ name: geokit
95
+ requirement: &2181044840 !ruby/object:Gem::Requirement
98
96
  none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: "0"
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
103
101
  type: :runtime
104
102
  prerelease: false
105
- version_requirements: *id008
106
- - !ruby/object:Gem::Dependency
107
- name: loose_tight_dictionary
108
- requirement: &id009 !ruby/object:Gem::Requirement
103
+ version_requirements: *2181044840
104
+ - !ruby/object:Gem::Dependency
105
+ name: fuzzy_match
106
+ requirement: &2181044340 !ruby/object:Gem::Requirement
109
107
  none: false
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- version: 0.2.3
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: 1.1.0
114
112
  type: :runtime
115
113
  prerelease: false
116
- version_requirements: *id009
117
- - !ruby/object:Gem::Dependency
114
+ version_requirements: *2181044340
115
+ - !ruby/object:Gem::Dependency
118
116
  name: weighted_average
119
- requirement: &id010 !ruby/object:Gem::Requirement
117
+ requirement: &2181043740 !ruby/object:Gem::Requirement
120
118
  none: false
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
124
122
  version: 1.0.2
125
123
  type: :runtime
126
124
  prerelease: false
127
- version_requirements: *id010
128
- - !ruby/object:Gem::Dependency
125
+ version_requirements: *2181043740
126
+ - !ruby/object:Gem::Dependency
129
127
  name: mini_record-compat
130
- requirement: &id011 !ruby/object:Gem::Requirement
128
+ requirement: &2181043260 !ruby/object:Gem::Requirement
131
129
  none: false
132
- requirements:
133
- - - ">="
134
- - !ruby/object:Gem::Version
135
- version: "0"
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
136
134
  type: :runtime
137
135
  prerelease: false
138
- version_requirements: *id011
139
- - !ruby/object:Gem::Dependency
136
+ version_requirements: *2181043260
137
+ - !ruby/object:Gem::Dependency
140
138
  name: activesupport
141
- requirement: &id012 !ruby/object:Gem::Requirement
139
+ requirement: &2181042580 !ruby/object:Gem::Requirement
142
140
  none: false
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- version: "0"
141
+ requirements:
142
+ - - ! '>='
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
147
145
  type: :runtime
148
146
  prerelease: false
149
- version_requirements: *id012
150
- - !ruby/object:Gem::Dependency
147
+ version_requirements: *2181042580
148
+ - !ruby/object:Gem::Dependency
151
149
  name: activerecord
152
- requirement: &id013 !ruby/object:Gem::Requirement
150
+ requirement: &2181041540 !ruby/object:Gem::Requirement
153
151
  none: false
154
- requirements:
155
- - - ">="
156
- - !ruby/object:Gem::Version
157
- version: "0"
152
+ requirements:
153
+ - - ! '>='
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
158
156
  type: :runtime
159
157
  prerelease: false
160
- version_requirements: *id013
161
- - !ruby/object:Gem::Dependency
158
+ version_requirements: *2181041540
159
+ - !ruby/object:Gem::Dependency
162
160
  name: bundler
163
- requirement: &id014 !ruby/object:Gem::Requirement
161
+ requirement: &2181040760 !ruby/object:Gem::Requirement
164
162
  none: false
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- version: "0"
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
169
167
  type: :development
170
168
  prerelease: false
171
- version_requirements: *id014
172
- - !ruby/object:Gem::Dependency
169
+ version_requirements: *2181040760
170
+ - !ruby/object:Gem::Dependency
173
171
  name: bueller
174
- requirement: &id015 !ruby/object:Gem::Requirement
172
+ requirement: &2181039500 !ruby/object:Gem::Requirement
175
173
  none: false
176
- requirements:
177
- - - ">="
178
- - !ruby/object:Gem::Version
179
- version: "0"
174
+ requirements:
175
+ - - ! '>='
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
180
178
  type: :development
181
179
  prerelease: false
182
- version_requirements: *id015
183
- - !ruby/object:Gem::Dependency
180
+ version_requirements: *2181039500
181
+ - !ruby/object:Gem::Dependency
184
182
  name: cucumber
185
- requirement: &id016 !ruby/object:Gem::Requirement
183
+ requirement: &2181039000 !ruby/object:Gem::Requirement
186
184
  none: false
187
- requirements:
188
- - - ">="
189
- - !ruby/object:Gem::Version
190
- version: "0"
185
+ requirements:
186
+ - - ! '>='
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
191
189
  type: :development
192
190
  prerelease: false
193
- version_requirements: *id016
194
- - !ruby/object:Gem::Dependency
191
+ version_requirements: *2181039000
192
+ - !ruby/object:Gem::Dependency
195
193
  name: rake
196
- requirement: &id017 !ruby/object:Gem::Requirement
194
+ requirement: &2181038280 !ruby/object:Gem::Requirement
197
195
  none: false
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: "0"
196
+ requirements:
197
+ - - ! '>='
198
+ - !ruby/object:Gem::Version
199
+ version: '0'
202
200
  type: :development
203
201
  prerelease: false
204
- version_requirements: *id017
205
- - !ruby/object:Gem::Dependency
202
+ version_requirements: *2181038280
203
+ - !ruby/object:Gem::Dependency
206
204
  name: rdoc
207
- requirement: &id018 !ruby/object:Gem::Requirement
205
+ requirement: &2162584420 !ruby/object:Gem::Requirement
208
206
  none: false
209
- requirements:
210
- - - ">="
211
- - !ruby/object:Gem::Version
212
- version: "0"
207
+ requirements:
208
+ - - ! '>='
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
213
211
  type: :development
214
212
  prerelease: false
215
- version_requirements: *id018
216
- - !ruby/object:Gem::Dependency
213
+ version_requirements: *2162584420
214
+ - !ruby/object:Gem::Dependency
217
215
  name: rspec
218
- requirement: &id019 !ruby/object:Gem::Requirement
216
+ requirement: &2162583900 !ruby/object:Gem::Requirement
219
217
  none: false
220
- requirements:
221
- - - ">="
222
- - !ruby/object:Gem::Version
223
- version: "0"
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
224
222
  type: :development
225
223
  prerelease: false
226
- version_requirements: *id019
227
- - !ruby/object:Gem::Dependency
224
+ version_requirements: *2162583900
225
+ - !ruby/object:Gem::Dependency
228
226
  name: sqlite3-ruby
229
- requirement: &id020 !ruby/object:Gem::Requirement
227
+ requirement: &2162583360 !ruby/object:Gem::Requirement
230
228
  none: false
231
- requirements:
232
- - - ">="
233
- - !ruby/object:Gem::Version
234
- version: "0"
229
+ requirements:
230
+ - - ! '>='
231
+ - !ruby/object:Gem::Version
232
+ version: '0'
235
233
  type: :development
236
234
  prerelease: false
237
- version_requirements: *id020
238
- - !ruby/object:Gem::Dependency
235
+ version_requirements: *2162583360
236
+ - !ruby/object:Gem::Dependency
239
237
  name: mysql
240
- requirement: &id021 !ruby/object:Gem::Requirement
238
+ requirement: &2162581940 !ruby/object:Gem::Requirement
241
239
  none: false
242
- requirements:
243
- - - ">="
244
- - !ruby/object:Gem::Version
245
- version: "0"
240
+ requirements:
241
+ - - ! '>='
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
246
244
  type: :development
247
245
  prerelease: false
248
- version_requirements: *id021
249
- - !ruby/object:Gem::Dependency
246
+ version_requirements: *2162581940
247
+ - !ruby/object:Gem::Dependency
250
248
  name: pg
251
- requirement: &id022 !ruby/object:Gem::Requirement
249
+ requirement: &2162579920 !ruby/object:Gem::Requirement
252
250
  none: false
253
- requirements:
254
- - - ">="
255
- - !ruby/object:Gem::Version
256
- version: "0"
251
+ requirements:
252
+ - - ! '>='
253
+ - !ruby/object:Gem::Version
254
+ version: '0'
257
255
  type: :development
258
256
  prerelease: false
259
- version_requirements: *id022
257
+ version_requirements: *2162579920
260
258
  description: An earth-simulation environment with ActiveRecord models and data
261
259
  email: andy@rossmeissl.net
262
- executables:
260
+ executables:
263
261
  - earth_tester.rb
264
262
  extensions: []
265
-
266
- extra_rdoc_files:
263
+ extra_rdoc_files:
267
264
  - LICENSE
268
265
  - LICENSE-PREAMBLE
269
266
  - README.markdown
270
- files:
267
+ files:
271
268
  - .document
272
269
  - .gitignore
273
270
  - Gemfile
@@ -458,8 +455,6 @@ files:
458
455
  - lib/earth/fuel/greenhouse_gas.rb
459
456
  - lib/earth/fuel/greenhouse_gas/data_miner.rb
460
457
  - lib/earth/hospitality.rb
461
- - lib/earth/hospitality/census_region_lodging_class.rb
462
- - lib/earth/hospitality/census_region_lodging_class/data_miner.rb
463
458
  - lib/earth/hospitality/commercial_building_energy_consumption_survey_response.rb
464
459
  - lib/earth/hospitality/commercial_building_energy_consumption_survey_response/data_miner.rb
465
460
  - lib/earth/hospitality/country_lodging_class.rb
@@ -589,6 +584,7 @@ files:
589
584
  - spec/spec_helper.rb
590
585
  - test/test_aircraft_match.rb
591
586
  - vendor/clean_find_in_batches/init.rb
587
+ - vendor/geokit-rails/.gitignore
592
588
  - vendor/geokit-rails/CHANGELOG.rdoc
593
589
  - vendor/geokit-rails/MIT-LICENSE
594
590
  - vendor/geokit-rails/README.markdown
@@ -601,6 +597,7 @@ files:
601
597
  - vendor/geokit-rails/lib/geokit-rails/acts_as_mappable.rb
602
598
  - vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
603
599
  - vendor/geokit-rails/lib/geokit-rails/adapters/mysql.rb
600
+ - vendor/geokit-rails/lib/geokit-rails/adapters/mysql2.rb
604
601
  - vendor/geokit-rails/lib/geokit-rails/adapters/postgresql.rb
605
602
  - vendor/geokit-rails/lib/geokit-rails/adapters/sqlserver.rb
606
603
  - vendor/geokit-rails/lib/geokit-rails/defaults.rb
@@ -631,41 +628,32 @@ files:
631
628
  - vendor/geokit-rails/test/schema.rb
632
629
  - vendor/geokit-rails/test/tasks.rake
633
630
  - vendor/geokit-rails/test/test_helper.rb
634
- has_rdoc: true
635
631
  homepage: https://github.com/brighterplanet/earth
636
632
  licenses: []
637
-
638
633
  post_install_message:
639
- rdoc_options:
634
+ rdoc_options:
640
635
  - --charset=UTF-8
641
- require_paths:
636
+ require_paths:
642
637
  - lib
643
- required_ruby_version: !ruby/object:Gem::Requirement
638
+ required_ruby_version: !ruby/object:Gem::Requirement
644
639
  none: false
645
- requirements:
646
- - - ">="
647
- - !ruby/object:Gem::Version
648
- hash: 4346878839567813019
649
- segments:
650
- - 0
651
- version: "0"
652
- required_rubygems_version: !ruby/object:Gem::Requirement
640
+ requirements:
641
+ - - ! '>='
642
+ - !ruby/object:Gem::Version
643
+ version: '0'
644
+ required_rubygems_version: !ruby/object:Gem::Requirement
653
645
  none: false
654
- requirements:
655
- - - ">="
656
- - !ruby/object:Gem::Version
657
- hash: 4346878839567813019
658
- segments:
659
- - 0
660
- version: "0"
646
+ requirements:
647
+ - - ! '>='
648
+ - !ruby/object:Gem::Version
649
+ version: '0'
661
650
  requirements: []
662
-
663
651
  rubyforge_project:
664
- rubygems_version: 1.6.2
652
+ rubygems_version: 1.8.10
665
653
  signing_key:
666
654
  specification_version: 3
667
655
  summary: Land, sky, and sea
668
- test_files:
656
+ test_files:
669
657
  - features/automobile_fuel.feature
670
658
  - features/automobile_make.feature
671
659
  - features/automobile_make_fleet_year.feature