appsignal 1.1.4.beta.1 → 1.1.4.beta.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  # 1.1.4
2
2
  * Better debug logging for agent issues
3
+ * Fix for exception with nil messages
3
4
 
4
5
  # 1.1.3
5
6
  * Fix for issue where Appsignal.send_exception clears the current
@@ -1,15 +1,15 @@
1
1
  ---
2
- version: b0eeb2a
2
+ version: 9cf5b1c
3
3
  triples:
4
4
  x86_64-linux:
5
- checksum: 9b96db4ad4fd3b62b6f1fcb876d49f0dbd4a030d8cf02a3088826828d1019104
6
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/b0eeb2a/appsignal-agent-x86_64-linux-static.tar.gz
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: 7fbf77f002e6a6f0378f49c020bc94412188598e8b6b8468e69af222ece8cbbc
10
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/b0eeb2a/appsignal-agent-i686-linux-static.tar.gz
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: c8e3aee141fa443eccea835417c02ea568a50b3ee9ba86840bd04631c456f471
14
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/b0eeb2a/appsignal-agent-x86_64-darwin-static.tar.gz
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
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '1.1.4.beta.1'
4
+ VERSION = '1.1.4.beta.2'
5
5
  end
@@ -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.1
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-06 00:00:00.000000000 Z
13
+ date: 2016-04-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack