appsignal 1.1.4.beta.1 → 1.1.4.beta.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.
- data/CHANGELOG.md +1 -0
- data/ext/agent.yml +7 -7
- data/lib/appsignal/transaction.rb +1 -1
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/transaction_spec.rb +19 -0
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/ext/agent.yml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
|
-
version:
|
2
|
+
version: 9cf5b1c
|
3
3
|
triples:
|
4
4
|
x86_64-linux:
|
5
|
-
checksum:
|
6
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
5
|
+
checksum: e98ae2281a1b27d623dbd48105d9953f4cfbaaa4df3a24c4b87a6c04978da650
|
6
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9cf5b1c/appsignal-agent-x86_64-linux-static.tar.gz
|
7
7
|
lib_filename: libappsignal.a
|
8
8
|
i686-linux:
|
9
|
-
checksum:
|
10
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
9
|
+
checksum: a8532d937900c17ab7f262eaceb66cb97722a615135ba5d43d0c17433e5573c0
|
10
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9cf5b1c/appsignal-agent-i686-linux-static.tar.gz
|
11
11
|
lib_filename: libappsignal.a
|
12
12
|
x86_64-darwin:
|
13
|
-
checksum:
|
14
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
13
|
+
checksum: 7df7bbb218fe6f62e2d5e3b6919f1ae0aa8a37fa05912a027d0bced07ade8676
|
14
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9cf5b1c/appsignal-agent-x86_64-darwin-static.tar.gz
|
15
15
|
lib_filename: libappsignal.a
|
@@ -141,7 +141,7 @@ module Appsignal
|
|
141
141
|
Appsignal::Extension.set_transaction_error(
|
142
142
|
transaction_index,
|
143
143
|
error.class.name,
|
144
|
-
error.message,
|
144
|
+
error.message.to_s,
|
145
145
|
backtrace ? Appsignal::Utils.json_generate(backtrace) : ''
|
146
146
|
)
|
147
147
|
rescue JSON::GeneratorError=>e
|
data/lib/appsignal/version.rb
CHANGED
@@ -380,6 +380,25 @@ describe Appsignal::Transaction do
|
|
380
380
|
transaction.set_error(error)
|
381
381
|
end
|
382
382
|
end
|
383
|
+
|
384
|
+
context "when error message is nil" do
|
385
|
+
let(:error) { double(:error, :message => nil, :backtrace => ['line 1']) }
|
386
|
+
|
387
|
+
it "should not raise an error" do
|
388
|
+
expect{ transaction.set_error(error) }.to_not raise_error
|
389
|
+
end
|
390
|
+
|
391
|
+
it "should set an error in the extension" do
|
392
|
+
Appsignal::Extension.should_receive(:set_transaction_error).with(
|
393
|
+
kind_of(Integer),
|
394
|
+
'RSpec::Mocks::Mock',
|
395
|
+
'',
|
396
|
+
"[\"line 1\"]"
|
397
|
+
)
|
398
|
+
|
399
|
+
transaction.set_error(error)
|
400
|
+
end
|
401
|
+
end
|
383
402
|
end
|
384
403
|
|
385
404
|
context "generic request" 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.1.4.beta.
|
4
|
+
version: 1.1.4.beta.2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-04-
|
13
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|