exception_notification-bugsnag 0.2.0 → 0.3.0.preview1

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
- SHA1:
3
- metadata.gz: 81be0042a8475f1dbcb1b1f74cc29581a3a98887
4
- data.tar.gz: af4f5cd3bc4670f18cd5c373b6572325437b3690
2
+ SHA256:
3
+ metadata.gz: a45986dc9d34d84fa1aabb19ca8c92115729ef2cc8af428b7fb0657b102d1f3c
4
+ data.tar.gz: a8ea170d50e76749b2f201e4066be5db2129eba46514a67705cb161caff975f0
5
5
  SHA512:
6
- metadata.gz: 60bb7dbd15d21febb0548fb959471a17b0c05e20d2a3f2027e8d25f331e1c014e971e265e13a7c694a4cd9c74ee2d265081766fa9a9386cd7a1c3f20e6cb3282
7
- data.tar.gz: 5a7e7b115faa00ac7d8bd6de741189f195e11ac2a44e2e6eadc1f6e3634463b3fe5f21011f6faa0226061cf203010774bd1353f9a6e2c37882356d5b1992a276
6
+ metadata.gz: 39a707384b3ba223bd69e01391468ab9b429bbdb1ef4b578b9f53d4fd9dd6fc9c29f8e888ea7dcc63ee0abc92c6bcf746eefb2f605a2bec5baf726e049ac2582
7
+ data.tar.gz: bfe67a29f3846f2110c58a55683853f1b3bf2914aa29d4bf3acbbc7eb355df1d2a08636a8a720e8201405e0bc09058795952fbe98e34ad69f8f16cef68fb76a1
data/.travis.yml CHANGED
@@ -1,3 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
3
+ - 2.2.9
4
+ - 2.3.6
5
+ - 2.4.3
6
+ - 2.5.0
7
+
8
+ before_install: 'gem update --system'
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.1...v0.2.0)
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.1...v0.2.0)
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
- @defaults = options
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
- Bugsnag.notify(exception, @defaults.merge(options))
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
@@ -1,5 +1,5 @@
1
1
  module ExceptionNotification
2
2
  module Bugsnag
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0.preview1"
4
4
  end
5
5
  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.2.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: 2017-07-11 00:00:00.000000000 Z
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: '0'
123
+ version: 1.3.1
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.6.10
126
+ rubygems_version: 2.7.6
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Send exception info to Bugsnag.