sentry-raven 0.9.3 → 0.9.4
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.
Potentially problematic release.
This version of sentry-raven might be problematic. Click here for more details.
- checksums.yaml +8 -8
- data/README.md +7 -18
- data/lib/raven/interfaces.rb +11 -1
- data/lib/raven/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGNhZTllOWIxNjg1ZDNkZmMxMzBmNmJhZDEzNjliOGYyNzNiZDc1MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWRjN2MyNTA2YzQ4ODliYTY0N2Y3ZTg3Y2MyNjUzMjYxODg0NWYzZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDI3NWFlZjY2YjBjNjYxNTBlYjg5NWRmOWQ2OWRmYTZlY2RkYzIyNTg2NDRl
|
10
|
+
NzZkYjQ0OTFiNjhmMmZlMzRiYzgyNWRkYjAzZWUzN2NlM2M3OGZiNDRlNzBk
|
11
|
+
YjhmYWM0ZjlkNTU2YWE3NDkwMTM2M2RiNWJjMDIzNDA0NjAzMDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmIzZDVlM2RhZDU3MzNiYmI2MDkxNTM0MmYxNTRhOTEwZTRkOTkyOWMxOWEx
|
14
|
+
M2U4ZmQwN2MxOGM0NDYzYWZiY2Y1NmIxOTNkZTIyN2RiYTliMGVlNjU0NmUy
|
15
|
+
MWFjZDgzYmEzYmNiZWU5ODFmNGY4NmQ0YmY5ZGRiNDg2MmM5YmE=
|
data/README.md
CHANGED
@@ -18,28 +18,18 @@ gem "sentry-raven" #, :github => "getsentry/raven-ruby"
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
The
|
21
|
+
The minimum configuration require setting the ``SENTRY_DSN`` with value found on your Sentry project settings page. It should resemble something like ```https://public:secret@app.getsentry.com/9999```. See [Configuration](#configuration) for configuration methods, and other options.
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
For alternative configuration methods, and other options see [Configuration](#configuration).
|
26
|
-
|
27
|
-
### Rails 3
|
23
|
+
Many implementations will automatically capture uncaught exceptions (such as Rails, Sidekiq or by using
|
24
|
+
the Rack middleware). If you catch those exceptions yourself, but still want to report on them, see section [Capturing Events](#capturing-events).
|
28
25
|
|
29
|
-
|
30
|
-
have mixed-in methods for capturing exceptions you've rescued yourself inside of controllers:
|
26
|
+
### Rails 3 or 4
|
31
27
|
|
32
|
-
|
33
|
-
# ...
|
34
|
-
rescue => exception
|
35
|
-
capture_exception(exception) # or capture_message('Flux overload')
|
36
|
-
flash[:error] = 'Your flux capacitor is overloaded!'
|
37
|
-
end
|
38
|
-
```
|
28
|
+
In Rails 3 or 4 all uncaught exceptions will be automatically reported.
|
39
29
|
|
40
30
|
#### Delayed::Job
|
41
31
|
|
42
|
-
|
32
|
+
No extra configuration required. Usage of [delayed-plugins-raven](https://github.com/qiushihe/delayed-plugins-raven) gem is deprecated.
|
43
33
|
|
44
34
|
### Rails 2
|
45
35
|
|
@@ -61,8 +51,7 @@ care of reporting errors that occur in Sidekiq jobs. To use it, just require the
|
|
61
51
|
```ruby
|
62
52
|
require 'raven/sidekiq'
|
63
53
|
```
|
64
|
-
after you require Sidekiq. If you are using Sidekiq with Rails, just put this
|
65
|
-
require somewhere in the initializers.
|
54
|
+
after you require Sidekiq. If you are using Sidekiq with Rails, just put this require somewhere in the initializers.
|
66
55
|
|
67
56
|
|
68
57
|
## Capturing Events
|
data/lib/raven/interfaces.rb
CHANGED
@@ -14,7 +14,17 @@ module Raven
|
|
14
14
|
super(attributes)
|
15
15
|
block.call(self) if block
|
16
16
|
@check_required = true
|
17
|
-
|
17
|
+
|
18
|
+
begin
|
19
|
+
assert_required_attributes_set!
|
20
|
+
rescue NoMethodError
|
21
|
+
assert_required_properties_set!
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
def assert_required_attributes_set!
|
27
|
+
super if @check_required
|
18
28
|
end
|
19
29
|
|
20
30
|
def assert_required_properties_set!
|
data/lib/raven/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-raven
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noah Kantrowitz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|