sentry-raven 0.9.1 → 0.9.2
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/lib/raven/interfaces.rb +4 -0
- data/lib/raven/rack.rb +6 -2
- 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
|
+
ZWYzMjMzNTdjYzgxNTAxZDFlMjY1NTlhZTliNmIwYThmYmRkNTFlYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzczYzg4OTM1OGM0MzRkNGRmN2Y4MDE3NjRlOTA4MzVhZGYzODQ1MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzYwZThkYWEwNGIwYzg4ZjY3ZTkzMjUyYmJkZTA2ZmVhMzEwNzk4OTBhMmY0
|
10
|
+
YjdjYzM3MWQxYzUwYmY1Yzk5MjZlZTQ1ZTViZDVhZTk3MTgyZWU5NjM3YTVh
|
11
|
+
NmI1Nzc3N2NiZTBjNjM0N2FlOGNjZThiMGQ1OWJkNzhlOGRhYTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDVhMDEwNjJkZTUwOTM3NmQ1N2RhYTgxMjFmZDQ3ODU0ZDA5Y2NiZjQzMDRi
|
14
|
+
YWQ1ZWE5NDVlNWJjNzNkMTY0MDJmNTAxMWFlNDcwMWExOGNiZTg5YWRlZGU3
|
15
|
+
MDZkZjUzZmJmMzQyODdkNWJlNTZlMGE3NWFiZWUyZWFhMzBmODM=
|
data/lib/raven/interfaces.rb
CHANGED
@@ -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)
|
data/lib/raven/rack.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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)
|
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.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-
|
12
|
+
date: 2014-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|