airbrake_cleanup 1.0.7 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/lib/airbrake_cleanup.rb +1 -1
- data/lib/airbrake_cleanup/recipes.rb +7 -7
- data/lib/airbrake_cleanup/tasks.rb +2 -2
- metadata +32 -51
data/README
CHANGED
data/lib/airbrake_cleanup.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
# Defines deploy:
|
1
|
+
# Defines deploy:cleanup_airbrake which will cleanup all errors.
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance(:must_exist).load do
|
4
|
-
after "deploy", "deploy:
|
4
|
+
after "deploy", "deploy:cleanup_airbrake"
|
5
5
|
|
6
6
|
namespace :deploy do
|
7
|
-
desc "Cleanup all
|
8
|
-
task :
|
9
|
-
rails_env = fetch(:
|
7
|
+
desc "Cleanup all Airbrake errors"
|
8
|
+
task :cleanup_airbrake, :except => { :no_release => true } do
|
9
|
+
rails_env = fetch(:airbrake_env, fetch(:rails_env, "production"))
|
10
10
|
executable = RUBY_PLATFORM.downcase.include?('mswin') ? fetch(:rake, 'rake.bat') : fetch(:rake, 'rake')
|
11
|
-
notify_command = "#{executable}
|
11
|
+
notify_command = "#{executable} airbrake:cleanup"
|
12
12
|
notify_command << " DRY_RUN=true" if dry_run
|
13
13
|
notify_command << " API_KEY=#{ENV['API_KEY']}" if ENV['API_KEY']
|
14
14
|
puts "Cleanup all unresolved errors (#{notify_command})"
|
15
15
|
`#{notify_command}`
|
16
|
-
puts "
|
16
|
+
puts "Airbrake cleanup complete."
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
namespace :
|
2
|
-
desc "Cleanup up all
|
1
|
+
namespace :airbrake do
|
2
|
+
desc "Cleanup up all airbrake errors on deploy"
|
3
3
|
task :cleanup => :environment do
|
4
4
|
if AirbrakeCleanup.auth_token.blank? || AirbrakeCleanup.account.blank?
|
5
5
|
$stderr.puts "Missing authentication infos\nAdd the following in an initializer\AAirbrakeCleanup.account = 'account_name'\nAirbrakeCleanup.auth_token='XXXX'"
|
metadata
CHANGED
@@ -1,85 +1,66 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake_cleanup
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 7
|
10
|
-
version: 1.0.7
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Olivier Ruffin
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-06-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: rest-client
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :runtime
|
34
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
35
30
|
description: Allow to clean up all errors of an Airbrake account
|
36
31
|
email: olivier@muweb.fr
|
37
32
|
executables: []
|
38
|
-
|
39
33
|
extensions: []
|
40
|
-
|
41
34
|
extra_rdoc_files: []
|
42
|
-
|
43
|
-
files:
|
35
|
+
files:
|
44
36
|
- README
|
45
37
|
- init.rb
|
46
38
|
- lib/airbrake_cleanup/railtie.rb
|
47
39
|
- lib/airbrake_cleanup/recipes.rb
|
48
40
|
- lib/airbrake_cleanup/tasks.rb
|
49
41
|
- lib/airbrake_cleanup.rb
|
50
|
-
has_rdoc: true
|
51
42
|
homepage: https://github.com/veilleperso/airbrake_cleanup
|
52
43
|
licenses: []
|
53
|
-
|
54
44
|
post_install_message:
|
55
45
|
rdoc_options: []
|
56
|
-
|
57
|
-
require_paths:
|
46
|
+
require_paths:
|
58
47
|
- lib
|
59
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
49
|
none: false
|
61
|
-
requirements:
|
62
|
-
- -
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
|
65
|
-
|
66
|
-
- 0
|
67
|
-
version: "0"
|
68
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
55
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
version: "0"
|
56
|
+
requirements:
|
57
|
+
- - ! '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
77
60
|
requirements: []
|
78
|
-
|
79
61
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.
|
62
|
+
rubygems_version: 1.8.23
|
81
63
|
signing_key:
|
82
64
|
specification_version: 3
|
83
65
|
summary: Airbrake errors cleanup made easy
|
84
66
|
test_files: []
|
85
|
-
|