bugsnag 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +17 -1
- data/VERSION +1 -1
- data/lib/bugsnag/capistrano2.rb +2 -2
- data/lib/bugsnag/middleware/rack_request.rb +5 -3
- data/lib/bugsnag/notification.rb +1 -1
- data/lib/generators/bugsnag/bugsnag_generator.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57cdbb55328ff2ad9b96e7dd77eeb10ef9710e04
|
4
|
+
data.tar.gz: fe6056bf20eba0cf3a06c5295d2e9f7f915de02c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b40142028433fe2ac08f366d766d95a38dd6704351826c3d00fe9b4927d374a5b3b021ce86bee75d78592c13f8fd4e8a105fd381a43be29cd59af98461d31d1f
|
7
|
+
data.tar.gz: 7a3b277241f78ac62de86f99d14c6f5ec64feda3b977fd6bb8824854201e83b17ac4ad9a6a6d4eb20d310123a87572915009b1e5f745fc1861f7d147e0f97e5a
|
data/CHANGELOG.md
CHANGED
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.
|
1
|
+
2.2.1
|
data/lib/bugsnag/capistrano2.rb
CHANGED
@@ -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["
|
16
|
-
:repository => fetch(:repository, ENV["
|
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
|
-
|
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
|
|
data/lib/bugsnag/notification.rb
CHANGED
@@ -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)
|
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.
|
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-
|
11
|
+
date: 2014-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|