appsignal 0.9.4 → 0.9.5
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/appsignal/agent.rb +1 -1
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/agent_spec.rb +1 -1
- data/spec/lib/appsignal/transmitter_spec.rb +10 -17
- 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: 548376adc60aed0084092d6088e3949df194190c
|
4
|
+
data.tar.gz: fba4858b4cb9603946311dcc244c47f6bbf26b0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f6f27716d46a3b8f3a17046bca5b4415406aefc6af0d6810f934abf646b2148c59b968a00225ad2aa224f6673d33492eb94e3e358ee1670d43be9a54241e9e2
|
7
|
+
data.tar.gz: c491d2e9401ea8c68436f3f770d22a36cd45cd32c4b8ccba5b9f43921622f0b64cc5d08bbb2a6589ef28c0bb3642d1b61c1e6693e1e441866ac1c324ad0e8152
|
data/CHANGELOG.md
CHANGED
data/lib/appsignal/agent.rb
CHANGED
@@ -126,7 +126,7 @@ module Appsignal
|
|
126
126
|
def shutdown(send_current_queue=false, reason=nil)
|
127
127
|
Appsignal.logger.info("Shutting down agent (#{reason})")
|
128
128
|
unsubscribe
|
129
|
-
|
129
|
+
stop_thread
|
130
130
|
send_queue if send_current_queue && @aggregator.has_transactions?
|
131
131
|
end
|
132
132
|
|
data/lib/appsignal/version.rb
CHANGED
@@ -40,25 +40,18 @@ describe Appsignal::Transmitter do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
describe "#http_post" do
|
43
|
-
|
44
|
-
post = double(:post)
|
45
|
-
post.should_receive(:[]=).with(
|
46
|
-
'Content-Type',
|
47
|
-
'application/json; charset=UTF-8'
|
48
|
-
)
|
49
|
-
post.should_receive(:[]=).with(
|
50
|
-
'Content-Encoding',
|
51
|
-
'gzip'
|
52
|
-
)
|
53
|
-
post.should_receive(:body=).with(
|
54
|
-
Zlib::Deflate.deflate("{\"the\":\"payload\"}", Zlib::BEST_SPEED)
|
55
|
-
)
|
43
|
+
before do
|
56
44
|
Socket.stub(:gethostname => 'app1.local')
|
45
|
+
end
|
46
|
+
|
47
|
+
subject { instance.send(:http_post, 'the' => 'payload') }
|
48
|
+
|
49
|
+
its(:body) { should == Zlib::Deflate.deflate("{\"the\":\"payload\"}", Zlib::BEST_SPEED) }
|
50
|
+
its(:path) { should == instance.uri.request_uri }
|
57
51
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
instance.send(:http_post, :the => :payload)
|
52
|
+
it "should have the correct headers" do
|
53
|
+
subject['Content-Type'].should == 'application/json; charset=UTF-8'
|
54
|
+
subject['Content-Encoding'].should == 'gzip'
|
62
55
|
end
|
63
56
|
end
|
64
57
|
|
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.9.
|
4
|
+
version: 0.9.5
|
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: 2014-08-
|
15
|
+
date: 2014-08-06 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activesupport
|