serverspec 2.12.0 → 2.13.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: 2af30e8f3279e309d3483d5045435e4be4557e10
4
- data.tar.gz: 946da32921541e864b3d6c0efd939d9f51a4f187
3
+ metadata.gz: 7e52d49733ff4dec34b0fbdced1a45884d315b27
4
+ data.tar.gz: 4fe90f21f904f8e51b09d3f0c878cc22db11d224
5
5
  SHA512:
6
- metadata.gz: 5c64785941e9b863867a05e05f34e7281bbc0039ab6a43d66ce5c00c535d699a59c8990217636fa7be3dd0d9138b9cd9362c6927c23ac31b31aa5647789db02e
7
- data.tar.gz: d01be38c2c33742698da14a6627cff620fbdb6250d81e44ebd7bcd5450a5d0e9cc1eb48932439095a66dc1bf341481aa2bc66fb42640687749a3bf68a5be1851
6
+ metadata.gz: fbe196f725152c1c4133e411fd1201d3881412c3c99d8c1b6ff7bc6616761e5f1f339357d5dd35f0621cc643453b8e3fa4b55c27ab220b25d8bfa8ced85f09c2
7
+ data.tar.gz: 6b9962d40d1ab0d7877f0f9e3962afce2f228f7918d7b79211cbe104835a28172d0798573e282c3c1dcf727c394afc0695089cccd99742849b7cfd8cd3a68dec
@@ -113,5 +113,9 @@ module Serverspec::Type
113
113
  def size
114
114
  @runner.get_file_size(@name).stdout.strip.to_i
115
115
  end
116
+
117
+ def selinux_label
118
+ @runner.get_file_selinuxlabel(@name).stdout.strip
119
+ end
116
120
  end
117
121
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.12.0"
2
+ VERSION = "2.13.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.23"
24
+ spec.add_runtime_dependency "specinfra", "~> 2.25"
25
25
  spec.add_development_dependency "bundler", "~> 1.3"
26
26
  spec.add_development_dependency "rake", "~> 10.1.1"
27
27
  end
@@ -18,3 +18,10 @@ end
18
18
  describe file('/tmp') do
19
19
  it { should be_immutable }
20
20
  end
21
+
22
+ describe file('/tmp') do
23
+ let(:exit_status) { 0 }
24
+ let(:stdout) { 'unconfined_u:unconfined_r:unconfined_t:s0' }
25
+ its(:selinux_label) { should eq 'unconfined_u:unconfined_r:unconfined_t:s0' }
26
+ end
27
+
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.12.0
4
+ version: 2.13.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-03-23 00:00:00.000000000 Z
11
+ date: 2015-03-24 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.23'
61
+ version: '2.25'
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.23'
68
+ version: '2.25'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement