airbrake 6.1.0 → 6.1.1

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
  SHA1:
3
- metadata.gz: f9d12acefba9b02d928e29bc314fca9c25af4d75
4
- data.tar.gz: 5141e7c2ff74bcee6c5d613eddda8fd8353ba0a2
3
+ metadata.gz: f3089af4a27a2927bde27aee7442572c52d8b7d8
4
+ data.tar.gz: 00bd2a9ccffb9fd2d2a6c99e9bb91d326c952a65
5
5
  SHA512:
6
- metadata.gz: 2b9151084b53ea39579da5324813d5ffed516c3af2d2c222122d824bcf38d413fea76a48fbb2eac64aeabdfec586848964f303b0f6b34556e2ba5c86dfe21057
7
- data.tar.gz: 27003f845d58ac27f9d28d01fa9212e2bed564c1cc5aa6b36f77ddea651be55c5f16331d63a53285ced29af4fdd2e183cdae278033130decd3b3fdd9b872beba
6
+ metadata.gz: ffed529a186f28ab380f39ee241983dbcf2a726af8b9d88757868c5f3682e913000141551a1223d5e14d96f3666686f69128321899116018c84d3fc3874e633a
7
+ data.tar.gz: eb7948c62ffb6b8076c22e564269f24e220530669c3ceb7e82551506035c75a9c2d6b040614d128007fa35ac8449ef56813d367454511c650086ca45f03162ef
@@ -67,20 +67,25 @@ namespace :airbrake do
67
67
 
68
68
  # Avoid loading the environment to speed up the deploy task and try guess
69
69
  # the initializer file location.
70
- if initializer.exist?
71
- load(initializer) unless Airbrake[:default]
70
+ if initializer.exist? && Airbrake[:default].is_a?(Airbrake::NilNotifier)
71
+ load(initializer)
72
72
  else
73
73
  Rake::Task[:environment].invoke
74
74
  end
75
75
  end
76
76
 
77
- Airbrake.create_deploy(
77
+ deploy_params = {
78
78
  environment: ENV['ENVIRONMENT'],
79
79
  username: ENV['USERNAME'],
80
80
  revision: ENV['REVISION'],
81
81
  repository: ENV['REPOSITORY'],
82
82
  version: ENV['VERSION']
83
- )
83
+ }
84
+ promise = Airbrake.create_deploy(deploy_params)
85
+ promise.then do
86
+ puts "The #{deploy_params[:environment]} environment was deployed."
87
+ end
88
+ promise.rescue { |error| abort(error) }
84
89
  end
85
90
 
86
91
  desc 'Install a Heroku deploy hook to notify Airbrake of deploys'
@@ -2,5 +2,5 @@
2
2
  # We use Semantic Versioning v2.0.0
3
3
  # More information: http://semver.org/
4
4
  module Airbrake
5
- AIRBRAKE_VERSION = '6.1.0'.freeze
5
+ AIRBRAKE_VERSION = '6.1.1'.freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbrake Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2017-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '2.2'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 2.2.3
22
+ version: 2.2.5
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '2.2'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 2.2.3
32
+ version: 2.2.5
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement