sentry-raven 0.9.1 → 0.9.2

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
- NDlmNGJlYWQ2ODZlY2YzMWZjMzhlZTZmZTI1OWU5ZDE0OGZkNWU0Ng==
4
+ ZWYzMjMzNTdjYzgxNTAxZDFlMjY1NTlhZTliNmIwYThmYmRkNTFlYQ==
5
5
  data.tar.gz: !binary |-
6
- ZmFiOTA0MWE5MTA5NjMxN2I2NGM4YWI0NjA5NTZiZTc4MDhiODI3OA==
6
+ YzczYzg4OTM1OGM0MzRkNGRmN2Y4MDE3NjRlOTA4MzVhZGYzODQ1MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDA4ZjYxMjUyYzBiNDI4YTFlZGYwNThiZjE5OTY2MmU4ZmMwZWFhYmQzMWY3
10
- MzdjYzJjZTY1YTc5MmRjNWUzNzU4MmU3MDg0Zjc2YzI1OTgwZWRmNWUxNWU0
11
- ZGRmMDU1ZTQxMjE0MGQzMTUxMjE2Y2YxYTY1YTkxZjljOWQxZGY=
9
+ YzYwZThkYWEwNGIwYzg4ZjY3ZTkzMjUyYmJkZTA2ZmVhMzEwNzk4OTBhMmY0
10
+ YjdjYzM3MWQxYzUwYmY1Yzk5MjZlZTQ1ZTViZDVhZTk3MTgyZWU5NjM3YTVh
11
+ NmI1Nzc3N2NiZTBjNjM0N2FlOGNjZThiMGQ1OWJkNzhlOGRhYTc=
12
12
  data.tar.gz: !binary |-
13
- Zjc2ZTA3YTM0ZmE3ZTRkODFhNGM1YTQ3NTg0MmE3ZmNjOWU5ZTEwZWI2Yzc2
14
- NGE3ZWU5NDJhZTM1ZmVmYjljNmUzMTk2NGM5ZDc2ZDc0MjUyNTAwNTZlZWY3
15
- M2EzY2Q2ZTI0ZTg0YTJhZjgyZThlMzg5MGM3ZDhmMDBjZjk5MDI=
13
+ ZDVhMDEwNjJkZTUwOTM3NmQ1N2RhYTgxMjFmZDQ3ODU0ZDA5Y2NiZjQzMDRi
14
+ YWQ1ZWE5NDVlNWJjNzNkMTY0MDJmNTAxMWFlNDcwMWExOGNiZTg5YWRlZGU3
15
+ MDZkZjUzZmJmMzQyODdkNWJlNTZlMGE3NWFiZWUyZWFhMzBmODM=
@@ -5,6 +5,10 @@ module Raven
5
5
  INTERFACES = {}
6
6
 
7
7
  class Interface < Hashie::Dash
8
+ if defined?(Hashie::Extensions::Dash::IndifferentAccess)
9
+ include Hashie::Extensions::Dash::IndifferentAccess
10
+ end
11
+
8
12
  def initialize(attributes = {}, &block)
9
13
  @check_required = false
10
14
  super(attributes)
@@ -21,7 +21,9 @@ module Raven
21
21
  # Use a standard Raven.configure call to configure your server credentials.
22
22
  class Rack
23
23
  def self.capture_exception(exception, env, options = {})
24
- options[:time_spent] = Time.now-env[:requested_at]
24
+ if env[:requested_at]
25
+ options[:time_spent] = Time.now - env[:requested_at]
26
+ end
25
27
  Raven.capture_exception(exception, options) do |evt|
26
28
  evt.interface :http do |int|
27
29
  int.from_rack(env)
@@ -30,7 +32,9 @@ module Raven
30
32
  end
31
33
 
32
34
  def self.capture_message(message, env, options = {})
33
- options[:time_spent] = Time.now-env[:requested_at]
35
+ if env[:requested_at]
36
+ options[:time_spent] = Time.now - env[:requested_at]
37
+ end
34
38
  Raven.capture_message(message, options) do |evt|
35
39
  evt.interface :http do |int|
36
40
  int.from_rack(env)
@@ -1,3 +1,3 @@
1
1
  module Raven
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
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.1
4
+ version: 0.9.2
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-05-24 00:00:00.000000000 Z
12
+ date: 2014-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday