appsignal 0.12.beta.47 → 0.12.beta.48
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/ext/agent.yml +5 -5
- data/lib/appsignal/config.rb +5 -1
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/config_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5658edf9d4db584e33616ae5afd18a28188443ea
|
|
4
|
+
data.tar.gz: 6774b6ebbf6c9fc36f6f22650642e606f1be1d04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b026072e5c2b3be49e69b4e29264969a77ba6268c879df57ca94f2bfe06c8f9a19fd1a39e8124c511706e9cc80032c591c7c501669d2e77e61b8084f56ed93f
|
|
7
|
+
data.tar.gz: 9eee9ebcb0e364cc4ecb316fd4bc39c97eddfb6b0cf3006792bbb656fd1a14365aba04616f7263e37c5621e8ebd141cfa3f2b31e8c049982cd54a8648bfef494
|
data/ext/agent.yml
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
:version:
|
|
2
|
+
:version: a963523
|
|
3
3
|
:triples:
|
|
4
4
|
x86_64-linux:
|
|
5
|
-
:checksum:
|
|
6
|
-
:download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
|
5
|
+
:checksum: 84101688ff238ad0e8672ec61b7b1227b92429e8a4c3ff981a3de0447fcc5b27
|
|
6
|
+
:download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a963523/appsignal-agent-x86_64-linux-static.tar.gz
|
|
7
7
|
:lib_filename: libappsignal.a
|
|
8
8
|
x86_64-darwin:
|
|
9
|
-
:checksum:
|
|
10
|
-
:download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
|
9
|
+
:checksum: a50fa1b52cd85d4bb544c68381fa5c3b01a7b3d7aa44fe17995fcb5212a63688
|
|
10
|
+
:download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a963523/appsignal-agent-x86_64-darwin-static.tar.gz
|
|
11
11
|
:lib_filename: libappsignal.a
|
data/lib/appsignal/config.rb
CHANGED
|
@@ -165,7 +165,11 @@ module Appsignal
|
|
|
165
165
|
# Strip path from endpoint so we're backwards compatible with
|
|
166
166
|
# earlier versions of the gem.
|
|
167
167
|
endpoint_uri = URI(config_hash[:endpoint])
|
|
168
|
-
|
|
168
|
+
if endpoint_uri.port == 443
|
|
169
|
+
config_hash[:endpoint] = "#{endpoint_uri.scheme}://#{endpoint_uri.host}"
|
|
170
|
+
else
|
|
171
|
+
config_hash[:endpoint] = "#{endpoint_uri.scheme}://#{endpoint_uri.host}:#{endpoint_uri.port}"
|
|
172
|
+
end
|
|
169
173
|
|
|
170
174
|
if config_hash[:push_api_key]
|
|
171
175
|
@valid = true
|
data/lib/appsignal/version.rb
CHANGED
|
@@ -41,6 +41,14 @@ describe Appsignal::Config do
|
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
context "when there is an endpoint with a non-standard port" do
|
|
45
|
+
let(:config) { project_fixture_config('production', :endpoint => 'http://localhost:4567') }
|
|
46
|
+
|
|
47
|
+
it "should keep the port" do
|
|
48
|
+
subject[:endpoint].should == 'http://localhost:4567'
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
44
52
|
describe "#[]" do
|
|
45
53
|
it "should get the value for an existing key" do
|
|
46
54
|
subject[:push_api_key].should == 'abc'
|