serverspec 2.41.4 → 2.41.5

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: 832f1fb6c094ab917218f11916a022cac4a4198a
4
- data.tar.gz: c8b9490f80d1f0c24ae7764746a1978c86f3e769
3
+ metadata.gz: 4c1fd50d20575e8df2a43fd77526b1f64cf2cd67
4
+ data.tar.gz: 059832ec274b1ec8c380533fb89e84a14ba9c5d6
5
5
  SHA512:
6
- metadata.gz: 0f5abdc27ff90834f94b9c56b70f0247cab4dd92d90ecf34eeed003d4744a51e51afa9053e859168ea0c342552d2a341d6f8574eafea06cabe63c01dbf40ec16
7
- data.tar.gz: db8e36fe4d29d21e11eaa54088ccf3bb96b4f486e8b7485bac104558e6ccdfc1c507c1afe260785594862f6d7c2cd485649b71a844a11dba471cc084156ff801
6
+ metadata.gz: 61dca279925253ed95fc21330613c21fd16b30acd669720cfdf6edbe851beb056f92246cb20081059ab804471d6f5f046984b1f897adb09e5113c0cc806acabd
7
+ data.tar.gz: 40b3ac40bbd38b6a71ced13930de75ce29290f225a63e65a018cb1643c506f4f75c2dd1c3ad1ae2a7270488586695255083e4b0e74dd2ac81ce2e7370cab12c2
@@ -1,7 +1,8 @@
1
1
  module Serverspec::Type
2
2
  class Service < Base
3
3
  def enabled?(level, under=nil)
4
- check_method = "check_service_is_enabled" + (under ? "_#{under}" : '')
4
+ under = under ? "_under_#{under.gsub(/^under_/, '')}" : ''
5
+ check_method = "check_service_is_enabled#{under}"
5
6
 
6
7
  if level
7
8
  @runner.send(check_method.to_sym, @name, level)
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.41.4"
2
+ VERSION = "2.41.5"
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.41.4
4
+ version: 2.41.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-17 00:00:00.000000000 Z
11
+ date: 2019-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec