sentry-raven 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sentry-raven might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzIzNTdmZTFhMzczN2Y0N2FmYzI2MzU3NDNlYzAyNzQzYTZlYjNjNQ==
4
+ ZGNhZTllOWIxNjg1ZDNkZmMxMzBmNmJhZDEzNjliOGYyNzNiZDc1MQ==
5
5
  data.tar.gz: !binary |-
6
- YzY2NzdmMGUyMTFjNzE5ODNhOGYxYWUzNGIyMDZmYjdjYTZkOWJiMg==
6
+ ZWRjN2MyNTA2YzQ4ODliYTY0N2Y3ZTg3Y2MyNjUzMjYxODg0NWYzZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmM5NjIzYWM0MjMwNWMyMWU5M2E0NjdiZTViOGY4OTM5YzA2ODVmZjBkYjM1
10
- NTYzZDA0ZmI2OGU4N2IxZGU1NDJkZTM1YmFlYWViOTgxMTViZDc0ODE4ZTU1
11
- MWU1NmRkZmUzYzNkMmQ2ZmU3MTRmZWMwMWE4ZmUzYTVmYTNlOGE=
9
+ ZDI3NWFlZjY2YjBjNjYxNTBlYjg5NWRmOWQ2OWRmYTZlY2RkYzIyNTg2NDRl
10
+ NzZkYjQ0OTFiNjhmMmZlMzRiYzgyNWRkYjAzZWUzN2NlM2M3OGZiNDRlNzBk
11
+ YjhmYWM0ZjlkNTU2YWE3NDkwMTM2M2RiNWJjMDIzNDA0NjAzMDU=
12
12
  data.tar.gz: !binary |-
13
- YTM3NDJkZjEzMDg3NWI2MTgzZmMzNGY3ZDQzZmRkODM2ZDZkZWE1NjUyZmU2
14
- ZThjZjc1ODQ1NWY3OTQzNTdhZjMzYjA3YTgwMWI2ZGVhNzVlYmYxNjk5ZDA0
15
- Zjc5NWJhNmYyM2ZlZjhiMWU5YjMzNmZkYTAzMmI3Zjg1YmVmMjE=
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 easiest way to configure Raven is by setting the ``SENTRY_DSN`` environment variable.
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
- You'll find this value on your project settings page, and it should resemble something like ```https://public:secret@app.getsentry.com/9999```.
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
- In Rails 3, Sentry will "just work" capturing any exceptions thrown in your app. All Rails integrations also
30
- have mixed-in methods for capturing exceptions you've rescued yourself inside of controllers:
26
+ ### Rails 3 or 4
31
27
 
32
- ```ruby
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
- Reporting errors raised in delayed jobs should work out-of the box. Usage of [delayed-plugins-raven](https://github.com/qiushihe/delayed-plugins-raven) gem is deprecated.
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
@@ -14,7 +14,17 @@ module Raven
14
14
  super(attributes)
15
15
  block.call(self) if block
16
16
  @check_required = true
17
- assert_required_properties_set!
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!
@@ -1,3 +1,3 @@
1
1
  module Raven
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
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.3
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-06-10 00:00:00.000000000 Z
12
+ date: 2014-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday