item_models 0.0.8 → 0.0.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23b9aa22818ac5a25ddd0129cf10b25e1a319fa5c7b701071c367d0772db7094
4
- data.tar.gz: 80e0af200583ccd374813a8d8998cf751c3445d5f3dab58f27942bdd186b658f
3
+ metadata.gz: 9992d5a29e713769f3afca0e2715094e57eb6f15b97aeb1864e3e70b3d9185b9
4
+ data.tar.gz: c05a9d94ce8ff1eef97645c9c262fc4c9a6b5fb72ed11f644aa7260e7474efeb
5
5
  SHA512:
6
- metadata.gz: 66fd1b30d426356b447888a9a207239213c29bcd178126f6dc1751ed9a494cd304047cc4e42db2899e4784547732f8f2af85191d270691235a824b7c11b28e1e
7
- data.tar.gz: 48d3094905367f87c57bace46c22b321c573658eb452d73ba6ca074fa5b47195e8113eab397c16d18bd04ad01856150e0dddb1f8856b2159139d696c26a0ad2b
6
+ metadata.gz: f13c5f6079c665c16368a497bd63114bac36f79c7571fdc840469130b00556de259901598a91cf697b185798e53760448ba3630b27971d67cce9b2761cfe39f7
7
+ data.tar.gz: 1ea2479ce2640bb366d3db5b5ae0b6a71f7edf3b008128f11a7f8dc7a7b503fb71771e371d50555edbd8e95875563c44a7c857765448a34dea41d86b8eb0e378
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ItemModels
4
- VERSION = '0.0.8'
4
+ VERSION = '0.0.9'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Activity < ItemApplicationRecord
3
+ class Activity < ItemAplicationRecord
4
4
  self.table_name = 'item_activities'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AvailabilityOption < ItemApplicationRecord
3
+ class AvailabilityOption < ItemAplicationRecord
4
4
  self.table_name = 'item_availability_options'
5
5
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Bundle < ItemApplicationRecord
3
+ class Bundle < ItemAplicationRecord
4
4
  self.table_name = 'item_bundles'
5
5
 
6
6
  belongs_to :variant
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class ItemApplicationRecord < ActiveRecord::Base
3
+ class ItemAplicationRecord < ActiveRecord::Base
4
4
  self.abstract_class = true
5
5
  connects_to database: { writing: :item_model, reading: :item_model }
6
6
  end
@@ -5,6 +5,6 @@ class VariantListing < ItemApplicationRecord
5
5
 
6
6
  belongs_to :variant
7
7
  belongs_to :item_listing
8
- has_many :variant_listing_stock_allocations, foreign_key: :variant_association_id
8
+ has_one :variant_listing_stock_allocation, foreign_key: :variant_association_id
9
9
  has_many :variant_listing_price_histories, foreign_key: :variant_association_id
10
10
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: item_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - alexander
8
+ - kevin
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
12
+ date: 2020-06-25 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -55,7 +56,7 @@ dependencies:
55
56
  description:
56
57
  email:
57
58
  - alxibra@gmail.com
58
- - ivanderkevin@gmail.com
59
+ - ivanderkevin1@gmail.com
59
60
  executables: []
60
61
  extensions: []
61
62
  extra_rdoc_files: []