trusted-sandbox 0.0.2.pre → 0.0.3.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/trusted_sandbox/uid_pool.rb +4 -4
- data/lib/trusted_sandbox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65d8c9598706cc02d3ccebccb7884bf5af92a4c0
|
4
|
+
data.tar.gz: 2fe3aa3e7101709109b160151f9bf9e45b0f006f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67a4756ecf129d955946de9daf469099149ff510c9494a40550b47208f24a5461d4fb335821421f9f73956a02f2f947c60bb22093b3c9120fb2d719ca697ceb4
|
7
|
+
data.tar.gz: bc1eef18d67ea80e35b6214cbc46adb80194507e83efda54fefc52dfebcb6689488495babb5f42a7ee6e90b75bdad7fe8cc5c4f0cccb20444b94fe1066af4ae0
|
@@ -34,16 +34,16 @@ module TrustedSandbox
|
|
34
34
|
# @option timeout [Integer] number of seconds to wait for the lock
|
35
35
|
# @option retries [Integer] number of attempts to retry to acquire a uid
|
36
36
|
# @option delay [Float] delay between retries
|
37
|
-
def initialize(lock_dir, lower, upper,
|
37
|
+
def initialize(lock_dir, lower, upper, options={})
|
38
38
|
@lock_dir = lock_dir
|
39
39
|
FileUtils.mkdir_p(lock_dir)
|
40
40
|
|
41
41
|
@master_lock_file = lock_file_path_for('master')
|
42
42
|
@lower = lower
|
43
43
|
@upper = upper
|
44
|
-
@timeout = timeout || 3
|
45
|
-
@retries = retries || 5
|
46
|
-
@delay = delay || 0.5
|
44
|
+
@timeout = options[:timeout] || options['timeout'] || 3
|
45
|
+
@retries = options[:retries] || options['retries'] || 5
|
46
|
+
@delay = options[:delay] || options['delay'] || 0.5
|
47
47
|
end
|
48
48
|
|
49
49
|
def inspect
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusted-sandbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amit Aharoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|