earth 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/earth.rb
CHANGED
data/lib/earth/all.rb
CHANGED
data/lib/earth/data_miner.rb
CHANGED
@@ -3,6 +3,7 @@ require 'earth/automobile/data_miner'
|
|
3
3
|
require 'earth/bus/data_miner'
|
4
4
|
require 'earth/diet/data_miner'
|
5
5
|
require 'earth/fuel/data_miner'
|
6
|
+
require 'earth/hospitality/data_miner'
|
6
7
|
require 'earth/industry/data_miner'
|
7
8
|
require 'earth/locality/data_miner'
|
8
9
|
require 'earth/pet/data_miner'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'earth/hospitality/lodging_class'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'earth/hospitality/lodging_class/data_miner'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class LodgingClass < ActiveRecord::Base
|
2
|
+
set_primary_key :name
|
3
|
+
|
4
|
+
has_many :lodgings
|
5
|
+
|
6
|
+
data_miner do
|
7
|
+
tap "Brighter Planet's lodging class data", Earth.taps_server
|
8
|
+
end
|
9
|
+
|
10
|
+
# FIXME TODO need reall emission_factor
|
11
|
+
falls_back_on :emission_factor => 1.0
|
12
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: earth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 87
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 36
|
10
|
+
version: 0.0.36
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Seamus Abshere
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-09-
|
20
|
+
date: 2010-09-10 00:00:00 -04:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -287,6 +287,10 @@ files:
|
|
287
287
|
- lib/earth/fuel/fuel_price/data_miner.rb
|
288
288
|
- lib/earth/fuel/fuel_type.rb
|
289
289
|
- lib/earth/fuel/fuel_type/data_miner.rb
|
290
|
+
- lib/earth/hospitality.rb
|
291
|
+
- lib/earth/hospitality/data_miner.rb
|
292
|
+
- lib/earth/hospitality/lodging_class.rb
|
293
|
+
- lib/earth/hospitality/lodging_class/data_miner.rb
|
290
294
|
- lib/earth/industry.rb
|
291
295
|
- lib/earth/industry/data_miner.rb
|
292
296
|
- lib/earth/industry/industries_product_lines.rb
|