exception_notification-bugsnag 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/LICENSE.txt +21 -0
- data/README.md +8 -2
- data/exception_notification-bugsnag.gemspec +1 -0
- data/lib/bugsnag/exception_notification.rb +4 -2
- data/lib/exception_notification/bugsnag/version.rb +1 -1
- data/lib/exception_notifier/bugsnag_notifier.rb +0 -1
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81be0042a8475f1dbcb1b1f74cc29581a3a98887
|
4
|
+
data.tar.gz: af4f5cd3bc4670f18cd5c373b6572325437b3690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60bb7dbd15d21febb0548fb959471a17b0c05e20d2a3f2027e8d25f331e1c014e971e265e13a7c694a4cd9c74ee2d265081766fa9a9386cd7a1c3f20e6cb3282
|
7
|
+
data.tar.gz: 5a7e7b115faa00ac7d8bd6de741189f195e11ac2a44e2e6eadc1f6e3634463b3fe5f21011f6faa0226061cf203010774bd1353f9a6e2c37882356d5b1992a276
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
Changelog
|
2
|
+
====
|
3
|
+
|
4
|
+
|
5
|
+
[unreleased](https://github.com/koshigoe/exception_notification-bugsnag/compare/v0.2.0...master)
|
6
|
+
----
|
7
|
+
|
8
|
+
[Full Changelog](https://github.com/koshigoe/exception_notification-bugsnag/compare/v0.2.0...master)
|
9
|
+
|
10
|
+
### Enhancements:
|
11
|
+
|
12
|
+
### Fixed Bugs:
|
13
|
+
|
14
|
+
|
15
|
+
[0.2.0](https://github.com/koshigoe/exception_notification-bugsnag/compare/v0.1.1...v0.2.0)
|
16
|
+
----
|
17
|
+
|
18
|
+
[Full Changelog](https://github.com/koshigoe/exception_notification-bugsnag/compare/v0.1.1...v0.2.0)
|
19
|
+
|
20
|
+
### Breaking changes:
|
21
|
+
|
22
|
+
- [#1 Use notify instead of auto notify by wata727](https://github.com/koshigoe/exception_notification-bugsnag/pull/1)
|
23
|
+
|
24
|
+
### Fixed Bugs:
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2016 Masataka Suzuki
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -21,11 +21,17 @@ Or install it yourself as:
|
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
24
|
+
**NOTE: not use exception_notification's middleware.**
|
25
|
+
|
24
26
|
```
|
25
|
-
|
26
|
-
|
27
|
+
ExceptionNotifier.register_exception_notifier(:bugsnag, {})
|
28
|
+
ExceptionNotifier.notify_exception(RuntimeError.new('TEST'))
|
27
29
|
```
|
28
30
|
|
31
|
+
### NOTE
|
32
|
+
|
33
|
+
- ignore `Bugsnag.configuration.auto_notify` (from 0.2.0)
|
34
|
+
|
29
35
|
## Development
|
30
36
|
|
31
37
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -6,6 +6,7 @@ require 'exception_notification/bugsnag/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "exception_notification-bugsnag"
|
8
8
|
spec.version = ExceptionNotification::Bugsnag::VERSION
|
9
|
+
spec.license = "MIT"
|
9
10
|
spec.authors = ["koshigoe"]
|
10
11
|
spec.email = ["koshigoeb@gmail.com"]
|
11
12
|
|
@@ -1,12 +1,14 @@
|
|
1
1
|
require 'bugsnag'
|
2
|
+
require 'exception_notifier'
|
2
3
|
|
3
4
|
module ExceptionNotifier
|
4
5
|
class BugsnagNotifier
|
5
|
-
def initialize(options)
|
6
|
+
def initialize(options={})
|
7
|
+
@defaults = options
|
6
8
|
end
|
7
9
|
|
8
10
|
def call(exception, options={})
|
9
|
-
Bugsnag.
|
11
|
+
Bugsnag.notify(exception, @defaults.merge(options))
|
10
12
|
end
|
11
13
|
end
|
12
14
|
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.2.0
|
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: 2017-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -90,7 +90,9 @@ files:
|
|
90
90
|
- ".gitignore"
|
91
91
|
- ".rspec"
|
92
92
|
- ".travis.yml"
|
93
|
+
- CHANGELOG.md
|
93
94
|
- Gemfile
|
95
|
+
- LICENSE.txt
|
94
96
|
- README.md
|
95
97
|
- Rakefile
|
96
98
|
- bin/console
|
@@ -102,7 +104,8 @@ files:
|
|
102
104
|
- lib/exception_notification/bugsnag/version.rb
|
103
105
|
- lib/exception_notifier/bugsnag_notifier.rb
|
104
106
|
homepage: https://github.com/koshigoe/exception_notification-bugsnag
|
105
|
-
licenses:
|
107
|
+
licenses:
|
108
|
+
- MIT
|
106
109
|
metadata: {}
|
107
110
|
post_install_message:
|
108
111
|
rdoc_options: []
|
@@ -120,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
123
|
version: '0'
|
121
124
|
requirements: []
|
122
125
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.6.10
|
124
127
|
signing_key:
|
125
128
|
specification_version: 4
|
126
129
|
summary: Send exception info to Bugsnag.
|