effective_products 0.4.0 → 0.5.0

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: ae9800b96a6f375ca67ce8dc0f46f0324a33958404debfc3e1fd0d9143db9bbe
4
- data.tar.gz: 7160df9d3c521738108b6051ca5c7c1b0274668667351a380597104829fb1ce9
3
+ metadata.gz: 6fcdbeb5c90fb3b4d7a67d83deb961d25f7158229300d3afc56d936441b79ca0
4
+ data.tar.gz: 7cce45fb0b386fd6389d60294e53a854d44f3b764d71a77d9603679b550cc00a
5
5
  SHA512:
6
- metadata.gz: 25c627e59ff932a4fc4be7b5001f9e65bce0c237cdbcd64350f39759a72b87e55f07517e5e3ab118acbb195fa36fc27c65bec615e7bb8e74dccdaaa631318b92
7
- data.tar.gz: 0c9edae9f2ddeee94927abbd1788e9bae6f19e131e3acba02b664765970d8be20479005bc1386c45f5e1bd60440466a9d84aa1c90bfc475cbb939e2fce585b46
6
+ metadata.gz: 1783696edd49f896da317f8e73fdf8a884a5cca7697d71e233376d7fa0c75603133049454d6a40ffa205f260b02a6f101e6069ced13555b6f4eae311d12acc93
7
+ data.tar.gz: 8ef6e547e4d29ca9346604b59631ff5e30354727d77173d815330e8dfc640288c7ae6d6898a7acfb079d193ad07b8316e09e4d02e267b585097326bd2f9fa1f6
@@ -44,7 +44,7 @@ module EffectiveProductsRingWizard
44
44
  accepts_nested_attributes_for :owner
45
45
 
46
46
  # Effective Namespace
47
- has_many :rings, -> { order(:id) }, class_name: 'Effective::Ring', as: :parent, dependent: :destroy
47
+ has_many :rings, -> { order(:id) }, class_name: 'Effective::Ring', as: :parent, inverse_of: :parent, dependent: :destroy
48
48
  accepts_nested_attributes_for :rings, reject_if: :all_blank, allow_destroy: true
49
49
 
50
50
  effective_resource do
@@ -44,7 +44,7 @@ module EffectiveProductsStampWizard
44
44
  accepts_nested_attributes_for :owner
45
45
 
46
46
  # Effective Namespace
47
- has_many :stamps, -> { order(:id) }, class_name: 'Effective::Stamp', as: :parent, dependent: :destroy
47
+ has_many :stamps, -> { order(:id) }, class_name: 'Effective::Stamp', as: :parent, inverse_of: :parent, dependent: :destroy
48
48
  accepts_nested_attributes_for :stamps, reject_if: :all_blank, allow_destroy: true
49
49
 
50
50
  effective_resource do
@@ -4,8 +4,8 @@ EffectiveProducts.setup do |config|
4
4
  # config.layout = { application: 'application', admin: 'admin' }
5
5
 
6
6
  # Payment Wizard Settings
7
- # config.ring_wizards_class_name = 'Effective::RingWizard'
8
- # config.stamp_wizards_class_name = 'Effective::StampWizard'
7
+ # config.ring_wizard_class_name = 'Effective::RingWizard'
8
+ # config.stamp_wizard_class_name = 'Effective::StampWizard'
9
9
 
10
10
  # The available stamp categories
11
11
  config.stamp_categories = ['Physical', 'Digital-only', 'Stamp', 'Stamp and Certificate']
@@ -1,3 +1,3 @@
1
1
  module EffectiveProducts
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.5.0'.freeze
3
3
  end
@@ -17,11 +17,11 @@ module EffectiveProducts
17
17
  include EffectiveGem
18
18
 
19
19
  def self.RingWizard
20
- ring_wizard_class_name&.constantize || Effective::RingWizard
20
+ klass(:ring_wizard)
21
21
  end
22
22
 
23
23
  def self.StampWizard
24
- stamp_wizard_class_name&.constantize || Effective::StampWizard
24
+ klass(:stamp_wizard)
25
25
  end
26
26
 
27
27
  def self.stamp_categories
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-06-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -289,7 +288,6 @@ homepage: https://github.com/code-and-effect/effective_products
289
288
  licenses:
290
289
  - MIT
291
290
  metadata: {}
292
- post_install_message:
293
291
  rdoc_options: []
294
292
  require_paths:
295
293
  - lib
@@ -304,8 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
302
  - !ruby/object:Gem::Version
305
303
  version: '0'
306
304
  requirements: []
307
- rubygems_version: 3.5.9
308
- signing_key:
305
+ rubygems_version: 4.0.17
309
306
  specification_version: 4
310
307
  summary: Highly customized product sales for member associations
311
308
  test_files: []