appsignal 1.2.1.beta.1 → 1.2.1.beta.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3adbe0e670d7699320eaa00fb6fd5241b5633be
|
4
|
+
data.tar.gz: 133762d96801cb15b8c31afa794a98dd1085dd03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0615b6e08b91f9717dc3f2eb3309c17e0caafdf10111e47e8f319a862f422ba84fa5e9554d4316e8ab80ce79a6b6d99b8bc7c9230ef960af8c0c94a38c4ca89
|
7
|
+
data.tar.gz: f6692ce6ad5da7d216d77fb71df603ec45afbf725f5322efe628ad10e6a099ea3f7dd85f00c9ec0a1123d0fee657c263f3e9dfcfd07690ab9779175b58a97b3b
|
data/CHANGELOG.md
CHANGED
@@ -39,7 +39,9 @@ module Appsignal
|
|
39
39
|
ensure
|
40
40
|
# If raise_error is off versions of Sinatra don't raise errors, but store
|
41
41
|
# them in the sinatra.error env var.
|
42
|
-
|
42
|
+
if !@raise_errors_on && env['sinatra.error'] && !env['sinatra.skip_appsignal_error']
|
43
|
+
transaction.set_error(env['sinatra.error'])
|
44
|
+
end
|
43
45
|
transaction.set_action(env['sinatra.route'])
|
44
46
|
transaction.set_metadata('path', request.path)
|
45
47
|
transaction.set_metadata('method', request.request_method)
|
data/lib/appsignal/version.rb
CHANGED
@@ -88,6 +88,14 @@ if defined?(::Sinatra)
|
|
88
88
|
Appsignal::Transaction.any_instance.should_not_receive(:set_error)
|
89
89
|
end
|
90
90
|
end
|
91
|
+
|
92
|
+
context "if sinatra.skip_appsignal_error is set" do
|
93
|
+
let(:env) { {'sinatra.error' => error, 'sinatra.skip_appsignal_error' => true} }
|
94
|
+
|
95
|
+
it "should not set the error" do
|
96
|
+
Appsignal::Transaction.any_instance.should_not_receive(:set_error)
|
97
|
+
end
|
98
|
+
end
|
91
99
|
end
|
92
100
|
|
93
101
|
it "should set the action" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appsignal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.1.beta.
|
4
|
+
version: 1.2.1.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Beekman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|