serverspec 2.5.0 → 2.6.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 +4 -0
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +1 -1
- data/spec/type/base/file_spec.rb +4 -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: 1b5c7938cc7d07f4a5a996c7a991d4e8aff6a2d4
|
4
|
+
data.tar.gz: 8f76957c6b9b6a3dc4a869064c943049dfdabf51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff4baca50acff60c128e3b07b158c79691cbe32e4d597d5ce37422d2d8197188fefa16fa52d6f3ae170ba5500b7db594cd185a551d6d19afdc8f60d9ede62f9a
|
7
|
+
data.tar.gz: a40a8567ec4f159eedfacbbd29f73348507c4e25ad819d85db442033e306580ae825024d468f4048f58cd71a2f5b568faf6eea3be3e8832a298787fd94316b12
|
data/lib/serverspec/type/file.rb
CHANGED
@@ -22,6 +22,10 @@ module Serverspec::Type
|
|
22
22
|
@runner.check_file_is_symlink(@name)
|
23
23
|
end
|
24
24
|
|
25
|
+
def pipe?
|
26
|
+
@runner.check_file_is_pipe(@name)
|
27
|
+
end
|
28
|
+
|
25
29
|
def contain(pattern, from, to)
|
26
30
|
if pattern.is_a?(Array)
|
27
31
|
@runner.check_file_contains_lines(@name, pattern, from, to)
|
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.10"
|
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
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.6.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: 2014-
|
11
|
+
date: 2014-12-05 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.10'
|
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.10'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|