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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 286cab077a8873ec199e503e7a5e6b712e2a917deb97b79bb1ad3e4915fb485a
4
- data.tar.gz: e62ee81836ea8709e691bb26045b7d7c29bc6982dc874c547a072932101e55d2
3
+ metadata.gz: fbbc4d9b12f0d46e41b42d3ec87bcec1b188cb8a49e8cbbd40a0d2151fcc4dc1
4
+ data.tar.gz: 7b00dcd28af82e28dfeba0e42d6e5e9d361b2216e71c77327a5cf0ea3d7223a5
5
5
  SHA512:
6
- metadata.gz: 3c22484a0f93a8582d4f75d93b380cf1e66a56e28c23263554f2876e8d701130a5d4afaa7758dec0d0e307543a7e181bc981d8c511b7d739978094ff1e66e6a9
7
- data.tar.gz: afd9325b27ef23e1ad3cfcb3864e9a325a2f8b1bff71262bc78f616535a0ebf65920964608090422dad5f2a7186f7f91efca5128456e0c2bc6864db9d32b256e
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}"
@@ -1,5 +1,5 @@
1
1
  module Docker
2
2
  module Spec
3
- VERSION = "0.21.0"
3
+ VERSION = "0.22.0"
4
4
  end
5
5
  end
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.21.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-09 00:00:00.000000000 Z
11
+ date: 2018-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler