global-registry-bindings 0.8.0 → 0.8.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55800dfbfa2f1fbfba6a039f3c5cf1730c5e9851895434763923e24d3a8bcc0f
4
- data.tar.gz: 59f6753938295cf55faaa971e36088d7c5649ffa7e86be7642db7bedf920db4a
3
+ metadata.gz: 8715379a5f7aa0eedd220ed188726d5baf98fdddf7a19cc5909c50a37e265f5a
4
+ data.tar.gz: b5760b4da33aa304a48dc72653304fd5e5d3fc49b969df9c59c9f213ab33408a
5
5
  SHA512:
6
- metadata.gz: 5278459b66d81d1a35f644cd4dcf57193a791555b0e1ff86e52a787dca7d01d7ed9a82ecf42190063f2e9c43c2d50180bcc1130af92945e90a05638bb8635603
7
- data.tar.gz: 465b8e6760171ba632a84a2fabed6bf48b6f1dae8ceadb8c54acf6a40a13648225e02e08b04b905f896f07ad9181c879242d88eb862c83a44c7f243a4e4d2b80
6
+ metadata.gz: 5d84f2656fa02ec1439c69eff316708d99129f1407663a2a640d062361170a13506dd7f9dd19c9f44ede6d01130f757961d2296bdc20981078e10bb39124ba0e
7
+ data.tar.gz: 03b98c9983ac8cf7ef9954ce2ef9e1fbe80575c2f873c35d104bc384fd2ce7ea0af5ec3023bfac247fb14efb18332a2eb973416966fcc9b5ffc5d556f2919c74
@@ -53,6 +53,7 @@ module GlobalRegistry # :nodoc:
53
53
 
54
54
  def global_registry_bindings_entity_includes
55
55
  include Model::Entity
56
+
56
57
  if global_registry_entity.push_on.any? { |item| %i[create update].include? item }
57
58
  include Model::PushEntity
58
59
  end
@@ -58,7 +58,7 @@ module GlobalRegistry # :nodoc:
58
58
  end
59
59
 
60
60
  def update_association_classes
61
- unless @options[:parent_class] # rubocop:disable Style/GuardClause
61
+ if @options[:parent_class].nil? && @options[:parent] # rubocop:disable Style/GuardClause
62
62
  @options[:parent_class] = association_class @options[:parent]
63
63
  end
64
64
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GlobalRegistry # :nodoc:
4
4
  module Bindings # :nodoc:
5
- VERSION = "0.8.0"
5
+ VERSION = "0.8.1"
6
6
  end
7
7
  end
@@ -10,6 +10,7 @@ module GlobalRegistry # :nodoc:
10
10
  class PushEntityWorker < GlobalRegistry::Bindings::Worker
11
11
  include GlobalRegistry::Bindings::Entity::EntityTypeMethods
12
12
  include GlobalRegistry::Bindings::Entity::PushEntityMethods
13
+
13
14
  sidekiq_options unique: :until_and_while_executing
14
15
 
15
16
  def perform(model_class, id)
@@ -10,6 +10,7 @@ module GlobalRegistry # :nodoc:
10
10
  class PushRelationshipWorker < GlobalRegistry::Bindings::Worker
11
11
  include GlobalRegistry::Bindings::Entity::RelationshipTypeMethods
12
12
  include GlobalRegistry::Bindings::Entity::PushRelationshipMethods
13
+
13
14
  sidekiq_options unique: :until_and_while_executing
14
15
 
15
16
  attr_accessor :type
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global-registry-bindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Zoetewey
@@ -354,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
354
  - !ruby/object:Gem::Version
355
355
  version: '0'
356
356
  requirements: []
357
- rubygems_version: 3.6.8
357
+ rubygems_version: 3.7.2
358
358
  specification_version: 4
359
359
  summary: ActiveRecord bindings for Global Registry
360
360
  test_files: []