docker-spec 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker/spec.rb +2 -2
- data/lib/docker/spec/version.rb +1 -1
- 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: fbbc4d9b12f0d46e41b42d3ec87bcec1b188cb8a49e8cbbd40a0d2151fcc4dc1
|
4
|
+
data.tar.gz: 7b00dcd28af82e28dfeba0e42d6e5e9d361b2216e71c77327a5cf0ea3d7223a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94f1c99ec0854299e616e284d98a351f840a1b0740a7c2cd9c9e5c20700eb8321dd5dae2ba6486e36585b505f2c1a2d637d63021b0c1549a74ee21d455fd1839
|
7
|
+
data.tar.gz: 215a0492c625c56a52d69309896b88b2f86e1ac63f2c8096cea2b23f4104f53dc3b60db8bde0c12b3fd946d8a69babf6612dd99ccddb6e01ff1f613f4a52c77a
|
data/lib/docker/spec.rb
CHANGED
@@ -31,7 +31,7 @@ class DockerSpec
|
|
31
31
|
@test_failed = false
|
32
32
|
|
33
33
|
load_config
|
34
|
-
grab_flock
|
34
|
+
grab_flock if @config[:lock]
|
35
35
|
build_root if @config[:build_root]
|
36
36
|
build_docker_image if @config[:build_image]
|
37
37
|
rspec_configure
|
@@ -39,7 +39,7 @@ class DockerSpec
|
|
39
39
|
|
40
40
|
def grab_flock
|
41
41
|
@config = DockerSpec.instance.config
|
42
|
-
@lock = File.join('/tmp', @config[:account] + '-' + @config[:name] + '.lock')
|
42
|
+
@lock = File.join('/tmp', @config[:account] + '-' + @config[:name].gsub('/', '-') + '.lock')
|
43
43
|
@f = File.open(@lock, 'w')
|
44
44
|
if (not @f.flock(File::LOCK_EX | File::LOCK_NB))
|
45
45
|
puts "INFO: Another build is already running #{@lock}"
|
data/lib/docker/spec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Breinlinger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|