item_models 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 314088a7af4e6bd0c431eba03e472e7d07396e3469411bc66b13ed8fdcca1d1b
4
+ data.tar.gz: c76223de463bc63858eacbb680a66c3df393625f6970dc1432cdc5c885725313
5
+ SHA512:
6
+ metadata.gz: dce1a3fa5b1fcead3696d2e6a69d2f572b6f8f922d708e9ad442424b71acd7189de1a539ff4f7f66f9c084f82e4b34c2b88b3d7e2d1ad37a26283550af788b75
7
+ data.tar.gz: 60f5eb9acbb9496e15e43b773d1589c4387f7b713d846152db9702af2e9173392663a255d6fc71ce4cdfce96434e98b9a26c47bf547c53282a77d9319e84cbee
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'item_models/version'
4
+
5
+ module ItemModels
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ def self.load
9
+ files.each {|file| require file }
10
+ end
11
+
12
+ private
13
+
14
+ def self.files
15
+ Dir[ directory + '/lib/models/*.rb']
16
+ end
17
+
18
+ def self.directory
19
+ Gem::Specification.find_by_name("item_models").gem_dir
20
+ end
21
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ItemModels
4
+ VERSION = '0.0.1'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AvailabilityOption < ApplicationRecord
4
+ self.table_name = 'item_activities'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AvailabilityOption < ApplicationRecord
4
+ self.table_name = 'item_availability_options'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Bundle < ApplicationRecord
4
+ self.table_name = 'item_bundles'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class BundleVariant < ApplicationRecord
4
+ self.table_name = 'item_bundle_variants'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Image < ApplicationRecord
4
+ self.table_name = 'item_images'
5
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Item < ApplicationRecord
4
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListing < ApplicationRecord
4
+ self.table_name = 'item_channel_associations'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingBrand < ApplicationRecord
4
+ self.table_name = 'item_channel_association_brands'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingCategory < ApplicationRecord
4
+ self.table_name = 'item_channel_association_categories'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingCustomField < ApplicationRecord
4
+ self.table_name = 'item_channel_association_custom_fields'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingImage < ApplicationRecord
4
+ self.table_name = 'item_channel_association_images'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingVariantCustomField < ApplicationRecord
4
+ self.table_name = 'item_channel_association_variant_images'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingVariantImage < ApplicationRecord
4
+ self.table_name = 'item_channel_association_variant_images'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class MasterCatalog < ApplicationRecord
4
+ self.table_name = 'item_variant_master_assocs'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class MasterCatalogImage < ApplicationRecord
4
+ self.table_name = 'item_variant_master_image_assocs'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Variant < ApplicationRecord
4
+ self.table_name = 'item_variants'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantImage < ApplicationRecord
4
+ self.table_name = 'item_variant_images'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantListing < ApplicationRecord
4
+ self.table_name = 'item_channel_association_variant_associations'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantListingPriceHistory < ApplicationRecord
4
+ self.table_name = 'item_channel_association_variant_association_stock_allocations'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantListingStockAllocation < ApplicationRecord
4
+ self.table_name = 'item_channel_association_variant_association_stock_allocations'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantOption < ApplicationRecord
4
+ self.table_name = 'item_variant_options'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantOptionAssociation < ApplicationRecord
4
+ self.table_name = 'item_variant_option_associations'
5
+ end
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: item_models
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - alexander
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-01-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description:
56
+ email:
57
+ - alxibra@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - lib/item_models.rb
63
+ - lib/item_models/version.rb
64
+ - lib/models/activity.rb
65
+ - lib/models/availability_option.rb
66
+ - lib/models/bundle.rb
67
+ - lib/models/bundle_variant.rb
68
+ - lib/models/image.rb
69
+ - lib/models/item.rb
70
+ - lib/models/item_listing.rb
71
+ - lib/models/item_listing_brand.rb
72
+ - lib/models/item_listing_category.rb
73
+ - lib/models/item_listing_custom_field.rb
74
+ - lib/models/item_listing_image.rb
75
+ - lib/models/item_listing_variant_custom_field.rb
76
+ - lib/models/item_listing_variant_image.rb
77
+ - lib/models/master_catalog.rb
78
+ - lib/models/master_catalog_image.rb
79
+ - lib/models/variant.rb
80
+ - lib/models/variant_image.rb
81
+ - lib/models/variant_listing.rb
82
+ - lib/models/variant_listing_price_history.rb
83
+ - lib/models/variant_listing_stock_allocation.rb
84
+ - lib/models/variant_option.rb
85
+ - lib/models/variant_option_association.rb
86
+ homepage:
87
+ licenses:
88
+ - MIT
89
+ metadata: {}
90
+ post_install_message:
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ - lib/models
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubygems_version: 3.0.3
107
+ signing_key:
108
+ specification_version: 4
109
+ summary: gem for active record item models
110
+ test_files: []