dddr 2.0.2 → 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 +9 -9
- data/lib/dddr/version.rb +1 -1
- data/lib/dddr.rb +0 -4
- metadata +1 -1
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
|
|
data/lib/dddr/version.rb
CHANGED
data/lib/dddr.rb
CHANGED