serverspec 2.17.1 → 2.18.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
  SHA1:
3
- metadata.gz: 51a46c02b1c7f60b7e35efc57f8a968721370e01
4
- data.tar.gz: 1738e038951d12f1d483c1ebd39ca63ae588060c
3
+ metadata.gz: 3425a5787832216924357a6bd51a930be888bb32
4
+ data.tar.gz: 306377ad6b6e26ee391bd2eba4d4a68a918e6713
5
5
  SHA512:
6
- metadata.gz: d2a1bc938a3a9898b9a0bdf2554163efecdc3b1b36c539301cb1008f6b1aaeb662446753da3fce6c10e94c6e4dc13d5f9aadab1a8c9e6ff8df41c7574c3a5dfa
7
- data.tar.gz: 2770e612044e1dc7f7bde454273ea8f70b906c04fa0ad347f54c4cbad776881992cb35c2b9a8a4c8b592c9949646e24db3e2bdddd6958f07dd5f0da01095c974
6
+ metadata.gz: 5bd568b276be8e1220a82e8a5629a6b54aabe8ecb0eac5d7ebbbf5daab3187dae5966e8448da632d74f6cd36476ead8c748cb37b259652aa48ac8b5770dff604
7
+ data.tar.gz: 43fed4130b18304ca24fcd171ac3cf69c14a05485879c36dc55d13ad946a2e6fcf50fdbd54c6e5ccc9681f561cb3581b2824d9c85db99e0699ffdf4844f00c46
@@ -10,6 +10,14 @@ module Serverspec::Type
10
10
  @runner.check_file_is_file(@name)
11
11
  end
12
12
 
13
+ def block_device?
14
+ @runner.check_file_is_block_device(@name)
15
+ end
16
+
17
+ def character_device?
18
+ @runner.check_file_is_character_device(@name)
19
+ end
20
+
13
21
  def socket?
14
22
  @runner.check_file_is_socket(@name)
15
23
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.17.1"
2
+ VERSION = "2.18.0"
3
3
  end
data/serverspec.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency "rspec", "~> 3.0"
22
22
  spec.add_runtime_dependency "rspec-its"
23
23
  spec.add_runtime_dependency "multi_json"
24
- spec.add_runtime_dependency "specinfra", "~> 2.32"
24
+ spec.add_runtime_dependency "specinfra", "~> 2.35"
25
25
  spec.add_development_dependency "bundler", "~> 1.3"
26
26
  spec.add_development_dependency "rake", "~> 10.1.1"
27
27
  end
@@ -14,6 +14,14 @@ describe file('/var/run/unicorn.sock') do
14
14
  it { should be_socket }
15
15
  end
16
16
 
17
+ describe file('/dev/disk0') do
18
+ it { should be_block_device }
19
+ end
20
+
21
+ describe file('/dev/ttys0') do
22
+ it { should be_character_device }
23
+ end
24
+
17
25
  describe file('/var/run/pure-ftpd/pure-ftpd.upload.pipe') do
18
26
  it { should be_pipe }
19
27
  end
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.17.1
4
+ version: 2.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-04 00:00:00.000000000 Z
11
+ date: 2015-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.32'
61
+ version: '2.35'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.32'
68
+ version: '2.35'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement