bugsnag-capistrano 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +7 -0
- data/VERSION +1 -1
- data/lib/bugsnag-capistrano/deploy.rb +2 -2
- data/spec/deploy_spec.rb +33 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f6f524f128bab3669bce3a96d112179743da22a18f4d44d428f7ac745714b051
|
4
|
+
data.tar.gz: 7f60bb949db8f888a5567220a31b9fd90bc4ff18861076e7f89e4f399c37427a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 192f1dbb3273b4861004b49168b1ac11132c2b99fc1adc4114790ff31408581d5efa8d4e029c839869fd690019f61957a04e84679bed57598172af2d8bf4d287
|
7
|
+
data.tar.gz: e56422aa7e466ca375bb906a48606c40084de29bd8f54abe2b84a2091c41724dafc73fea00d0efbe7f1f3955966311c9c882a419e51f495971c400cea20a1fc8
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
@@ -30,9 +30,9 @@ module Bugsnag
|
|
30
30
|
end
|
31
31
|
|
32
32
|
if Gem::Version.new(Bugsnag::VERSION).release >= Gem::Version.new('6.0.0')
|
33
|
-
endpoint = configuration.endpoint
|
33
|
+
endpoint = configuration.endpoint + '/deploy'
|
34
34
|
else
|
35
|
-
endpoint = (configuration.use_ssl ? "https://" : "http://") + configuration.endpoint
|
35
|
+
endpoint = (configuration.use_ssl ? "https://" : "http://") + configuration.endpoint + '/deploy'
|
36
36
|
end
|
37
37
|
|
38
38
|
parameters = {
|
data/spec/deploy_spec.rb
CHANGED
@@ -25,14 +25,45 @@ describe Bugsnag::Capistrano::Deploy do
|
|
25
25
|
end
|
26
26
|
|
27
27
|
it "should call notify_with_bugsnag" do
|
28
|
-
expect(Bugsnag::Delivery::Synchronous).to receive(:deliver)
|
28
|
+
expect(Bugsnag::Delivery::Synchronous).to receive(:deliver).with(
|
29
|
+
"https://notify.bugsnag.com/deploy",
|
30
|
+
"{\"apiKey\":\"TEST_API_KEY\",\"releaseStage\":\"production\"}",
|
31
|
+
instance_of(Bugsnag::Configuration)
|
32
|
+
)
|
29
33
|
Bugsnag::Capistrano::Deploy.notify()
|
30
34
|
end
|
35
|
+
|
36
|
+
context "provide custom endpoint" do
|
37
|
+
before do
|
38
|
+
Bugsnag.configure do |config|
|
39
|
+
config.endpoint = "http://localhost:56302"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
after do
|
44
|
+
Bugsnag.configure do |config|
|
45
|
+
config.endpoint = nil
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
it "uses the custom endpoint" do
|
50
|
+
expect(Bugsnag::Delivery::Synchronous).to receive(:deliver).with(
|
51
|
+
"http://localhost:56302/deploy",
|
52
|
+
"{\"apiKey\":\"TEST_API_KEY\",\"releaseStage\":\"production\"}",
|
53
|
+
instance_of(Bugsnag::Configuration)
|
54
|
+
)
|
55
|
+
Bugsnag::Capistrano::Deploy.notify()
|
56
|
+
end
|
57
|
+
end
|
31
58
|
end
|
32
59
|
|
33
60
|
describe "without notifier loadable", :without_notifier do
|
34
61
|
it "should call notify_without bugsnag" do
|
35
|
-
|
62
|
+
stub_request(:post, "https://notify.bugsnag.com/deploy").to_return(status:200, body: "")
|
63
|
+
expect(Bugsnag::Capistrano::Deploy).to receive(:deliver).with(
|
64
|
+
"https://notify.bugsnag.com/deploy",
|
65
|
+
"{\"apiKey\":\"test\"}"
|
66
|
+
)
|
36
67
|
Bugsnag::Capistrano::Deploy.notify({:api_key => "test"})
|
37
68
|
end
|
38
69
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag-capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keegan Lowenstein
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: Correlate Capistrano deploys with new errors and increased error rates
|
17
17
|
in Bugsnag
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project:
|
66
|
-
rubygems_version: 2.
|
66
|
+
rubygems_version: 2.7.7
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: Notify Bugsnag when deploying with Capistrano
|