bugsnag 2.2.0 → 2.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c3dbbe217f7c08fdabec9e5735794d768baada9
4
- data.tar.gz: 4bbe9e4a0f85bb2b5a3ebf991cee121eb75d5020
3
+ metadata.gz: 57cdbb55328ff2ad9b96e7dd77eeb10ef9710e04
4
+ data.tar.gz: fe6056bf20eba0cf3a06c5295d2e9f7f915de02c
5
5
  SHA512:
6
- metadata.gz: bcb11d2887710b46c363ec11d81952f04488ef1e4c9afb9236a6cad76a7509293ce53778e254cae9f694ab909ff8b2ae7c07d9066b7cc4e2ec8b800dd39c4d6b
7
- data.tar.gz: 162cc3f3f3f8cacd55faa84fa20ebbe0a90d3214f0712460a26b54f7ef556b08479a450ee52335a6d5c521397552097c77979a9de0bb6d8f5d7c73df8f16af9f
6
+ metadata.gz: b40142028433fe2ac08f366d766d95a38dd6704351826c3d00fe9b4927d374a5b3b021ce86bee75d78592c13f8fd4e8a105fd381a43be29cd59af98461d31d1f
7
+ data.tar.gz: 7a3b277241f78ac62de86f99d14c6f5ec64feda3b977fd6bb8824854201e83b17ac4ad9a6a6d4eb20d310123a87572915009b1e5f745fc1861f7d147e0f97e5a
@@ -1,6 +1,10 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.2.1
5
+ -----
6
+ - Don't strip files with bugsnag in the name.
7
+
4
8
  2.2.0
5
9
  -----
6
10
  - Move Bugsnag notifications onto a background thread.
data/README.md CHANGED
@@ -22,7 +22,7 @@ Contents
22
22
  - [Bugsnag Middleware](#bugsnag-middleware)
23
23
  - [Deploy Tracking](#deploy-tracking)
24
24
  - [EventMachine Apps](#eventmachine-apps)
25
-
25
+ - [Demo Applications](#demo-applications)
26
26
 
27
27
  How to Install
28
28
  --------------
@@ -293,6 +293,16 @@ notify Bugsnag of exceptions you can set `notify_release_stages`:
293
293
  config.notify_release_stages = ["production", "development"]
294
294
  ```
295
295
 
296
+ ###endpoint
297
+
298
+ By default, we'll send crashes to *notify.bugsnag.com* to display them on
299
+ your dashboard. If you are using *Bugsnag Enterprise* you'll need to set
300
+ this to be your *Event Server* endpoint, for example:
301
+
302
+ ```ruby
303
+ config.endpoint = "bugsnag.example.com:49000"
304
+ ```
305
+
296
306
  ###auto_notify
297
307
 
298
308
  By default, we will automatically notify Bugsnag of any fatal exceptions
@@ -615,6 +625,12 @@ Bugsnag ruby works out of the box with Rails, Sidekiq, Resque, DelayedJob (3+),
615
625
  should be easy to add support for other frameworks, either by sending a pull request here or adding a hook
616
626
  to those projects.
617
627
 
628
+ Demo Applications
629
+ -----------------
630
+
631
+ [There are demo applications that use the Bugsnag Ruby gem](https://github.com/bugsnag/bugsnag-example-apps/tree/master/ruby):
632
+ examples include Rails, Sinatra, Padrino integrations, etc.
633
+
618
634
  Reporting Bugs or Feature Requests
619
635
  ----------------------------------
620
636
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.2.1
@@ -12,8 +12,8 @@ module Bugsnag
12
12
  Bugsnag::Deploy.notify({
13
13
  :api_key => fetch(:bugsnag_api_key, ENV["BUGSNAG_API_KEY"]),
14
14
  :release_stage => fetch(:rails_env, ENV["BUGSNAG_RELEASE_STAGE"] || "production"),
15
- :revision => fetch(:current_revision, ENV["BUGSNAG_REPOSITORY"]),
16
- :repository => fetch(:repository, ENV["BUGSNAG_REVISION"]),
15
+ :revision => fetch(:current_revision, ENV["BUGSNAG_REVISION"]),
16
+ :repository => fetch(:repository, ENV["BUGSNAG_REPOSITORY"]),
17
17
  :branch => fetch(:branch, ENV["BUGSNAG_BRANCH"],
18
18
  :app_version => fetch(:app_version, ENV["BUGSNAG_APP_VERSION"]))
19
19
  })
@@ -3,13 +3,15 @@ module Bugsnag::Middleware
3
3
  def initialize(bugsnag)
4
4
  @bugsnag = bugsnag
5
5
  end
6
-
6
+
7
7
  def call(notification)
8
8
  if notification.request_data[:rack_env]
9
9
  env = notification.request_data[:rack_env]
10
10
 
11
11
  request = ::Rack::Request.new(env)
12
- params = request.params
12
+
13
+ params = request.params rescue {}
14
+
13
15
  session = env["rack.session"]
14
16
 
15
17
  # Set the context
@@ -32,7 +34,7 @@ module Bugsnag::Middleware
32
34
  :referer => request.referer,
33
35
  :clientIp => request.ip
34
36
  })
35
-
37
+
36
38
  # Add an environment tab
37
39
  notification.add_tab(:environment, env)
38
40
 
@@ -367,7 +367,7 @@ module Bugsnag
367
367
  # Parse the stacktrace line
368
368
 
369
369
  # Skip stacktrace lines inside lib/bugsnag
370
- next(nil) if file.nil? || file =~ %r{lib/bugsnag}
370
+ next(nil) if file.nil? || file =~ %r{lib/bugsnag(/|\.rb)}
371
371
 
372
372
  # Expand relative paths
373
373
  p = Pathname.new(file)
@@ -14,7 +14,7 @@ class BugsnagGenerator < Rails::Generators::Base
14
14
  end
15
15
 
16
16
  initializer "bugsnag.rb" do
17
- <<-EOF.strip
17
+ <<-EOF
18
18
  Bugsnag.configure do |config|
19
19
  config.api_key = #{api_key.inspect}
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json