madvertise-logging 0.9.2 → 0.9.3

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.
@@ -7,12 +7,15 @@ module Madvertise
7
7
  #
8
8
  # @param [Exception] exc The exception to log.
9
9
  # @param [String] message Additional reason to log.
10
- def exception(exc, message = nil, attribs = {})
10
+ def exception_with_airbrake(exc, message = nil, attribs = {})
11
11
  Airbrake.notify_or_ignore(exc, {
12
12
  :error_message => message,
13
13
  :cgi_data => ENV.to_hash,
14
14
  }.merge(attribs))
15
15
  end
16
+
17
+ alias_method :exception_without_airbrake, :exception
18
+ alias_method :exception, :exception_with_airbrake
16
19
  end
17
20
  end
18
21
  end
@@ -1,6 +1,6 @@
1
1
  module Madvertise
2
2
  module Logging
3
3
  # @private
4
- VERSION = "0.9.2"
4
+ VERSION = "0.9.3"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: madvertise-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  version: '0'
59
59
  segments:
60
60
  - 0
61
- hash: 3837556437676324722
61
+ hash: -4344757976750083910
62
62
  required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  segments:
69
69
  - 0
70
- hash: 3837556437676324722
70
+ hash: -4344757976750083910
71
71
  requirements: []
72
72
  rubyforge_project:
73
73
  rubygems_version: 1.8.24