serverspec 1.10.0 → 1.11.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: 0c2a6d1a4ea5ce4ba9ae35e54181e56e43c7a5ec
4
- data.tar.gz: 42f594c7e7cf668945965ae8341d70a4d45db68e
3
+ metadata.gz: 30b2d17ba1dda3ff93038d794cf6bce02a270412
4
+ data.tar.gz: 5544fd41b98e295945cc77191f3ddf14705c0ec8
5
5
  SHA512:
6
- metadata.gz: 7beeca0c2daf0bb94a2d3fd8f8a408df17ac1da5a6a0e57b802d46c2c8d8e6255a25b4d14974c1644492fb591af3c40eb0375fe247511c37c7b0e1869a37f90d
7
- data.tar.gz: d62cab3be110a3582e5441b0babef53533f53d6d254609002b8e78055b9d10817950676d2b6592a127afee919a149272b6df0f8ac5c3fd836f0426409ccf594b
6
+ metadata.gz: d06a58c659496a8868e87257917b1204519aa9a204f873bc821066e508a6e1aa5b9ca2d6eb0d9fadf6a685d2114d3ffa2c3d93dde420c4de028947498670fab5
7
+ data.tar.gz: b7e45ec2e57e89e08ce124a6e3b061ff900d3c99615ae6de3172073cf31269149dfadbbb9a77819339e62169d79f645269f4e3e9369ba4fdbdbd52f1401ce555
@@ -0,0 +1,5 @@
1
+ RSpec::Matchers.define :belong_to_primary_group do |group|
2
+ match do |user|
3
+ user.belongs_to_primary_group?(group)
4
+ end
5
+ end
@@ -23,6 +23,7 @@ require 'serverspec/matchers/be_running'
23
23
 
24
24
  # user
25
25
  require 'serverspec/matchers/belong_to_group'
26
+ require 'serverspec/matchers/belong_to_primary_group'
26
27
 
27
28
  require 'serverspec/matchers/return_exit_status'
28
29
  require 'serverspec/matchers/return_stdout'
@@ -9,6 +9,10 @@ module Serverspec
9
9
  backend.check_belonging_group(@name, group)
10
10
  end
11
11
 
12
+ def belongs_to_primary_group?(group)
13
+ backend.check_belonging_primary_group(@name, group)
14
+ end
15
+
12
16
  def has_uid?(uid)
13
17
  backend.check_uid(@name, uid)
14
18
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "1.10.0"
2
+ VERSION = "1.11.0"
3
3
  end
data/serverspec.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_runtime_dependency "rspec", "~> 2.99"
23
23
  spec.add_runtime_dependency "rspec-its"
24
24
  spec.add_runtime_dependency "highline"
25
- spec.add_runtime_dependency "specinfra", "~> 1.20"
25
+ spec.add_runtime_dependency "specinfra", "~> 1.22"
26
26
  spec.add_development_dependency "bundler", "~> 1.3"
27
27
  spec.add_development_dependency "rake", "~> 10.1.1"
28
28
  end
data/wercker.yml CHANGED
@@ -35,16 +35,16 @@ build:
35
35
  code: rake spec:centos65
36
36
  cwd: $WORKING_DIR
37
37
  - script:
38
- name: Run vagrant up ubuntu1310
39
- code: vagrant up ubuntu1310 --provider=digital_ocean
38
+ name: Run vagrant up ubuntu1404
39
+ code: vagrant up ubuntu1404 --provider=digital_ocean
40
40
  cwd: $WORKING_DIR
41
41
  - script:
42
- name: Run vagrant reload ubuntu1310
43
- code: vagrant reload ubuntu1310
42
+ name: Run vagrant reload ubuntu1404
43
+ code: vagrant reload ubuntu1404
44
44
  cwd: $WORKING_DIR
45
45
  - script:
46
- name: Run rake spec:ubuntu1310
47
- code: rake spec:ubuntu1310
46
+ name: Run rake spec:ubuntu1404
47
+ code: rake spec:ubuntu1404
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 ubuntu1310
57
- code: vagrant destroy ubuntu1310 --force
56
+ name: Run vagrant destroy ubuntu1404
57
+ code: vagrant destroy ubuntu1404 --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: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.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-09 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.20'
75
+ version: '1.22'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.20'
82
+ version: '1.22'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -145,6 +145,7 @@ files:
145
145
  - lib/serverspec/matchers/be_running.rb
146
146
  - lib/serverspec/matchers/be_writable.rb
147
147
  - lib/serverspec/matchers/belong_to_group.rb
148
+ - lib/serverspec/matchers/belong_to_primary_group.rb
148
149
  - lib/serverspec/matchers/contain.rb
149
150
  - lib/serverspec/matchers/have_entry.rb
150
151
  - lib/serverspec/matchers/have_rule.rb