dddr 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dddr/version.rb +1 -1
- data/lib/dddr.rb +5 -3
- 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: 2da332f599be7d13a4adedc658585790e89e0858c4099fb99e9290ca037479c7
|
4
|
+
data.tar.gz: b40d4436c2b3865c036ff66212bc9bb4bb848732d0092ed039155700c88858bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58d83c8ba4c954fda9ad24ab1dfc3990e388b882c0052184519f64aeb992430c029a22a7b26cd1cd6ec0e710e862fe59ec630560031b93ed9b1da70636756739
|
7
|
+
data.tar.gz: bddfecd4503655e41c43eed62ee0108ff7ecb82fc97baf997deae8ac28584ae38dae3bb9b0ce2085e8f7643d5d9e0252df68f2b521136cc3c7a646a0a7a05e71
|
data/lib/dddr/version.rb
CHANGED
data/lib/dddr.rb
CHANGED
@@ -14,7 +14,8 @@ module Dddr
|
|
14
14
|
|
15
15
|
def self.configure
|
16
16
|
configuration.env = ENV["DDDR_ENV"] || "development"
|
17
|
-
configuration.data_dir = "
|
17
|
+
configuration.data_dir = "/var/dddr"
|
18
|
+
configuration.container = "#{File.basename(Dir.pwd)}"
|
18
19
|
yield(configuration) if block_given?
|
19
20
|
end
|
20
21
|
|
@@ -39,6 +40,7 @@ module Dddr
|
|
39
40
|
end
|
40
41
|
|
41
42
|
def const_missing(name)
|
43
|
+
|
42
44
|
@@context = self
|
43
45
|
|
44
46
|
if defined?(self::Queries)
|
@@ -51,8 +53,8 @@ module Dddr
|
|
51
53
|
def initialize(entity_class = @@context)
|
52
54
|
@entity_class = entity_class
|
53
55
|
env = Dddr.configuration.env
|
54
|
-
`mkdir -p #{Dddr.configuration.data_dir}/#{env}
|
55
|
-
@name = "#{Dddr.configuration.data_dir}/#{env}/#{entity_class.name}"
|
56
|
+
`mkdir -p #{Dddr.configuration.data_dir}/#{Dddr.configuration.container}/#{env}/`
|
57
|
+
@name = "#{Dddr.configuration.data_dir}/#{Dddr.configuration.container}/#{env}/#{entity_class.name.downcase}"
|
56
58
|
end
|
57
59
|
|
58
60
|
def add(entity)
|
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: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delaney Burke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sdbm
|