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 +4 -4
- data/lib/airbrake/rake/tasks.rb +48 -35
- data/lib/airbrake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37c591519802f031d50d9436d0574a31cd0a9a2c
|
|
4
|
+
data.tar.gz: ab00bbd5f8f8ae62467fe06926a9c45f65d723e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 730b23edf1a791669aae0d976758012107df564acda93da1765463b82eb5a21fc83f0b66e667c4acfe1358d013dfe55d43c7601d8012ee3a4f2a3671ddf4e66a
|
|
7
|
+
data.tar.gz: 1097e9a4877b4f79ceb319387a80ddc7674d8db8938ad937bd7775aa4e056f2d18f88caff20916fbd7c7c299480aeeacabc10731fa19dddb3baf7b0d1ed833f5
|
data/lib/airbrake/rake/tasks.rb
CHANGED
|
@@ -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
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
#{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
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: 5.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-
|
|
11
|
+
date: 2016-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: airbrake-ruby
|