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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34c2a89357d57720ab86ec93d2c16c28690b7db34ab376bd3f88ab5817eaaa57
4
- data.tar.gz: e0feac99ebbada93eea62f443c270da954818cd51db44b805b52a495f495d536
3
+ metadata.gz: b604bc26d4b0cf71021d043bbe11976c97f434ec2ada60305775be65e25ca83a
4
+ data.tar.gz: dfdaddac07ac73247e7766146f759a6326ce2c030f9c8f59fb337d88b172495f
5
5
  SHA512:
6
- metadata.gz: 0c48c90b727f28efcb37cac91074be57bb6fc38ab8487aa244f6f396c99d400eaf58200f9425d6c6f4c48be0a8d637b37951adb3b1ab7146b4d572397ef58025
7
- data.tar.gz: de03fded1906fee8c007012d2ca76b4540c7b93933e756ddc0983aa6702b66daabe0d751a3e8f076098c13a65ea37a23ffc4bc2cd3a7f3e3464c8e5655372efe
6
+ metadata.gz: 46ee1f6c34b8c7d363ce49fdf7400dfec5f7b551ac6a69b73fcc934e1e47268a40a831aaf226d7c0ba3d43fe5586bbd91cc7a17ddad91c67f9e16d0b0873ecf9
7
+ data.tar.gz: 1c765c330033504b7126b20a060e1231abbdaf2a2f71368ac752c0d022dfd64c2aea275d62f85bd61ecbcf481678871afe15de778ddffea62b7a685ed7667dfd
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Sentry
3
- VERSION = '0.1.4'.freeze
3
+ VERSION = '0.1.5'.freeze
4
4
  end
5
5
  end
@@ -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
- puts "Cannot notify sentry for new deployment. Response: #{response.code.inspect}: #{response.body}" unless response.is_a? Net::HTTPSuccess
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
- puts "Cannot notify sentry for new release. Response: #{response.code.inspect}: #{response.body}"
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
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-27 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano