sidekiq-serialized_current_attributes 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91c092e36670c4579937a1a718f6c13ee2d043db3477947a263c3df9d838cd06
4
- data.tar.gz: 06eda027e6e4d2e84e3b4906b52647ffa4a49eaf5580d23be1ace0d0418d22af
3
+ metadata.gz: aa722051bda03b4b9acc81a0b1ef7abddefecc129f28c68eec5eb0cdd1b94502
4
+ data.tar.gz: 19872b237065d65373dd35cbf2ec614c21f0e62737248ef2af33b56ed032f167
5
5
  SHA512:
6
- metadata.gz: 89dea06a68b3528a357da412c56d9b447f43680797695dee12fffcd9abb1820bb49945d6023358946db139625c8a202b205645a460ca95d858fa6daae7d6cebc
7
- data.tar.gz: 6833957731271dd8efeeb3cc64148190c49a49fe4c576c05a10290f70f511060c437d3aa6ec6d947c55b8bb10a05b87fd5663f34e991375d865730375fba96ae
6
+ metadata.gz: 07604a7f57cd3a80133b5e5923cb01373165d89ca6844a9b2d9a5b70424f5c8486d3e153b8bc737138d22b51ae27be5371364864954274ee36c7e3ff57c590ae
7
+ data.tar.gz: 50180a01d398a53b79c2fd3b35e37b454e7c7f27d9c15e3e56728780a37f92b6e5e0aecd1c00c943983836a3e0ca496eb5e82a9869f1925d130500ccdc57c4c7
data/README.md CHANGED
@@ -29,6 +29,11 @@ Sidekiq::SerializedCurrentAttributes.discard_destroyed = true
29
29
 
30
30
  ## Changelog
31
31
 
32
+ ### 0.1.3 (2024-10-28)
33
+
34
+ - Reference global ::ActiveJob
35
+ - Prepend Load to server middleware
36
+
32
37
  ### 0.1.2 (2024-01-08)
33
38
 
34
39
  - Change license to LGPL
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module SerializedCurrentAttributes
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
@@ -36,7 +36,7 @@ module Sidekiq
36
36
  attributes = attributes.reject { |_, value| value.is_a?(GlobalID::Identification) && value.respond_to?(:destroyed?) && value.destroyed? }
37
37
  end
38
38
 
39
- serialized_values = ActiveJob::Arguments.serialize(attributes.values)
39
+ serialized_values = ::ActiveJob::Arguments.serialize(attributes.values)
40
40
  attributes.keys.zip(serialized_values).to_h
41
41
  end
42
42
  end
@@ -69,7 +69,7 @@ module Sidekiq
69
69
  end
70
70
 
71
71
  def deserialize(attributes)
72
- deserialized_values = ActiveJob::Arguments.deserialize(attributes.values)
72
+ deserialized_values = ::ActiveJob::Arguments.deserialize(attributes.values)
73
73
  attributes.keys.zip(deserialized_values).to_h
74
74
  end
75
75
  end
@@ -79,7 +79,7 @@ module Sidekiq
79
79
  cattrs = build_cattrs_hash(klass_or_array)
80
80
 
81
81
  config.client_middleware.add Save, cattrs
82
- config.server_middleware.add Load, cattrs
82
+ config.server_middleware.prepend Load, cattrs
83
83
  end
84
84
 
85
85
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-serialized_current_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabian Schwahn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-08 00:00:00.000000000 Z
11
+ date: 2024-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.4.10
87
+ rubygems_version: 3.5.15
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Serialize CurrentAttributes for Sidekiq