cide 0.6.1 → 0.6.2

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
  SHA1:
3
- metadata.gz: 428cf4d061f894accbfe57959d6cb171a17d019d
4
- data.tar.gz: 8cf5abea4fbb983f986c466741be091e36088b62
3
+ metadata.gz: 829b102e520c8b64573f2f18e3d4c24498bf3e9c
4
+ data.tar.gz: 6dac347d412f2c7b86731b15b378fc78572ff42a
5
5
  SHA512:
6
- metadata.gz: 753a0fda4a40711e489dc5818fa2de5c230f209738b1d067e2dc997d48e1bb6ba5795540b2709886f158e03b3b44f835c78e8fad0ee9183618033319852ed726
7
- data.tar.gz: 075b5de84cf8e61dd50541c1d4cf12a80175dca0357ae6c9a0bc5811ca60194d74817e8d9a53b45947b357282b2f7cdfe11a5b2fa6484098b5db00d8b4c653a3
6
+ metadata.gz: e5c7d5ba21b416d9b620ed6248f04a3c34ef6032a380ef4b3a858bb07b95b230ed846a48489ae28aaf1fcb57aa276abd36e8f7779f5d66800cc8d638bf1759fb
7
+ data.tar.gz: 65e7e8906deec51816b8cccaba04572affa896dace62189b5b7a2c006812e09e84de5315765448e803912ae7958122990c8d940b85f6a83608dc96702a7a714d
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 0.6.2 / 2015-10-27
3
+ ==================
4
+
5
+ * FIX: docker version detection
6
+
2
7
  0.6.1 / 2015-07-08
3
8
  ==================
4
9
 
data/cide.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'cide'
5
- s.version = '0.6.1'
5
+ s.version = '0.6.2'
6
6
  s.authors = ['zimbatm']
7
7
  s.email = ['zimbatm@zimbatm.com']
8
8
  s.summary = 'Isolated test runner with Docker'
data/lib/cide/docker.rb CHANGED
@@ -46,10 +46,19 @@ module CIDE
46
46
  end
47
47
 
48
48
  # Check docker version
49
- unless `docker version 2>/dev/null` =~ /Client version: ([^\s]+)/
49
+ docker_version = nil
50
+ case `docker version 2>/dev/null`
51
+ when /Client version: ([^\s]+)/
52
+ docker_version = $1
53
+ when /\s+Version:\s+([^\s]+)/
54
+ docker_version = $1
55
+ else
50
56
  fail VersionError, 'Unknown docker version'
51
57
  end
52
- fail VersionError, "Docker version #{$1} too old" if $1 < '1.5.0'
58
+
59
+ if docker_version < '1.5.0'
60
+ fail VersionError, "Docker version #{$1} too old"
61
+ end
53
62
 
54
63
  true
55
64
  )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - zimbatm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-08 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor