airbrake 7.0.0 → 7.0.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: eea34198ae7c01f0b7d143035102000788cbdb86
4
- data.tar.gz: 0dac51fc07eb9cb365f7d2c5876e31842c7fcb53
3
+ metadata.gz: eb7c6831673d8b0239a5f5b6d9c6dcfc1798ce9b
4
+ data.tar.gz: f508c4345c20fbd850accded58035e4a02de29fa
5
5
  SHA512:
6
- metadata.gz: ffca6ea359597a7a840837e0e48c9ca5ad80d3eafcf29cb82cd1f798ef31761b2015204064fdd8127f637197c5f281595abd9c86639aaf636625c38543d1bd3a
7
- data.tar.gz: 2cfb221b2ac970269566a8adaa2c21153d3e929396d4f5c4a03a43b25eba99bf73fb5ebff8f368fa9356a677ae92a736f0d78008eb474e7c37db740a1ba5a79c
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=#{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
 
@@ -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['code']
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 ID or project key is incorrect
20
- | 2. Exception was ignored due to misconfigured filters
21
- | 3. The environment this task runs in is ignored by Airbrake
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
- else
24
- puts <<-OUTPUT.gsub(/^\s+\|/, '')
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
- OUTPUT
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
 
@@ -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 = '7.0.0'.freeze
5
+ AIRBRAKE_VERSION = '7.0.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: 7.0.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-21 00:00:00.000000000 Z
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.8
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