airbrake_cleanup 1.0.7 → 1.1.0

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.
data/README CHANGED
@@ -1,7 +1,7 @@
1
1
  AirbrakeCleanup
2
2
  ===========
3
3
 
4
- Simple plugin to cleanup all hoptoad errors in an account
4
+ Simple plugin to cleanup all airbrake errors on a free airbrake account
5
5
 
6
6
  Example
7
7
  =======
@@ -7,7 +7,7 @@ module AirbrakeCleanup
7
7
  attr_accessor :account, :auth_token, :secure
8
8
 
9
9
  def account_path
10
- "#{protocol}://#{@account}.hoptoadapp.com"
10
+ "#{protocol}://#{@account}.airbrake.io"
11
11
  end
12
12
 
13
13
  def protocol
@@ -1,19 +1,19 @@
1
- # Defines deploy:cleanup_hoptoad which will cleanup all errors.
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:cleanup_hoptoad"
4
+ after "deploy", "deploy:cleanup_airbrake"
5
5
 
6
6
  namespace :deploy do
7
- desc "Cleanup all Hoptoad"
8
- task :cleanup_hoptoad, :except => { :no_release => true } do
9
- rails_env = fetch(:hoptoad_env, fetch(:rails_env, "production"))
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} hoptoad:cleanup"
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 "Hoptoad cleanup complete."
16
+ puts "Airbrake cleanup complete."
17
17
  end
18
18
  end
19
19
  end
@@ -1,5 +1,5 @@
1
- namespace :hoptoad do
2
- desc "Cleanup up all hoptoad errors on deploy"
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
- hash: 25
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
- date: 2011-08-14 00:00:00 +02:00
19
- default_executable:
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
- prerelease: false
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
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
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
- hash: 3
65
- segments:
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
- hash: 3
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.6.2
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
-