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 +1 -1
- data/earth.gemspec +1 -1
- data/lib/earth/industry/industries_product_lines.rb +10 -0
- data/lib/earth/industry/industries_sectors.rb +9 -0
- data/lib/earth/industry/merchant.rb +8 -0
- data/lib/earth/industry/merchant_categories_industries.rb +9 -0
- data/lib/earth/industry/merchant_category.rb +7 -0
- data/lib/earth/industry/product_lines_sectors.rb +9 -0
- data/lib/earth/industry/sector.rb +9 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.19
|
data/earth.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{earth}
|
8
|
-
s.version = "0.0.
|
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
|
@@ -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
|
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: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 19
|
10
|
+
version: 0.0.19
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Seamus Abshere
|