bmc-daemon-lib 0.12.0 → 0.12.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: 51228cac716466670007643c6e21b9ebccba832b
4
- data.tar.gz: 4b2775074d65b637b8e2995def38805b1c8ace86
3
+ metadata.gz: fc38478090010efc587f1e292a7e0e44d8bcd40e
4
+ data.tar.gz: e7f8616d0b2dda5c78a9b49f43185666b9d7f6df
5
5
  SHA512:
6
- metadata.gz: 9183b9dbcb2e6d37d1ad36c08637017e49257b0ae9ebb0b13d37df12f5334d3541d6a14eab87299dda6157324a916bcf68645c636c1ece1b195e13c254bb4e0d
7
- data.tar.gz: cbf8697dc64ffe61c0e66fe8d3a48fd2d1422b4af04833d24d98adad3e817cd52e28fed7988c6e180e95a01e14eb69ee5decd7c4b890e3b6745d3c0dcbc086b4
6
+ metadata.gz: bb710e1b315a3a0897e2b8f090fb1a9c8597e52bbfb437a7947e995ab1d178526081df4bd2cce03ed2c744821a7159bb609189aba69afd6a0005add7d14873ea
7
+ data.tar.gz: 8558b575139af352bacfc6d5a75137f116a44b59fd3ab959aee3f8bebad653f551c2be259fae0f86fdcb76de72f962cf5984b3aff5d58a15feec47571ac2461e
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  # Project version
4
- spec.version = "0.12.0"
4
+ spec.version = "0.12.1"
5
5
 
6
6
  # Project description
7
7
  spec.name = "bmc-daemon-lib"
@@ -137,16 +137,21 @@ module BmcDaemonLib
137
137
  end
138
138
 
139
139
  # Feature testers
140
+ def self.gem_installed? gemname
141
+ Gem::Specification.collect(&:name).include? gemname
142
+ end
143
+
144
+
140
145
  def self.feature_newrelic?
141
146
  ensure_init
142
- return false if @spec.datadir('newrelic_rpm').nil?
147
+ return false unless gem_installed? 'newrelic_rpm')
143
148
  return false if self.at(:newrelic, :enabled) == false
144
149
  return false if self.at(:newrelic, :disabled) == true
145
150
  return self.at(:newrelic, :license) || false
146
151
  end
147
152
  def self.feature_rollbar?
148
153
  ensure_init
149
- return false if @spec.datadir('rollbar').nil?
154
+ return false unless gem_installed? 'rollbar')
150
155
  return false if self.at(:rollbar, :enabled) == false
151
156
  return false if self.at(:rollbar, :disabled) == true
152
157
  return self.at(:rollbar, :token) || false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmc-daemon-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI