secretfile 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/secretfile.rb +6 -1
- data/lib/secretfile/version.rb +1 -1
- 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: 7c8046a3800e891151a5e7b618fa73bec9a883b76a9873c3b78b0ad24168674a
|
4
|
+
data.tar.gz: 2ff840b762bbc941e305716472a4d50f0cf36443a88304bf568c89794be94f0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b406a0b137e58907110a3cb3fc8eb90f9f34aa4fb37c43c8cee8931c9defb61292b70f466f8ee41ead9430e2b5da697517aad966f76b61dce4aa3fc469ced3e
|
7
|
+
data.tar.gz: ecdf1aeb021e757f666eb311db17a7f8e781962acbba5986c861ec27a98e7428a7daddfd6af11f32feba40c6402039e19b99d6666477911e6b7711f6317cfa0e
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/secretfile.rb
CHANGED
@@ -13,7 +13,10 @@ class Secretfile
|
|
13
13
|
|
14
14
|
def group
|
15
15
|
begin
|
16
|
-
instance.
|
16
|
+
instance.mutex.synchronize do
|
17
|
+
raise "Can't nest Secretfile.group" if instance.group
|
18
|
+
instance.group = {}
|
19
|
+
end
|
17
20
|
yield
|
18
21
|
ensure
|
19
22
|
instance.group = nil
|
@@ -22,10 +25,12 @@ class Secretfile
|
|
22
25
|
end
|
23
26
|
|
24
27
|
attr_reader :spec
|
28
|
+
attr_reader :mutex
|
25
29
|
attr_accessor :group
|
26
30
|
|
27
31
|
def initialize
|
28
32
|
super # singleton magic i guess
|
33
|
+
@mutex = Mutex.new
|
29
34
|
read_spec
|
30
35
|
end
|
31
36
|
|
data/lib/secretfile/version.rb
CHANGED