qnotifier 1.0.0 → 1.0.1

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.
data.tar.gz.sig CHANGED
Binary file
data/lib/plugin.rb CHANGED
@@ -12,6 +12,7 @@ module Qnotifier
12
12
  attr_accessor :stats
13
13
  attr_accessor :config
14
14
  attr_accessor :alert_count
15
+ attr_accessor :class_name
15
16
 
16
17
  # The run method, do not override
17
18
  def run
data/lib/qnotifier.rb CHANGED
@@ -110,6 +110,7 @@ module Qnotifier
110
110
  Qnotifier.log.error "Couldn't process the plugin file #{file}"
111
111
  return
112
112
  end
113
+ plugin.class_name = class_name
113
114
  plugin.config = @config
114
115
  unless plugin.class.superclass.name == "Qnotifier::Plugin"
115
116
  Qnotifier.log.fatal "Attempted to load a non Qnotifier::Plugin plugin subclass at #{file} - make sure this directory only includes Qnotifier::Plugin subclasses"
@@ -124,9 +125,9 @@ module Qnotifier
124
125
  plugin.run
125
126
  end
126
127
  rescue RuntimeError => e
127
- Qnotifier.log.error "#{class_name} Plugin Error: #{e.message}"
128
+ Qnotifier.log.error "#{plugin.class_name} Plugin Error: #{e.message}"
128
129
  rescue Errno::ENOENT => e
129
- Qnotifier.log.error "#{class_name} Plugin Error: #{e.message}"
130
+ Qnotifier.log.error "#{plugin.class_name} Plugin Error: #{e.message}"
130
131
  end
131
132
  @alerts.merge!(plugin.alerts) if plugin.alerts
132
133
  @reports.merge!(plugin.reports) if plugin.reports
data/qnotifier.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{qnotifier}
5
- s.version = "1.0.0"
5
+ s.version = "1.0.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Gersham Meharg"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Gersham Meharg
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ���r���> ��Kk���S@��h�
2
- �o굃��B�=� �u�1�Æ�o��hi[Ny��Q5[
1
+ ��