earth 0.0.18 → 0.0.19

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.18
1
+ 0.0.19
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{earth}
8
- s.version = "0.0.18"
8
+ s.version = "0.0.19"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Seamus Abshere", "Derek Kastner", "Andy Rossmeissl"]
@@ -3,4 +3,14 @@ class IndustriesProductLines < ActiveRecord::Base
3
3
 
4
4
  belongs_to :industry, :foreign_key => 'naics_code'
5
5
  belongs_to :product_line, :foreign_key => 'ps_code'
6
+
7
+ data_miner do
8
+ schema Earth.database_options do
9
+ string 'row_hash'
10
+ string 'naics_code'
11
+ float 'ratio'
12
+ string 'ps_code'
13
+ float 'revenue_allocated'
14
+ end
15
+ end
6
16
  end
@@ -3,4 +3,13 @@ class IndustriesSectors < ActiveRecord::Base
3
3
 
4
4
  belongs_to :industry, :foreign_key => 'naics_code'
5
5
  belongs_to :sector, :foreign_key => 'io_code'
6
+
7
+ data_miner do
8
+ schema Earth.database_options do
9
+ string 'row_hash'
10
+ string 'naics_code'
11
+ float 'ratio'
12
+ string 'io_code'
13
+ end
14
+ end
6
15
  end
@@ -2,4 +2,12 @@ class Merchant < ActiveRecord::Base
2
2
  set_primary_key :id
3
3
 
4
4
  belongs_to :merchant_category, :foreign_key => 'mcc'
5
+
6
+ data_miner do
7
+ schema Earth.database_options do
8
+ string 'id'
9
+ string 'name'
10
+ string 'mcc'
11
+ end
12
+ end
5
13
  end
@@ -5,4 +5,13 @@ class MerchantCategoriesIndustries < ActiveRecord::Base
5
5
  belongs_to :industry, :foreign_key => 'naics_code'
6
6
  has_many :industries_product_lines, :through => :industry, :class_name => 'IndustriesProductLines'
7
7
  has_many :industries_sectors, :through => :industry, :class_name => 'IndustriesSectors'
8
+
9
+ data_miner do
10
+ schema Earth.database_options do
11
+ string 'row_hash'
12
+ string 'mcc'
13
+ float 'ratio'
14
+ string 'naics_code'
15
+ end
16
+ end
8
17
  end
@@ -3,4 +3,11 @@ class MerchantCategory < ActiveRecord::Base
3
3
 
4
4
  has_many :merchant_categories_industries, :foreign_key => 'mcc', :class_name => 'MerchantCategoriesIndustries'
5
5
  has_many :industries, :through => :merchant_categories_industries
6
+
7
+ data_miner do
8
+ schema Earth.database_options do
9
+ string 'mcc'
10
+ string 'description'
11
+ end
12
+ end
6
13
  end
@@ -3,4 +3,13 @@ class ProductLinesSectors < ActiveRecord::Base
3
3
 
4
4
  belongs_to :product_line, :foreign_key => 'ps_code'
5
5
  belongs_to :sector, :foreign_key => 'io_code'
6
+
7
+ data_miner do
8
+ schema Earth.database_options do
9
+ string 'row_hash'
10
+ string 'ps_code'
11
+ float 'ratio'
12
+ string 'io_code'
13
+ end
14
+ end
6
15
  end
@@ -1,3 +1,12 @@
1
1
  class Sector < ActiveRecord::Base
2
2
  set_primary_key :io_code
3
+
4
+ data_miner do
5
+ schema Earth.database_options do
6
+ string 'io_code'
7
+ string 'description'
8
+ float 'emission_factor'
9
+ string 'emission_factor_units'
10
+ end
11
+ end
3
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: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 18
10
- version: 0.0.18
9
+ - 19
10
+ version: 0.0.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Seamus Abshere