zumobi 0.0.5 → 0.0.6

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.
@@ -30,19 +30,17 @@ class ExceptionHandler
30
30
 
31
31
  def self.method_missing(name, *args, &block)
32
32
  if [:debug, :info, :warn, :error, :fatal].include?(name)
33
- c = SimpleConfig.for(:airbrake)
34
- if (c.api_key.blank?)
35
- raise "To log errors, add an airbrake config in simple config, with your app's api_key"
36
- end
37
-
38
33
  e = args[0]
39
34
  unless EXCLUDED_EXCEPTIONS.include?(e.class.name)
35
+ if (Airbrake.configuration.api_key.blank?)
36
+ raise "To log errors, add an airbrake.rb initializer in your rails app."
37
+ end
40
38
  # Note: Rails doesn't log the stacktrace... it's quite annoying
41
39
  backtrace = e.backtrace ? ("\n" + e.backtrace.join("\n")) : ""
42
40
  Rails.logger.send(name, e.message + backtrace, &block)
43
41
 
44
42
  # Send to Airbrake
45
- Airbrake.notify(e, {:api_key => c.api_key, :environment_name => "#{ExceptionHandler.ip_address}"})
43
+ Airbrake.notify(e, {:environment_name => "#{ExceptionHandler.ip_address}"})
46
44
  end
47
45
  end
48
46
  end
@@ -1,3 +1,3 @@
1
1
  module Zumobi
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zumobi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alx Dark