exception_notification-bugsnag 0.2.0 → 0.3.0.preview1
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 +5 -5
- data/.travis.yml +6 -1
- data/CHANGELOG.md +2 -2
- data/lib/bugsnag/exception_notification.rb +14 -4
- data/lib/exception_notification/bugsnag/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a45986dc9d34d84fa1aabb19ca8c92115729ef2cc8af428b7fb0657b102d1f3c
|
4
|
+
data.tar.gz: a8ea170d50e76749b2f201e4066be5db2129eba46514a67705cb161caff975f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39a707384b3ba223bd69e01391468ab9b429bbdb1ef4b578b9f53d4fd9dd6fc9c29f8e888ea7dcc63ee0abc92c6bcf746eefb2f605a2bec5baf726e049ac2582
|
7
|
+
data.tar.gz: bfe67a29f3846f2110c58a55683853f1b3bf2914aa29d4bf3acbbc7eb355df1d2a08636a8a720e8201405e0bc09058795952fbe98e34ad69f8f16cef68fb76a1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -12,10 +12,10 @@ Changelog
|
|
12
12
|
### Fixed Bugs:
|
13
13
|
|
14
14
|
|
15
|
-
[0.2.0](https://github.com/koshigoe/exception_notification-bugsnag/compare/v0.1.
|
15
|
+
[0.2.0](https://github.com/koshigoe/exception_notification-bugsnag/compare/v0.1.0...v0.2.0)
|
16
16
|
----
|
17
17
|
|
18
|
-
[Full Changelog](https://github.com/koshigoe/exception_notification-bugsnag/compare/v0.1.
|
18
|
+
[Full Changelog](https://github.com/koshigoe/exception_notification-bugsnag/compare/v0.1.0...v0.2.0)
|
19
19
|
|
20
20
|
### Breaking changes:
|
21
21
|
|
@@ -3,12 +3,22 @@ require 'exception_notifier'
|
|
3
3
|
|
4
4
|
module ExceptionNotifier
|
5
5
|
class BugsnagNotifier
|
6
|
-
def initialize(options=
|
7
|
-
@
|
6
|
+
def initialize(options=nil, &default_block)
|
7
|
+
@default_options = options
|
8
|
+
@default_block = default_block
|
8
9
|
end
|
9
10
|
|
10
|
-
def call(exception, options={})
|
11
|
-
|
11
|
+
def call(exception, options={}, &block)
|
12
|
+
merged_block = proc do |notification|
|
13
|
+
@default_block.call(notification) if @default_block
|
14
|
+
block.call(notification) if block
|
15
|
+
end
|
16
|
+
|
17
|
+
if @default_options
|
18
|
+
Bugsnag.notify(exception, @default_options.merge(options), &merged_block)
|
19
|
+
else
|
20
|
+
Bugsnag.notify(exception, &merged_block)
|
21
|
+
end
|
12
22
|
end
|
13
23
|
end
|
14
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_notification-bugsnag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0.preview1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- koshigoe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,12 +118,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- - "
|
121
|
+
- - ">"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
123
|
+
version: 1.3.1
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.6
|
126
|
+
rubygems_version: 2.7.6
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Send exception info to Bugsnag.
|