airbrake 5.2.2 → 5.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ab2fdcd1dece5b9a45b532ec694718886ec7601
4
- data.tar.gz: e16322f2166b5132685f1f23ebf5767f4d437f2d
3
+ metadata.gz: 37c591519802f031d50d9436d0574a31cd0a9a2c
4
+ data.tar.gz: ab00bbd5f8f8ae62467fe06926a9c45f65d723e0
5
5
  SHA512:
6
- metadata.gz: ab1375c59c9c5a25413c4c6d236c163e3670aa2fd2c9947dee51a7bcb5f76362d22b370a148d794e622cbac5a1974ba52bb203dac37cc82b447365f3708b268d
7
- data.tar.gz: c03c7a26c4b0d9b17db076a24529355bdec140cf4708c2e049397ef3dcc2e3c2508011f0975a0897933568664a9a0e75142fc6649b9d131c6cc88f541647517b
6
+ metadata.gz: 730b23edf1a791669aae0d976758012107df564acda93da1765463b82eb5a21fc83f0b66e667c4acfe1358d013dfe55d43c7601d8012ee3a4f2a3671ddf4e66a
7
+ data.tar.gz: 1097e9a4877b4f79ceb319387a80ddc7674d8db8938ad937bd7775aa4e056f2d18f88caff20916fbd7c7c299480aeeacabc10731fa19dddb3baf7b0d1ed833f5
@@ -15,42 +15,48 @@ namespace :airbrake do
15
15
  "#{name}:\n " + [cfg, filters].pretty_inspect
16
16
  end.join("\n")
17
17
 
18
- if response
19
- puts <<OUTPUT
20
- [ruby]
21
- description: #{RUBY_DESCRIPTION}
22
-
23
- #{if defined?(Rails)
24
- "[rails]\nversion: #{Rails::VERSION::STRING}"
25
- elsif defined?(Sinatra)
26
- "[sinatra]\nversion: #{Sinatra::VERSION}"
27
- end}
28
-
29
- [airbrake]
30
- version: #{Airbrake::AIRBRAKE_VERSION}
31
-
32
- [airbrake-ruby]
33
- version: #{Airbrake::Notice::NOTIFIER[:version]}
34
-
35
- [notifiers]
36
- #{notifiers}
37
-
38
- The output above contains useful information about your environment. Our support
39
- team may request this information if you have problems using the Airbrake gem;
40
- we would be really grateful if you could attach the output to your message.
41
-
42
- The test exception was sent. Find it here: #{response['url']}
43
- OUTPUT
18
+ if !response
19
+ puts <<-NORESPONSE.gsub(/^\s+\|/, '')
20
+ |Couldn't send a test exception. There are two reasons for this:
21
+ |
22
+ |1. Airbrake ignored this exception due to misconfigured filters
23
+ |2. Airbrake was configured to ignore the '#{Rails.env}' environment.
24
+ | To fix this try one of the following:
25
+ | * specify another environment via RAILS_ENV
26
+ | * temporarily unignore the '#{Rails.env}' environment
27
+ NORESPONSE
28
+ elsif response['error']
29
+ puts <<-ERROR.gsub(/^\s+\|/, '')
30
+ |Error occurred: #{response['error']}
31
+ |Make sure that your Project ID and Project Key are correct:
32
+ |https://github.com/airbrake/airbrake-ruby#project_id--project_key
33
+ ERROR
44
34
  else
45
- puts <<OUTPUT
46
- Couldn't send a test exception. There are two reasons for this:
47
-
48
- 1. Airbrake ignored this exception due to misconfigured filters
49
- 2. Airbrake was configured to ignore the '#{Rails.env}' environment.
50
- To fix this try one of the following:
51
- * specify another environment via RAILS_ENV
52
- * temporarily unignore the '#{Rails.env}' environment
53
- OUTPUT
35
+ puts <<-OUTPUT.gsub(/^\s+\|/, '')
36
+ |[ruby]
37
+ |description: #{RUBY_DESCRIPTION}
38
+ |
39
+ |#{if defined?(Rails)
40
+ "[rails]\nversion: #{Rails::VERSION::STRING}"
41
+ elsif defined?(Sinatra)
42
+ "[sinatra]\nversion: #{Sinatra::VERSION}"
43
+ end}
44
+ |
45
+ |[airbrake]
46
+ |version: #{Airbrake::AIRBRAKE_VERSION}
47
+ |
48
+ |[airbrake-ruby]
49
+ |version: #{Airbrake::Notice::NOTIFIER[:version]}
50
+ |
51
+ |[notifiers]
52
+ |#{notifiers}
53
+ |
54
+ |The output above contains useful information about your environment. Our support
55
+ |team may request this information if you have problems using the Airbrake gem;
56
+ |we would be really grateful if you could attach the output to your message.
57
+ |
58
+ |The test exception was sent. Find it here: #{response['url']}
59
+ OUTPUT
54
60
  end
55
61
  end
56
62
 
@@ -94,7 +100,14 @@ OUTPUT
94
100
 
95
101
  exit!(1) if [id, key].any?(&:nil?)
96
102
 
103
+ unless (env = heroku_env['RAILS_ENV'])
104
+ env = 'production'
105
+ puts "Airbrake couldn't identify your app's environment, so the '#{env}'" \
106
+ " environment will be used."
107
+ end
108
+
97
109
  url = "https://airbrake.io/api/v3/projects/#{id}/heroku-deploys?key=#{key}"
110
+ url << "&environment=#{env}"
98
111
 
99
112
  command = %(heroku addons:create deployhooks:http --url="#{url}")
100
113
  command << " --app #{app}" if app
@@ -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 = '5.2.2'.freeze
5
+ AIRBRAKE_VERSION = '5.2.3'.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: 5.2.2
4
+ version: 5.2.3
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: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby