appsignal 0.12.beta.30 → 0.12.beta.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appsignal.rb +5 -0
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb6deacd3b946d7291c5ea4b1e7a98a4268e2867
|
4
|
+
data.tar.gz: cf0d403fefc46f4957264e0b33f2b148e8ad7ae8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebd6b18c154977fb7cf24b9f6c441627f06df556676fd6dd22b8c6617ec3509a379b2ac301d187e7d49c699f7d93807ef5e3bd55d7f9b10ab0af2cc2df8840cd
|
7
|
+
data.tar.gz: 7646f9ec281d26c0075bd313f2c9d1a2ff1c65ed6d60b167276d928c9796090a4082ba138bafe278047c9a335704c20305f3c80ab54f266a25260c5ff2b5b10c
|
data/lib/appsignal.rb
CHANGED
@@ -103,6 +103,11 @@ module Appsignal
|
|
103
103
|
Appsignal::Transaction.complete_current!
|
104
104
|
end
|
105
105
|
|
106
|
+
def add_exception(exception)
|
107
|
+
warn '[DEPRECATION] add_exception is deprecated, use set_exception instead'
|
108
|
+
set_exception(exception)
|
109
|
+
end
|
110
|
+
|
106
111
|
def set_exception(exception)
|
107
112
|
return if !active? ||
|
108
113
|
Appsignal::Transaction.current.nil? ||
|
data/lib/appsignal/version.rb
CHANGED
data/spec/lib/appsignal_spec.rb
CHANGED
@@ -179,6 +179,12 @@ describe Appsignal do
|
|
179
179
|
end
|
180
180
|
end
|
181
181
|
|
182
|
+
describe ".add_exception" do
|
183
|
+
it "should alias this method" do
|
184
|
+
Appsignal.should respond_to(:add_exception)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
182
188
|
context "not active" do
|
183
189
|
describe ".monitor_transaction" do
|
184
190
|
it "should do nothing but still yield the block" 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: 0.12.beta.
|
4
|
+
version: 0.12.beta.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Beekman
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2015-08-
|
15
|
+
date: 2015-08-21 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rack
|