dddr 2.0.1 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dddr/sdbm.rb +10 -10
- data/lib/dddr/version.rb +1 -1
- data/lib/dddr.rb +0 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da1458c32e2bba6a0a94f1014aac39675ca2267790a50d7fcb09e1c8af0cc2d9
|
4
|
+
data.tar.gz: 96b8c4d7f5d2adea851ba8abd61d5a3e2a5dd587523a0b789459d1e1b9a76d64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 390527b09424ef5cde4da811fbc32cab8823af20001473ca975c4d629842294133676000d9eefe1b1d606ecf286860fa4d5e284b55790bc0f7a4e2e750368ac2
|
7
|
+
data.tar.gz: 66c3b7cd6f43cb8d6559e643c3627e9accb7e269d43b9b730398b8ad8b11e8e51047c76759566579a38ccb4847772f043172ef921b4aadcc680719a726794408
|
data/lib/dddr/sdbm.rb
CHANGED
@@ -64,15 +64,15 @@ module Dddr
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def to_csv
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
67
|
+
env = Dddr.configuration.env
|
68
|
+
data_dir = Dddr.configuration.data_dir
|
69
|
+
container = Dddr.configuration.container
|
70
|
+
CSV.open("#{data_dir}/#{container}/#{env}/#{self.class.name}.csv", "w") do |csv|
|
71
|
+
csv = all.first&.to_hash&.keys
|
72
|
+
all.each do |entity|
|
73
|
+
csv << entity.to_hash.values
|
74
|
+
end
|
75
|
+
end
|
76
76
|
end
|
77
77
|
|
78
78
|
|
@@ -160,7 +160,7 @@ module Dddr
|
|
160
160
|
|
161
161
|
def from_hash(uid, data_hash)
|
162
162
|
self.uid = uid
|
163
|
-
data_hash
|
163
|
+
data_hash&.each do |attribute, value|
|
164
164
|
attribute = attribute.to_sym
|
165
165
|
if respond_to?(:"#{attribute}=")
|
166
166
|
send(:"#{attribute}=", value)
|
data/lib/dddr/version.rb
CHANGED
data/lib/dddr.rb
CHANGED
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.0.
|
4
|
+
version: 2.0.3
|
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-02-
|
11
|
+
date: 2024-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sdbm
|