sidekiq-serialized_current_attributes 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa722051bda03b4b9acc81a0b1ef7abddefecc129f28c68eec5eb0cdd1b94502
|
4
|
+
data.tar.gz: 19872b237065d65373dd35cbf2ec614c21f0e62737248ef2af33b56ed032f167
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07604a7f57cd3a80133b5e5923cb01373165d89ca6844a9b2d9a5b70424f5c8486d3e153b8bc737138d22b51ae27be5371364864954274ee36c7e3ff57c590ae
|
7
|
+
data.tar.gz: 50180a01d398a53b79c2fd3b35e37b454e7c7f27d9c15e3e56728780a37f92b6e5e0aecd1c00c943983836a3e0ca496eb5e82a9869f1925d130500ccdc57c4c7
|
data/README.md
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
87
|
+
rubygems_version: 3.5.15
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Serialize CurrentAttributes for Sidekiq
|