honeybadger 2.0.10 → 2.0.11

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: 8509e92e654bf9c11bcd5972de7e6c471586e63c
4
- data.tar.gz: ff6c169f3e414c50cf63e8af81394741a27d5c03
3
+ metadata.gz: aecd42c839ff94ce002513bc50a9c44afb02abfd
4
+ data.tar.gz: a19144205e9f50c996c2c32b78859f9ad43fdd15
5
5
  SHA512:
6
- metadata.gz: bf7454e60705b41bff8af44e78e5fed8c87a31c0d6e5057018e959730a0953167cf467d896b34ff401ebf3c1d83b79cf57cb3903fe5e94c9347fa91003aebdd6
7
- data.tar.gz: 2944d050fb3c7bcdf5c7b76b08ed737b0a36e317624b17e2a7ec461139bc53c3a357caae78186849f28f8f8e8e09cad24059b0f91b6bef1970db9d28d3b832ef
6
+ metadata.gz: 2044782ab62380cca73f5e63327e8ff83996f5bd2a56900cb3603b91c698a4757ddf8b1428fdc3f8216e83db3d3bdf71ba7927afc415aa214db1914b74eddc81
7
+ data.tar.gz: fd46e22c332761a29d81b2caf5194f2cf0e721d5c50d755a960b5200e123bba700afc9d7ce2af9b4ee36f04cb983199ae04a9d6dff502195b59497b48f24c500
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ * Don't access secrets before Rails initialization.
2
+
3
+ *Joshua Wood*
4
+
5
+ * Fix a bug which introduced a hard-dependency on Rack.
6
+
7
+ *Joshua Wood*
8
+
1
9
  * Fix a bug in ping where JSON was double-quoted.
2
10
 
3
11
  *Joshua Wood*
@@ -50,17 +50,10 @@ module Honeybadger
50
50
  :root => ::Rails.root,
51
51
  :env => ::Rails.env,
52
52
  :'config.path' => ::Rails.root.join('config', 'honeybadger.yml'),
53
- :framework_name => "Rails #{::Rails::VERSION::STRING}",
54
- :api_key => rails_secrets_api_key
53
+ :framework => :rails
55
54
  }
56
55
  end
57
56
 
58
- def rails_secrets_api_key
59
- if defined?(::Rails.application.secrets)
60
- ::Rails.application.secrets.honeybadger_api_key
61
- end
62
- end
63
-
64
57
  def test_exception_class
65
58
  exception_name = ENV['EXCEPTION'] || 'HoneybadgerTestingException'
66
59
  Object.const_get(exception_name)
@@ -74,16 +74,9 @@ module Honeybadger
74
74
  :env => ::Rails.env,
75
75
  :'config.path' => ::Rails.root.join('config', 'honeybadger.yml'),
76
76
  :logger => Logging::FormattedLogger.new(::Rails.logger),
77
- :framework => :rails,
78
- :api_key => secrets_api_key
77
+ :framework => :rails
79
78
  }
80
79
  end
81
-
82
- def secrets_api_key
83
- if defined?(::Rails.application.secrets)
84
- ::Rails.application.secrets.honeybadger_api_key
85
- end
86
- end
87
80
  end
88
81
  end
89
82
  end
@@ -1,4 +1,4 @@
1
- require 'rack'
1
+ require 'rack/request'
2
2
  require 'honeybadger'
3
3
  require 'forwardable'
4
4
 
@@ -1,15 +1,9 @@
1
- require 'rack/request'
2
-
3
1
  module Honeybadger
4
2
  module Rack
5
3
  # Internal: Constructs a request hash from a Rack::Request matching the
6
4
  # /v1/notices API specification.
7
5
  class RequestHash < ::Hash
8
6
  def initialize(request)
9
- unless request.kind_of?(::Rack::Request)
10
- raise ArgumentError, "Expected Rack::Request, got #{request.class.name}"
11
- end
12
-
13
7
  self[:url] = extract_url(request)
14
8
  self[:params] = extract_params(request)
15
9
  self[:component] = self[:params]['controller']
@@ -1,7 +1,6 @@
1
1
  require 'erb'
2
2
  require 'uri'
3
3
  require 'forwardable'
4
- require 'rack'
5
4
 
6
5
  begin
7
6
  require 'i18n'
@@ -1,4 +1,3 @@
1
- require 'rack'
2
1
  require 'forwardable'
3
2
 
4
3
  module Honeybadger
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # Public: The current String Honeybadger version.
3
- VERSION = '2.0.10'.freeze
3
+ VERSION = '2.0.11'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 2.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Honeybadger Industries LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-24 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Make managing application errors a more pleasant experience.
14
14
  email: