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 +4 -4
- data/lib/serverspec/type/file.rb +8 -0
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +1 -1
- data/spec/type/base/file_spec.rb +8 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3425a5787832216924357a6bd51a930be888bb32
|
4
|
+
data.tar.gz: 306377ad6b6e26ee391bd2eba4d4a68a918e6713
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bd568b276be8e1220a82e8a5629a6b54aabe8ecb0eac5d7ebbbf5daab3187dae5966e8448da632d74f6cd36476ead8c748cb37b259652aa48ac8b5770dff604
|
7
|
+
data.tar.gz: 43fed4130b18304ca24fcd171ac3cf69c14a05485879c36dc55d13ad946a2e6fcf50fdbd54c6e5ccc9681f561cb3581b2824d9c85db99e0699ffdf4844f00c46
|
data/lib/serverspec/type/file.rb
CHANGED
@@ -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
|
data/lib/serverspec/version.rb
CHANGED
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.
|
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
|
data/spec/type/base/file_spec.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
68
|
+
version: '2.35'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|