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 +4 -4
- data/CHANGELOG.md +3 -0
- data/ext/agent.yml +7 -7
- data/ext/extconf.rb +7 -5
- data/lib/appsignal/utils.rb +1 -3
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/utils_spec.rb +10 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acdf1abaf8e28ece92633d3811f1507e3ca47be7
|
4
|
+
data.tar.gz: 01d1115a37e6211d864d84fcd8f51860a1f42b1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 857b968f8a8f579832cb38c295e57e91c6b5b9a5a6804b5958d4f294632e9830784aa4700501a07189a79477aa3a69898867dae284a43a58536eaad197365fe4
|
7
|
+
data.tar.gz: 0d9ddad04d854d97990818e5c128b95f073293158ef0cc53fb6680b1b96b440954f9356c39e8569c227cd6ddb4e54bf7636ca439d207c1475e7c5980442d878f
|
data/CHANGELOG.md
CHANGED
data/ext/agent.yml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
|
-
version:
|
2
|
+
version: 0db3746
|
3
3
|
triples:
|
4
4
|
x86_64-linux:
|
5
|
-
checksum:
|
6
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
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:
|
10
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
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:
|
14
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
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
|
data/ext/extconf.rb
CHANGED
@@ -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
|
-
|
82
|
-
|
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}"
|
data/lib/appsignal/utils.rb
CHANGED
@@ -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
|
'?'
|
data/lib/appsignal/version.rb
CHANGED
@@ -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
|
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.
|
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-
|
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:
|
283
|
+
version: 1.3.1
|
284
284
|
requirements: []
|
285
285
|
rubyforge_project:
|
286
|
-
rubygems_version: 2.4.5
|
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
|