bugsnag-capistrano 1.1.1 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5057c1b72356bf8ac7631d34c24a8ca3fcc0e3df
4
- data.tar.gz: 2ce11b8867978a3290baef6f2ee89af04ac5e535
2
+ SHA256:
3
+ metadata.gz: f6f524f128bab3669bce3a96d112179743da22a18f4d44d428f7ac745714b051
4
+ data.tar.gz: 7f60bb949db8f888a5567220a31b9fd90bc4ff18861076e7f89e4f399c37427a
5
5
  SHA512:
6
- metadata.gz: ad7de9013a9a1277c462d3ebb80905274cfeec93ba9009318f3fb57ee2c1ca94eb29875e3bfe96ff5bfb143a8c47622c48cd489128d9f4b46868a976b66ad00c
7
- data.tar.gz: 26faf638a887d6af2f6e83eaed8cf8558d6f4c74b8066c831be93030b73c79dd29941349ac4a07f4c28d7e3edc8e6f9f10c6eb63149dc2759e8c9d5db52cada3
6
+ metadata.gz: 192f1dbb3273b4861004b49168b1ac11132c2b99fc1adc4114790ff31408581d5efa8d4e029c839869fd690019f61957a04e84679bed57598172af2d8bf4d287
7
+ data.tar.gz: e56422aa7e466ca375bb906a48606c40084de29bd8f54abe2b84a2091c41724dafc73fea00d0efbe7f1f3955966311c9c882a419e51f495971c400cea20a1fc8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 1.1.2 (06-06-2018)
2
+
3
+ ### Fixes
4
+
5
+ * Fixes a case where deployment notifications were delivered to an incorrect
6
+ endpoint, causing them to not appear on the dashboard timeline
7
+
1
8
  ## 1.1.1 (14-12-2017)
2
9
 
3
10
  ### Fixes
data/VERSION CHANGED
@@ -1 +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
- expect(Bugsnag::Capistrano::Deploy).to receive(:deliver)
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.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: 2017-12-14 00:00:00.000000000 Z
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.6.13
66
+ rubygems_version: 2.7.7
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Notify Bugsnag when deploying with Capistrano