dddr 2.3.0 → 2.4.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: d2f6afaa1eb4dfe12d0b23863245fed79c2bceaa2d4b07a800d6139f25ff4c11
4
- data.tar.gz: ef76a7d071a37b57ad42872b8ce08acff77ceb613c5d8fbcdbd180ae5066b6c1
3
+ metadata.gz: 3967837aa56e6910bdf8ffc00d575c521fb1454814c3c9895a7335b17cbc877f
4
+ data.tar.gz: 77de95c903cff093d1db2d625c0d94dfb58eba214014b731fb40e58abe3c500b
5
5
  SHA512:
6
- metadata.gz: 86b6bbe5171e50157b17bf4a1ba79852950b331c8e1f13e5219f81363228341cfd7f9166830ced1ef2d0cd93ff6d29580a49f31e50ac35aadcb8e64beedfb978
7
- data.tar.gz: d11b34ef26630fac36b37ebe45bbc63d768fe7a96db17df10f9cf8e65f68da5dda2b440f1add108a816e00d20ca6cd2df4a314ab4102ebb3b931cbd10d756335
6
+ metadata.gz: 668227ed62d727887f0866d1eb4ba4b4d5ff9dc293c6122e7b20a828f07d97966dc43572006f1b807d16750e635d6fd91940baead953f1ba4aaa214119e6ffa7
7
+ data.tar.gz: 65836fea37bc4123d59cd33779e11cb05600b4e0cbd20b08d25cdc9a63a65c33c1c5c122a23911c602fad7f2eefd3eccf77eb899cf97e117926aaeca7bccf75a
data/lib/dddr/sdbm.rb CHANGED
@@ -168,13 +168,11 @@ module Dddr
168
168
  end
169
169
 
170
170
  def from_hash(uid, data_hash)
171
- Mutex.new.synchronize do
172
- self.uid = uid
173
- data_hash&.each do |attribute, value|
174
- attribute = attribute.to_sym
175
- if respond_to?(:"#{attribute}=")
176
- send(:"#{attribute}=", value)
177
- end
171
+ self.uid = uid
172
+ data_hash&.each do |attribute, value|
173
+ attribute = attribute.to_sym
174
+ if respond_to?(:"#{attribute}=")
175
+ send(:"#{attribute}=", value)
178
176
  end
179
177
  end
180
178
  end
data/lib/dddr/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dddr
4
- VERSION = "2.3.0"
4
+ VERSION = "2.4.0"
5
5
  end
data/lib/dddr.rb CHANGED
@@ -32,20 +32,15 @@ module Dddr
32
32
 
33
33
  class Serializer
34
34
  def initialize(engine)
35
- @mutex = Mutex.new
36
35
  @engine = engine
37
36
  end
38
37
 
39
38
  def dump(obj)
40
- @mutex.synchronize do
41
39
  @engine.dump(obj)
42
- end
43
40
  end
44
41
 
45
42
  def load(obj)
46
- @mutex.synchronize do
47
43
  @engine.load(obj)
48
- end
49
44
  end
50
45
  end
51
46
 
@@ -73,10 +68,12 @@ module Dddr
73
68
  include Dddr::Sdbm
74
69
  base.extend(Dddr::Sdbm::ClassMethods)
75
70
  end
71
+
76
72
  if Dddr.configuration.engine == :sequel
77
73
  include Dddr::Sequel
78
74
  base.extend(Dddr::Sequel::ClassMethods)
79
75
  end
76
+
80
77
  end
81
78
 
82
79
  attr_accessor :uid, :created_at, :last_updated_at, :deleted, :deleted_at
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dddr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Burke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-09 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sdbm