capistrano-sentry 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/sentry/version.rb +1 -1
- data/lib/capistrano/tasks/sentry.rake +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b604bc26d4b0cf71021d043bbe11976c97f434ec2ada60305775be65e25ca83a
|
4
|
+
data.tar.gz: dfdaddac07ac73247e7766146f759a6326ce2c030f9c8f59fb337d88b172495f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46ee1f6c34b8c7d363ce49fdf7400dfec5f7b551ac6a69b73fcc934e1e47268a40a831aaf226d7c0ba3d43fe5586bbd91cc7a17ddad91c67f9e16d0b0873ecf9
|
7
|
+
data.tar.gz: 1c765c330033504b7126b20a060e1231abbdaf2a2f71368ac752c0d022dfd64c2aea275d62f85bd61ecbcf481678871afe15de778ddffea62b7a685ed7667dfd
|
@@ -51,15 +51,20 @@ namespace :sentry do
|
|
51
51
|
)
|
52
52
|
response = http.request(req)
|
53
53
|
if response.is_a? Net::HTTPSuccess
|
54
|
+
info 'Uploaded release infos to Sentry'
|
54
55
|
req = Net::HTTP::Post.new("/api/0/organizations/#{orga_slug}/releases/#{version}/deploys/", headers)
|
55
56
|
req.body = JSON.generate(
|
56
57
|
environment: environment,
|
57
58
|
name: "#{version}-#{fetch(:release_timestamp)}"
|
58
59
|
)
|
59
60
|
response = http.request(req)
|
60
|
-
|
61
|
+
if response.is_a? Net::HTTPSuccess
|
62
|
+
info 'Uploaded deployment infos to Sentry'
|
63
|
+
else
|
64
|
+
warn "Cannot notify sentry for new deployment. Response: #{response.code.inspect}: #{response.body}"
|
65
|
+
end
|
61
66
|
else
|
62
|
-
|
67
|
+
warn "Cannot notify sentry for new release. Response: #{response.code.inspect}: #{response.body}"
|
63
68
|
end
|
64
69
|
end
|
65
70
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-sentry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brice Texier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|