hoptoad_notifier 2.3.12 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +55 -0
- data/README.rdoc +4 -3
- data/README_FOR_HEROKU_ADDON.md +13 -2
- data/SUPPORTED_RAILS_VERSIONS +2 -5
- data/lib/hoptoad_notifier/rails/javascript_notifier.rb +1 -1
- data/lib/hoptoad_notifier/rails3_tasks.rb +1 -10
- data/lib/hoptoad_notifier/shared_tasks.rb +24 -0
- data/lib/hoptoad_notifier/tasks.rb +1 -15
- data/lib/hoptoad_notifier/version.rb +1 -1
- data/lib/templates/javascript_notifier.erb +3 -3
- metadata +5 -4
data/CHANGELOG
CHANGED
@@ -1,3 +1,55 @@
|
|
1
|
+
Version 2.4.0 - Thu Jan 06 15:03:58 -0500 2011
|
2
|
+
===============================================================================
|
3
|
+
|
4
|
+
Jason Morrison (1):
|
5
|
+
Remove official support for very old Rails version going forward
|
6
|
+
|
7
|
+
Version 2.3.14 - Wed Jan 05 14:06:12 -0500 2011
|
8
|
+
===============================================================================
|
9
|
+
|
10
|
+
Jason Morrison (1):
|
11
|
+
Fix 'require' path
|
12
|
+
|
13
|
+
Version 2.3.13 - Mon Jan 03 15:56:20 -0500 2011
|
14
|
+
===============================================================================
|
15
|
+
|
16
|
+
Dan Croak (1):
|
17
|
+
including twiddle wakka in install instructions
|
18
|
+
|
19
|
+
Emma Lindsay (5):
|
20
|
+
Sends more javascript information back to hoptaod
|
21
|
+
Merge branch 'js_notifier_default_fields'
|
22
|
+
Bumping to version 2.3.10
|
23
|
+
Updated jferris-mocha to bourne
|
24
|
+
Update readme to show quotes around error names in ignores
|
25
|
+
|
26
|
+
Jason Morrison (8):
|
27
|
+
wip: Supply default url, component, action for JS notifier
|
28
|
+
gracefully fall back to require 'activesupport' if require 'active_support' fails
|
29
|
+
Add non-capistrano deploy instructions
|
30
|
+
Add instructions for heroku gem to Heroku addon README
|
31
|
+
Add AbstractController::ActionNotFound to default ignore list
|
32
|
+
Bumping to version 2.3.12
|
33
|
+
Bugfix: JS Notifier will now insert itself even when <head> tag has attributes
|
34
|
+
Add Heroku deploy notification
|
35
|
+
|
36
|
+
Jon Yurek (11):
|
37
|
+
Require bourne, run right cucumber task
|
38
|
+
Get the API key from Heroku
|
39
|
+
Bumped version: 2.3.11
|
40
|
+
Getting green cucumber stories
|
41
|
+
Fakes out the heroku command for cucumber.
|
42
|
+
Mount the metal endpoint in Rails 3 tests.
|
43
|
+
Metal test mounts at /metal
|
44
|
+
Supported versions: 2.3.9, 2.3.10, and 3.0.1
|
45
|
+
Return non-zero on cucumber failure.
|
46
|
+
Controller info for older Rails-es is different.
|
47
|
+
Remove Rails 2.0.2 from official support. Added 3.0.2+3
|
48
|
+
|
49
|
+
Trevor Turk (1):
|
50
|
+
Fix default ignores in the README
|
51
|
+
|
52
|
+
|
1
53
|
Version 2.3.12 - Wed Nov 03 13:53:18 -0400 2010
|
2
54
|
===============================================================================
|
3
55
|
|
@@ -304,6 +356,9 @@ Nick Quaranto (3):
|
|
304
356
|
|
305
357
|
|
306
358
|
|
359
|
+
|
360
|
+
|
361
|
+
|
307
362
|
|
308
363
|
|
309
364
|
|
data/README.rdoc
CHANGED
@@ -32,7 +32,7 @@ Remove the vendor/plugins/hoptoad_notifier directory before installing the gem,
|
|
32
32
|
|
33
33
|
Add the hoptoad_notifier gem to your Gemfile. In Gemfile:
|
34
34
|
|
35
|
-
gem
|
35
|
+
gem "hoptoad_notifier", "~> 2.3"
|
36
36
|
|
37
37
|
Then from your project's RAILS_ROOT, run:
|
38
38
|
|
@@ -299,6 +299,7 @@ notifications (when #notify is called directly).
|
|
299
299
|
|
300
300
|
Hoptoad ignores the following exceptions by default:
|
301
301
|
|
302
|
+
AbstractController::ActionNotFound
|
302
303
|
ActiveRecord::RecordNotFound
|
303
304
|
ActionController::RoutingError
|
304
305
|
ActionController::InvalidAuthenticityToken
|
@@ -310,7 +311,7 @@ configuration block.
|
|
310
311
|
|
311
312
|
HoptoadNotifier.configure do |config|
|
312
313
|
config.api_key = '1234567890abcdef'
|
313
|
-
config.ignore << ActiveRecord::IgnoreThisError
|
314
|
+
config.ignore << "ActiveRecord::IgnoreThisError"
|
314
315
|
end
|
315
316
|
|
316
317
|
To ignore *only* certain errors (and override the defaults), use the
|
@@ -318,7 +319,7 @@ To ignore *only* certain errors (and override the defaults), use the
|
|
318
319
|
|
319
320
|
HoptoadNotifier.configure do |config|
|
320
321
|
config.api_key = '1234567890abcdef'
|
321
|
-
config.ignore_only = [ActiveRecord::IgnoreThisError]
|
322
|
+
config.ignore_only = ["ActiveRecord::IgnoreThisError"]
|
322
323
|
end
|
323
324
|
|
324
325
|
To ignore certain user agents, add in the #ignore_user_agent attribute as a
|
data/README_FOR_HEROKU_ADDON.md
CHANGED
@@ -69,14 +69,25 @@ In order to use hoptoad_notifier in a non-Rails rack app, just load the hoptoad_
|
|
69
69
|
For Rails 1.x, visit the [Hoptoad notifier's README on GitHub](http://github.com/thoughtbot/hoptoad_notifier),
|
70
70
|
and be sure to use `ENV['HOPTOAD_API_KEY']` where your API key is required in configuration code.
|
71
71
|
|
72
|
-
3. Configure your notification settings
|
73
|
-
|
72
|
+
3. Configure your notification settings (important!)
|
73
|
+
---------------------------------------------------
|
74
74
|
|
75
75
|
Once you have included and configured the notifier in your application,
|
76
76
|
you will want to configure your notification settings.
|
77
77
|
|
78
|
+
This is important - without setting your email address, you won't receive notification emails.
|
79
|
+
|
78
80
|
Hoptoad can deliver exception notifications to your email inbox. To configure these delivery settings:
|
79
81
|
|
80
82
|
1. Visit your application's Hoptoad Add-on page, like [ http://api.heroku.com/myapps/my-great-app/addons/hoptoad:basic ](http://api.heroku.com/myapps/my-great-app/addons/hoptoad:basic)
|
81
83
|
2. Click "Go to Hoptoad admin" to configure the Hoptoad Add-on on the Hoptoadapp.com website
|
82
84
|
3. Click the "Profile" button in the header to edit your email address and notification settings.
|
85
|
+
|
86
|
+
4. Optionally: Set up deploy notification
|
87
|
+
-----------------------------------------
|
88
|
+
|
89
|
+
If your Hoptoad plan supports deploy notification, set it up for your Heroku application like this:
|
90
|
+
|
91
|
+
rake hoptoad:heroku:add_deploy_notification
|
92
|
+
|
93
|
+
This will install a Heroku [HTTP Deploy Hook](http://docs.heroku.com/deploy-hooks) to notify Hoptoad of the deploy.
|
data/SUPPORTED_RAILS_VERSIONS
CHANGED
@@ -1,16 +1,7 @@
|
|
1
1
|
require 'hoptoad_notifier'
|
2
|
+
require File.join(File.dirname(__FILE__), 'shared_tasks')
|
2
3
|
|
3
4
|
namespace :hoptoad do
|
4
|
-
desc "Notify Hoptoad of a new deploy."
|
5
|
-
task :deploy => :environment do
|
6
|
-
require 'hoptoad_tasks'
|
7
|
-
HoptoadTasks.deploy(:rails_env => ENV['TO'],
|
8
|
-
:scm_revision => ENV['REVISION'],
|
9
|
-
:scm_repository => ENV['REPO'],
|
10
|
-
:local_username => ENV['USER'],
|
11
|
-
:api_key => ENV['API_KEY'])
|
12
|
-
end
|
13
|
-
|
14
5
|
desc "Verify your gem installation by sending a test exception to the hoptoad service"
|
15
6
|
task :test => [:environment] do
|
16
7
|
Rails.logger = Logger.new(STDOUT)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
namespace :hoptoad do
|
2
|
+
desc "Notify Hoptoad of a new deploy."
|
3
|
+
task :deploy => :environment do
|
4
|
+
require 'hoptoad_tasks'
|
5
|
+
HoptoadTasks.deploy(:rails_env => ENV['TO'],
|
6
|
+
:scm_revision => ENV['REVISION'],
|
7
|
+
:scm_repository => ENV['REPO'],
|
8
|
+
:local_username => ENV['USER'],
|
9
|
+
:api_key => ENV['API_KEY'])
|
10
|
+
end
|
11
|
+
|
12
|
+
namespace :heroku do
|
13
|
+
desc "Install Heroku deploy notifications addon"
|
14
|
+
task :add_deploy_notification => [:environment] do
|
15
|
+
heroku_api_key = `heroku console 'puts ENV[%{HOPTOAD_API_KEY}]' | head -n 1`.strip
|
16
|
+
heroku_rails_env = `heroku console 'puts RAILS_ENV' | head -n 1`.strip
|
17
|
+
|
18
|
+
command = %Q(heroku addons:add deployhooks:http url="http://hoptoadapp.com/deploys.txt?deploy[rails_env]=#{heroku_rails_env}&api_key=#{heroku_api_key}")
|
19
|
+
|
20
|
+
puts "\nRunning:\n#{command}\n"
|
21
|
+
puts `#{command}`
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -1,21 +1,7 @@
|
|
1
1
|
require 'hoptoad_notifier'
|
2
|
+
require File.join(File.dirname(__FILE__), 'shared_tasks')
|
2
3
|
|
3
4
|
namespace :hoptoad do
|
4
|
-
desc "Notify Hoptoad of a new deploy."
|
5
|
-
task :deploy => :environment do
|
6
|
-
require 'hoptoad_tasks'
|
7
|
-
HoptoadTasks.deploy(:rails_env => ENV['TO'],
|
8
|
-
:scm_revision => ENV['REVISION'],
|
9
|
-
:scm_repository => ENV['REPO'],
|
10
|
-
:local_username => ENV['USER'],
|
11
|
-
:api_key => ENV['API_KEY'])
|
12
|
-
end
|
13
|
-
|
14
|
-
task :log_stdout do
|
15
|
-
require 'logger'
|
16
|
-
RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
|
17
|
-
end
|
18
|
-
|
19
5
|
desc "Verify your gem installation by sending a test exception to the hoptoad service"
|
20
6
|
task :test => ['hoptoad:log_stdout', :environment] do
|
21
7
|
RAILS_DEFAULT_LOGGER.level = Logger::DEBUG
|
@@ -10,8 +10,8 @@ document.write(unescape("%3Cscript src='" + notifierJsScheme + "<%= host %>/java
|
|
10
10
|
Hoptoad.setHost('<%= host %>');
|
11
11
|
Hoptoad.setEnvironment('<%= environment %>');
|
12
12
|
Hoptoad.setErrorDefaults({
|
13
|
-
url: "<%= request.
|
14
|
-
component: "<%= controller_name %>",
|
15
|
-
action: "<%= action_name %>"
|
13
|
+
url: "<%= a = "#{controller.request.protocol}#{controller.request.host_with_port}#{controller.request.request_uri}"; p a; a %>",
|
14
|
+
component: "<%= controller.controller_name %>",
|
15
|
+
action: "<%= controller.action_name %>"
|
16
16
|
});
|
17
17
|
</script>
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 2
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 2.
|
7
|
+
- 4
|
8
|
+
- 0
|
9
|
+
version: 2.4.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- thoughtbot, inc
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-01-06 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- lib/hoptoad_notifier/rails3_tasks.rb
|
138
138
|
- lib/hoptoad_notifier/railtie.rb
|
139
139
|
- lib/hoptoad_notifier/sender.rb
|
140
|
+
- lib/hoptoad_notifier/shared_tasks.rb
|
140
141
|
- lib/hoptoad_notifier/tasks.rb
|
141
142
|
- lib/hoptoad_notifier/version.rb
|
142
143
|
- lib/hoptoad_notifier.rb
|