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 +4 -4
- data/lib/airbrake/rake/tasks.rb +9 -4
- data/lib/airbrake/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3089af4a27a2927bde27aee7442572c52d8b7d8
|
4
|
+
data.tar.gz: 00bd2a9ccffb9fd2d2a6c99e9bb91d326c952a65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffed529a186f28ab380f39ee241983dbcf2a726af8b9d88757868c5f3682e913000141551a1223d5e14d96f3666686f69128321899116018c84d3fc3874e633a
|
7
|
+
data.tar.gz: eb7948c62ffb6b8076c22e564269f24e220530669c3ceb7e82551506035c75a9c2d6b040614d128007fa35ac8449ef56813d367454511c650086ca45f03162ef
|
data/lib/airbrake/rake/tasks.rb
CHANGED
@@ -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)
|
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
|
-
|
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'
|
data/lib/airbrake/version.rb
CHANGED
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.
|
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
|
+
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.
|
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.
|
32
|
+
version: 2.2.5
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rspec
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|