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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cab395c868292a8a01f627b5d99967d50ba266ad95066ab2f7915bf46dc7743
4
- data.tar.gz: 888fbb3077de56f78fce8659f7213cc2ef588c7ba7d9d30ce7f8acc0bb086a2e
3
+ metadata.gz: da1458c32e2bba6a0a94f1014aac39675ca2267790a50d7fcb09e1c8af0cc2d9
4
+ data.tar.gz: 96b8c4d7f5d2adea851ba8abd61d5a3e2a5dd587523a0b789459d1e1b9a76d64
5
5
  SHA512:
6
- metadata.gz: f87a05546bd55e3d70c27f34d18d9f6910a37343e0472c3360e67c469ca26998bb038bdafade0312de944ff16456dfde367438756a83fa76be2e7d0aaa63ae40
7
- data.tar.gz: 5136621890bb41ff20e409cd2d0f89456eb238eaa24558b2bff641fcd986baa32e1c7813b545935f7d67dd855969e6fe8d0114e3ff6217af8e089139b1cac1b2
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
- # 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
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dddr
4
- VERSION = "2.0.2"
4
+ VERSION = "2.0.3"
5
5
  end
data/lib/dddr.rb CHANGED
@@ -47,11 +47,7 @@ module Dddr
47
47
  module Entity
48
48
  def self.included(base)
49
49
  if Dddr.configuration.engine == :sdbm
50
-
51
- puts "Including #{base.name}"
52
-
53
50
  Dddr::ENTITIES << base
54
-
55
51
  include Dddr::Sdbm
56
52
  base.extend(Dddr::Sdbm::ClassMethods)
57
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dddr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Burke