specinfra 1.22.1 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b627c33c1f477fdfc169f8d3aedc847698710b3
4
- data.tar.gz: 0245f6eed1837b5b86721734d5ed9b55e1ac3ee3
3
+ metadata.gz: 8ec2c7682014abab393457ef83047dea603eb7da
4
+ data.tar.gz: 61bdbdc1d092962baffadc94ab10b112c3b8432f
5
5
  SHA512:
6
- metadata.gz: 759d512df62f45223ab184830cf2c74c2702ab4c830c68ef51b97b32c3ea6496d2228ac497641fcacd1fafc27d862d7639adbb322b2e2843e00742d363deb242
7
- data.tar.gz: 8dd6cd697378c8d09b10ccfb2456cce29484f2cf244dffdf99cac379b04bea51b88149a0621e65e5eaaf1189dd844cc6981cde83fe181e8595cd958d5f2cc98b
6
+ metadata.gz: 4717ced55b68dde687585af8e80a900edb0dcd7300364b013a786a89daa5f41aec475ff2f89fd3ce2663a1b46e3a118c92b55be88f3ad0a54bceca233803bf2a
7
+ data.tar.gz: 75b94cd52a3d539e021f6f98dfcdbdc4c4ab590493a9edd7b507dd976318be38b84768f5df7ff5d7e1ad619f6b3581d19e1147cfa960b44c5f26fae2e6fc6932
@@ -23,6 +23,20 @@ module SpecInfra
23
23
  "stat -f%Lp #{escape(file)} | grep -- #{escape(regexp)}"
24
24
  end
25
25
 
26
+ def check_owner(file, owner)
27
+ regexp = "^#{owner}$"
28
+ "stat -f%Su #{escape(file)} | grep -- #{escape(regexp)}"
29
+ end
30
+
31
+ def check_grouped(file, group)
32
+ regexp = "^#{group}$"
33
+ "stat -f%Sg #{escape(file)} | grep -- #{escape(regexp)}"
34
+ end
35
+
36
+ def check_link(link, target)
37
+ "stat -f%Y #{escape(link)} | grep -- #{escape(target)}"
38
+ end
39
+
26
40
  def get_mode(file)
27
41
  "stat -f%Lp #{escape(file)}"
28
42
  end
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.22.1"
2
+ VERSION = "1.23.0"
3
3
  end
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = SpecInfra::VERSION
9
9
  spec.authors = ["Gosuke Miyashita"]
10
10
  spec.email = ["gosukenator@gmail.com"]
11
- spec.description = %q{Common layer for serverspec and configspec}
12
- spec.summary = %q{Common layer for serverspec and configspec}
11
+ spec.description = %q{Common layer for serverspec and lightchef}
12
+ spec.summary = %q{Common layer for serverspec and lightchef}
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
15
15
 
@@ -35,16 +35,16 @@ build:
35
35
  code: rake spec:centos65
36
36
  cwd: $WORKING_DIR
37
37
  - script:
38
- name: Run vagrant up ubuntu1404
39
- code: vagrant up ubuntu1404 --provider=digital_ocean
38
+ name: Run vagrant up ubuntu1310
39
+ code: vagrant up ubuntu1310 --provider=digital_ocean
40
40
  cwd: $WORKING_DIR
41
41
  - script:
42
- name: Run vagrant reload ubuntu1404
43
- code: vagrant reload ubuntu1404
42
+ name: Run vagrant reload ubuntu1310
43
+ code: vagrant reload ubuntu1310
44
44
  cwd: $WORKING_DIR
45
45
  - script:
46
- name: Run rake spec:ubuntu1404
47
- code: rake spec:ubuntu1404
46
+ name: Run rake spec:ubuntu1310
47
+ code: rake spec:ubuntu1310
48
48
  cwd: $WORKING_DIR
49
49
 
50
50
  after-steps:
@@ -53,8 +53,8 @@ build:
53
53
  code: vagrant destroy centos65 --force
54
54
  cwd: $WORKING_DIR
55
55
  - script:
56
- name: Run vagrant destroy ubuntu1404
57
- code: vagrant destroy ubuntu1404 --force
56
+ name: Run vagrant destroy ubuntu1310
57
+ code: vagrant destroy ubuntu1310 --force
58
58
  cwd: $WORKING_DIR
59
59
  - 1syo/idobata-notify@0.1.1:
60
60
  token: $IDOBATA_TOKEN
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.1
4
+ version: 1.23.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-07-25 00:00:00.000000000 Z
11
+ date: 2014-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: Common layer for serverspec and configspec
55
+ description: Common layer for serverspec and lightchef
56
56
  email:
57
57
  - gosukenator@gmail.com
58
58
  executables: []
@@ -160,7 +160,7 @@ rubyforge_project:
160
160
  rubygems_version: 2.2.2
161
161
  signing_key:
162
162
  specification_version: 4
163
- summary: Common layer for serverspec and configspec
163
+ summary: Common layer for serverspec and lightchef
164
164
  test_files:
165
165
  - spec/backend/exec/build_command_spec.rb
166
166
  - spec/backend/ssh/build_command_spec.rb