appsignal 1.0.5 → 1.0.6.beta.1

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: ad58684ec8db1263b70620ca80cf2591c413f132
4
- data.tar.gz: cf303023b840e0ff4c1b8166ea011b5c97346030
3
+ metadata.gz: acdf1abaf8e28ece92633d3811f1507e3ca47be7
4
+ data.tar.gz: 01d1115a37e6211d864d84fcd8f51860a1f42b1f
5
5
  SHA512:
6
- metadata.gz: 73f6e3cbc38ff761d5ba53f8de0bc39f2790bea73f600fed5fb6b04924007c937bada0fffc51facd663dc3ea3368d9b55b4f8f43106d5494b2864531406b470d
7
- data.tar.gz: 72b8023aabd60f4ec8e00f6542d4b6030cb3f877e3f1c9b2e187100bb776dbc0046a6acadd0900121f8f8da5f531c296c8ac17addabd9bcf8d55a7e0294752dd
6
+ metadata.gz: 857b968f8a8f579832cb38c295e57e91c6b5b9a5a6804b5958d4f294632e9830784aa4700501a07189a79477aa3a69898867dae284a43a58536eaad197365fe4
7
+ data.tar.gz: 0d9ddad04d854d97990818e5c128b95f073293158ef0cc53fb6680b1b96b440954f9356c39e8569c227cd6ddb4e54bf7636ca439d207c1475e7c5980442d878f
@@ -1,3 +1,6 @@
1
+ # 1.0.6
2
+ * Bugfix in background thread when using heavy sanization
3
+
1
4
  # 1.0.5
2
5
  * Improved sql sanitization
3
6
  * Improved mongoid/mongodb sanitization
@@ -1,15 +1,15 @@
1
1
  ---
2
- version: 6b0801e
2
+ version: 0db3746
3
3
  triples:
4
4
  x86_64-linux:
5
- checksum: 510a28ef2d76351ca308ebf8950ad50e8c93b4ec955c25f72b658f3ab009d42b
6
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/6b0801e/appsignal-agent-x86_64-linux-static.tar.gz
5
+ checksum: 2458e7cf7872e1848fc0ca8bc906d4b0ddce54380c8718d19faaccaaa3659a6c
6
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/0db3746/appsignal-agent-x86_64-linux-static.tar.gz
7
7
  lib_filename: libappsignal.a
8
8
  i686-linux:
9
- checksum: 7aed9373264128c38c515463c671fba03db2fbc863c85bae77c56a2d240ac86f
10
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/6b0801e/appsignal-agent-i686-linux-static.tar.gz
9
+ checksum: c56dd24a64d276a3736beab17305216921b8c40032c318ae600689e87738a7cc
10
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/0db3746/appsignal-agent-i686-linux-static.tar.gz
11
11
  lib_filename: libappsignal.a
12
12
  x86_64-darwin:
13
- checksum: 60ac2a74933d9ac58f441f6ee3f875f5c0cbdee24b6b671f7fc81db992ea117c
14
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/6b0801e/appsignal-agent-x86_64-darwin-static.tar.gz
13
+ checksum: 4eade62b7498c5d3ff715e568852ab9a045b2ec07cc645362b9dcbf83b979bbc
14
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/0db3746/appsignal-agent-x86_64-darwin-static.tar.gz
15
15
  lib_filename: libappsignal.a
@@ -77,13 +77,15 @@ def install
77
77
 
78
78
  logger.info "Creating makefile"
79
79
  require 'mkmf'
80
- if find_library('appsignal', 'appsignal_start', EXT_PATH) &&
81
- find_executable('appsignal-agent', EXT_PATH) &&
82
- find_header('appsignal_extension.h', EXT_PATH)
80
+ if !find_library('appsignal', 'appsignal_start', EXT_PATH)
81
+ installation_failed 'Aborting installation, libappsignal not found'
82
+ elsif !find_executable('appsignal-agent', EXT_PATH)
83
+ installation_failed 'Aborting installation, appsignal-agent not found'
84
+ elsif !find_header('appsignal_extension.h', EXT_PATH)
85
+ installation_failed 'Aborting installation, appsignal_extension.h not found'
86
+ else
83
87
  create_makefile 'appsignal_extension'
84
88
  logger.info 'Successfully installed appsignal extension'
85
- else
86
- installation_failed "Aborting installation, extension files were not present or could not be loaded"
87
89
  end
88
90
  rescue => ex
89
91
  installation_failed "Exception while installing: #{ex}"
@@ -14,12 +14,10 @@ module Appsignal
14
14
  elsif params.is_a?(Array)
15
15
  if only_top_level
16
16
  sanitize(params[0], only_top_level, key_sanitizer=nil)
17
- elsif params.first.is_a?(String)
18
- ['?']
19
17
  else
20
18
  params.map do |item|
21
19
  sanitize(item, only_top_level, key_sanitizer=nil)
22
- end
20
+ end.uniq
23
21
  end
24
22
  else
25
23
  '?'
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '1.0.5'
4
+ VERSION = '1.0.6.beta.1'
5
5
  end
@@ -20,13 +20,22 @@ describe Appsignal::Utils do
20
20
  end
21
21
  end
22
22
 
23
- context "when params is an array of strings " do
23
+ context "when params is an array of strings" do
24
24
  let(:params) { ['foo', 'bar'] }
25
25
 
26
26
  it "should sanitize all hash values with a single questionmark" do
27
27
  expect( Appsignal::Utils.sanitize(params) ).to eq(['?'])
28
28
  end
29
29
  end
30
+
31
+ context "when params is a mixed array" do
32
+ let(:params) { [nil, 'foo', 'bar'] }
33
+
34
+ it "should sanitize all hash values with a single questionmark" do
35
+ expect( Appsignal::Utils.sanitize(params) ).to eq(['?'])
36
+ end
37
+ end
38
+
30
39
  context "when params is a string" do
31
40
  let(:params) { 'bar'}
32
41
 
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.0.5
4
+ version: 1.0.6.beta.1
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-03-16 00:00:00.000000000 Z
12
+ date: 2016-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -278,12 +278,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
278
278
  version: '1.9'
279
279
  required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  requirements:
281
- - - ">="
281
+ - - ">"
282
282
  - !ruby/object:Gem::Version
283
- version: '0'
283
+ version: 1.3.1
284
284
  requirements: []
285
285
  rubyforge_project:
286
- rubygems_version: 2.4.5.1
286
+ rubygems_version: 2.4.5
287
287
  signing_key:
288
288
  specification_version: 4
289
289
  summary: Logs performance and exception data from your app to appsignal.com