serverspec 2.37.1 → 2.37.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: f00b0d2a7954a2bade6d09ba0b40f974b88ef432
4
- data.tar.gz: 8ec338413770fbe140cd11278803a1056af54339
3
+ metadata.gz: c46a37f58e5d07f6871386bab92b1d9e5abd5360
4
+ data.tar.gz: 13757dfd68c8ee14ca4f8d40b961c9dc9d566e8b
5
5
  SHA512:
6
- metadata.gz: cffe2e8f5864b77d005d8106fd4a52d4809bd471efd3feeac2506788e91bb58613175c911dc9adafbd492ca7ac0d4843c0bdb089b13fc5ff7f401764db5ea81e
7
- data.tar.gz: adb8b59c08f5b5863b86ed6bcf7de77dba9d30eff0437a12f7543f6f23aaf362e8832112901ba8eeb854e6acc40a0894abe794c1c391da4255a5e3e2ae2d8d5f
6
+ metadata.gz: c57a59c16b479f1695b68d6d79f2b77cabf7d46b9bc5510417e3a6c3ca661b09f677e42db1caf93944445ceb1ddfbc5dbc9ed7cfe81a8a8a1f93759d1598c9a3
7
+ data.tar.gz: 4ffcb0fc31285d2966b65370bb60f978ef8d1beaa5300543949d34c9011b625d049f3dba961e2a958eb232834a6809e63b9e1f414b16b2754b1b2122efaead33
@@ -17,8 +17,7 @@ module Serverspec
17
17
 
18
18
  types.each do |type|
19
19
  define_method type do |*args|
20
- name = args.first
21
- eval "Serverspec::Type::#{type.to_camel_case}.new(name)"
20
+ eval "Serverspec::Type::#{type.to_camel_case}.new(*args)"
22
21
  end
23
22
  end
24
23
  end
@@ -10,7 +10,7 @@ module Serverspec::Type
10
10
  value = inspection
11
11
  key.split('.').each do |k|
12
12
  is_index = k.start_with?('[') && k.end_with?(']')
13
- value = value[is_index ? k.to_i : k]
13
+ value = value[is_index ? k[1..-2].to_i : k]
14
14
  end
15
15
  value
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.37.1"
2
+ VERSION = "2.37.2"
3
3
  end
@@ -17,6 +17,7 @@ describe docker_container('c1') do
17
17
  its(:inspection) { should include 'Driver' => 'aufs' }
18
18
  its(['Config.Cmd']) { should include '/bin/sh' }
19
19
  its(['HostConfig.PortBindings.80.[0].HostPort']) { should eq '8080' }
20
+ its(['HostConfig.PortBindings.80.[1].HostPort']) { should eq '8081' }
20
21
  end
21
22
 
22
23
  describe docker_container('restarting') do
@@ -80,6 +81,10 @@ def inspect_container
80
81
  {
81
82
  "HostIp": "",
82
83
  "HostPort": "8080"
84
+ },
85
+ {
86
+ "HostIp": "",
87
+ "HostPort": "8081"
83
88
  }
84
89
  ]
85
90
  },
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.37.1
4
+ version: 2.37.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-11 00:00:00.000000000 Z
11
+ date: 2016-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec