airbrake 7.0.0 → 7.0.1
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 +4 -4
- data/lib/airbrake/capistrano/capistrano2.rb +3 -6
- data/lib/airbrake/rake/tasks.rb +16 -8
- data/lib/airbrake/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb7c6831673d8b0239a5f5b6d9c6dcfc1798ce9b
|
4
|
+
data.tar.gz: f508c4345c20fbd850accded58035e4a02de29fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6faa642ee659089ba7f433ded33c7017906f2e9f4621db2cfa74fe22b4bb16afe835caffd6244875ee1621a81aaeeec26e9e4fac39562147474bda2a7f56d070
|
7
|
+
data.tar.gz: 954279296b7e08367a7af2e6c3018cd39aa798db2eabe9d0a8cb3033e815ae97f4d71693205754bd94d9be362ae3384086c8d7648cd33dbe99ffb9fc3484a6d2
|
@@ -2,6 +2,7 @@ module Airbrake
|
|
2
2
|
##
|
3
3
|
# The Capistrano v2 integration.
|
4
4
|
module Capistrano
|
5
|
+
# rubocop:disable Metrics/AbcSize
|
5
6
|
def self.load_into(config)
|
6
7
|
config.load do
|
7
8
|
after 'deploy', 'airbrake:deploy'
|
@@ -19,7 +20,7 @@ module Airbrake
|
|
19
20
|
RAILS_ENV=#{fetch(:rails_env, nil)} \
|
20
21
|
|
21
22
|
bundle exec rake airbrake:deploy \
|
22
|
-
USERNAME=#{
|
23
|
+
USERNAME=#{Shellwords.shellescape(ENV['USER'] || ENV['USERNAME'])} \
|
23
24
|
ENVIRONMENT=#{fetch(:airbrake_env, fetch(:rails_env, 'production'))} \
|
24
25
|
REVISION=#{current_revision.strip} \
|
25
26
|
REPOSITORY=#{repository} \
|
@@ -31,11 +32,7 @@ module Airbrake
|
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
34
|
-
|
35
|
-
def self.username
|
36
|
-
Shellwords.shellescape(ENV['USER'] || ENV['USERNAME'])
|
37
|
-
end
|
38
|
-
private_class_method :username
|
35
|
+
# rubocop:enable Metrics:AbcSize
|
39
36
|
end
|
40
37
|
end
|
41
38
|
|
data/lib/airbrake/rake/tasks.rb
CHANGED
@@ -10,21 +10,29 @@ namespace :airbrake do
|
|
10
10
|
require 'pp'
|
11
11
|
|
12
12
|
response = Airbrake.notify_sync('Exception from the test Rake task')
|
13
|
-
if response['
|
13
|
+
if response['error']
|
14
|
+
puts "Error: #{response['error']}"
|
15
|
+
elsif response.nil? || response['code']
|
14
16
|
puts <<-ERROR.gsub(/^\s+\|/, '')
|
15
|
-
|Couldn't send a test exception:
|
16
17
|
|#{response['type']}: #{response['message']} (#{response['code']})
|
17
18
|
|
|
18
19
|
|Possible problems:
|
19
|
-
| 1. Project
|
20
|
-
| 2.
|
21
|
-
| 3.
|
20
|
+
| 1. Project id/key is incorrect
|
21
|
+
| 2. Custom filters ignore the exception we try to send
|
22
|
+
| 3. Environment this task runs in is ignored (see `ignored_environments`)
|
23
|
+
|
|
24
|
+
|If nothing works, please file an issue at: https://github.com/airbrake/airbrake/issues
|
22
25
|
ERROR
|
23
|
-
|
24
|
-
puts <<-
|
26
|
+
elsif response['url']
|
27
|
+
puts <<-SUCCESS.gsub(/^\s+\|/, '')
|
25
28
|
|A test exception was sent to Airbrake.
|
26
29
|
|Find it here: #{response['url']}
|
27
|
-
|
30
|
+
SUCCESS
|
31
|
+
else
|
32
|
+
puts <<-ERROR.gsub(/^\s+\|/, '')
|
33
|
+
|Unexpected error occurred. Response from Airbrake:
|
34
|
+
|#{response}
|
35
|
+
ERROR
|
28
36
|
end
|
29
37
|
end
|
30
38
|
|
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: 7.0.
|
4
|
+
version: 7.0.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-09-
|
11
|
+
date: 2017-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake-ruby
|
@@ -288,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
288
|
version: '0'
|
289
289
|
requirements: []
|
290
290
|
rubyforge_project:
|
291
|
-
rubygems_version: 2.6.
|
291
|
+
rubygems_version: 2.6.13
|
292
292
|
signing_key:
|
293
293
|
specification_version: 4
|
294
294
|
summary: Airbrake is an online tool that provides robust exception tracking in any
|