serverspec 2.10.0 → 2.10.1

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: 3de95fd810278624c77a09c3c37d29d3aed56e83
4
- data.tar.gz: 45b0c8507debb6fdded5775328ad597c96805ce2
3
+ metadata.gz: ea9b0bff20566314ccfa7c0ff7b130d5f5d29c68
4
+ data.tar.gz: 1d1e87e7b4841511432d5ba976d0ac9dc47e159b
5
5
  SHA512:
6
- metadata.gz: 6052fbf35896911f54b900a7fcd0a82afd2d6d7517d3fa494da0a796ea1c19424efdb92170605a0b0ca5bbad00c5b02649fbb8de8098d1d1484ee4fef450da7f
7
- data.tar.gz: 687347347cb1316e4a4901dfee5ab172d38a852218d4e9f1e0188b4bf112ef80ba6ded467394e6f9bd1211ddc4fc2f630db373b668debae2a051e800d2c4ee11
6
+ metadata.gz: 4c259a9d258feff332c1e5f8e4d2ded7a804cfe5e3d0b68995eb07feaec290e774ff7c0536e775dfafee0e96a089647a35486f1ca68d109196a94358462029e4
7
+ data.tar.gz: c6d1bb12a9970cae7161776b656bb864f89a188fbacba42873755bd339b2a1d21e9ebddefd93ca6ee1472e2ba91e5f56b13601e745d38ebc16f88c6194416c85
@@ -1,7 +1,7 @@
1
1
  RSpec::Matchers.define :be_enabled do
2
2
  match do |subject|
3
3
  if subject.class.name == 'Serverspec::Type::Service'
4
- subject.enabled?(@level || 3)
4
+ subject.enabled?(@level)
5
5
  else
6
6
  subject.enabled?
7
7
  end
@@ -1,7 +1,11 @@
1
1
  module Serverspec::Type
2
2
  class Service < Base
3
- def enabled?(level=3)
4
- @runner.check_service_is_enabled(@name, level)
3
+ def enabled?(level)
4
+ if level
5
+ @runner.check_service_is_enabled(@name, level)
6
+ else
7
+ @runner.check_service_is_enabled(@name)
8
+ end
5
9
  end
6
10
 
7
11
  def installed?(name, version)
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.10.0"
2
+ VERSION = "2.10.1"
3
3
  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.10.0
4
+ version: 2.10.1
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-06 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec