hoptoad_notifier 2.3.11 → 2.3.12
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +32 -0
- data/README_FOR_HEROKU_ADDON.md +6 -1
- data/Rakefile +17 -7
- data/SUPPORTED_RAILS_VERSIONS +3 -0
- data/generators/hoptoad/hoptoad_generator.rb +5 -1
- data/lib/hoptoad_notifier/configuration.rb +2 -1
- data/lib/hoptoad_notifier/version.rb +1 -1
- data/lib/rails/generators/hoptoad/hoptoad_generator.rb +5 -1
- data/test/notice_test.rb +14 -23
- metadata +4 -23
data/CHANGELOG
CHANGED
@@ -1,3 +1,34 @@
|
|
1
|
+
Version 2.3.12 - Wed Nov 03 13:53:18 -0400 2010
|
2
|
+
===============================================================================
|
3
|
+
|
4
|
+
In general: Update gems, improve testing, improve documentation, improve
|
5
|
+
javascript notifier.
|
6
|
+
|
7
|
+
Emma Lindsay (4):
|
8
|
+
Sends more javascript information back to hoptaod
|
9
|
+
Merge branch 'js_notifier_default_fields'
|
10
|
+
Bumping to version 2.3.10
|
11
|
+
Updated jferris-mocha to bourne
|
12
|
+
|
13
|
+
Jason Morrison (5):
|
14
|
+
wip: Supply default url, component, action for JS notifier
|
15
|
+
gracefully fall back to require 'activesupport' if require 'active_support' fails
|
16
|
+
Add non-capistrano deploy instructions
|
17
|
+
Add instructions for heroku gem to Heroku addon README
|
18
|
+
Add AbstractController::ActionNotFound to default ignore list
|
19
|
+
|
20
|
+
Jon Yurek (9):
|
21
|
+
Require bourne, run right cucumber task
|
22
|
+
Get the API key from Heroku
|
23
|
+
Bumped version: 2.3.11
|
24
|
+
Getting green cucumber stories
|
25
|
+
Fakes out the heroku command for cucumber.
|
26
|
+
Mount the metal endpoint in Rails 3 tests.
|
27
|
+
Metal test mounts at /metal
|
28
|
+
Supported versions: 2.3.9, 2.3.10, and 3.0.1
|
29
|
+
Return non-zero on cucumber failure.
|
30
|
+
|
31
|
+
|
1
32
|
Version 2.3.10 - Mon Oct 18 17:07:56 -0400 2010
|
2
33
|
===============================================================================
|
3
34
|
|
@@ -275,3 +306,4 @@ Nick Quaranto (3):
|
|
275
306
|
|
276
307
|
|
277
308
|
|
309
|
+
|
data/README_FOR_HEROKU_ADDON.md
CHANGED
@@ -18,9 +18,10 @@ application in `ENV['HOPTOAD_API_KEY']`, so installation should be a snap!
|
|
18
18
|
|
19
19
|
### Rails 3.x
|
20
20
|
|
21
|
-
Add the hoptoad_notifier
|
21
|
+
Add the hoptoad_notifier and heroku gems to your Gemfile. In Gemfile:
|
22
22
|
|
23
23
|
gem 'hoptoad_notifier'
|
24
|
+
gem 'heroku'
|
24
25
|
|
25
26
|
Then from your project's RAILS_ROOT, run:
|
26
27
|
|
@@ -29,6 +30,10 @@ Then from your project's RAILS_ROOT, run:
|
|
29
30
|
|
30
31
|
### Rails 2.x
|
31
32
|
|
33
|
+
Install the heroku gem if you haven't already:
|
34
|
+
|
35
|
+
gem install heroku
|
36
|
+
|
32
37
|
Add the hoptoad_notifier gem to your app. In config/environment.rb:
|
33
38
|
|
34
39
|
config.gem 'hoptoad_notifier'
|
data/Rakefile
CHANGED
@@ -192,22 +192,32 @@ end
|
|
192
192
|
|
193
193
|
task :cucumber => [:gemspec, :vendor_test_gems]
|
194
194
|
|
195
|
+
def run_rails_cucumbr_task(version, additional_cucumber_args)
|
196
|
+
puts "Testing Rails #{version}"
|
197
|
+
if version.empty?
|
198
|
+
raise "No Rails version specified - make sure ENV['RAILS_VERSION'] is set, e.g. with `rake cucumber:rails:all`"
|
199
|
+
end
|
200
|
+
ENV['RAILS_VERSION'] = version
|
201
|
+
system("cucumber --format #{ENV['CUCUMBER_FORMAT'] || 'progress'} #{additional_cucumber_args} features/rails.feature features/rails_with_js_notifier.feature")
|
202
|
+
end
|
203
|
+
|
195
204
|
def define_rails_cucumber_tasks(additional_cucumber_args = '')
|
196
205
|
namespace :rails do
|
197
206
|
RAILS_VERSIONS.each do |version|
|
198
207
|
desc "Test integration of the gem with Rails #{version}"
|
199
208
|
task version => [:gemspec, :vendor_test_gems] do
|
200
|
-
|
201
|
-
if version.empty?
|
202
|
-
raise "No Rails version specified - make sure ENV['RAILS_VERSION'] is set, e.g. with `rake cucumber:rails:all`"
|
203
|
-
end
|
204
|
-
ENV['RAILS_VERSION'] = version
|
205
|
-
system("cucumber --format #{ENV['CUCUMBER_FORMAT'] || 'progress'} #{additional_cucumber_args} features/rails.feature features/rails_with_js_notifier.feature")
|
209
|
+
exit 1 unless run_rails_cucumbr_task(version, additional_cucumber_args)
|
206
210
|
end
|
207
211
|
end
|
208
212
|
|
209
213
|
desc "Test integration of the gem with all Rails versions"
|
210
|
-
task :all
|
214
|
+
task :all do
|
215
|
+
results = RAILS_VERSIONS.map do |version|
|
216
|
+
run_rails_cucumbr_task(version, additional_cucumber_args)
|
217
|
+
end
|
218
|
+
|
219
|
+
exit 1 unless results.all?
|
220
|
+
end
|
211
221
|
end
|
212
222
|
end
|
213
223
|
|
data/SUPPORTED_RAILS_VERSIONS
CHANGED
@@ -47,7 +47,7 @@ class HoptoadGenerator < Rails::Generator::Base
|
|
47
47
|
|
48
48
|
def determine_api_key
|
49
49
|
puts "Attempting to determine your API Key from Heroku..."
|
50
|
-
ENV['HOPTOAD_API_KEY'] =
|
50
|
+
ENV['HOPTOAD_API_KEY'] = heroku_api_key
|
51
51
|
if ENV['HOPTOAD_API_KEY'].blank?
|
52
52
|
puts "... Failed."
|
53
53
|
puts "WARNING: We were unable to detect the Hoptoad API Key from your Heroku environment."
|
@@ -59,6 +59,10 @@ class HoptoadGenerator < Rails::Generator::Base
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
+
def heroku_api_key
|
63
|
+
`heroku console 'puts ENV[%{HOPTOAD_API_KEY}]'`.split("\n").first
|
64
|
+
end
|
65
|
+
|
62
66
|
def heroku?
|
63
67
|
options[:heroku] ||
|
64
68
|
system("grep HOPTOAD_API_KEY config/initializers/hoptoad.rb") ||
|
@@ -111,7 +111,8 @@ module HoptoadNotifier
|
|
111
111
|
'ActionController::RoutingError',
|
112
112
|
'ActionController::InvalidAuthenticityToken',
|
113
113
|
'CGI::Session::CookieStore::TamperedWithCookie',
|
114
|
-
'ActionController::UnknownAction'
|
114
|
+
'ActionController::UnknownAction',
|
115
|
+
'AbstractController::ActionNotFound']
|
115
116
|
|
116
117
|
alias_method :secure?, :secure
|
117
118
|
|
@@ -58,7 +58,7 @@ class HoptoadGenerator < Rails::Generators::Base
|
|
58
58
|
|
59
59
|
def determine_api_key
|
60
60
|
puts "Attempting to determine your API Key from Heroku..."
|
61
|
-
ENV['HOPTOAD_API_KEY'] =
|
61
|
+
ENV['HOPTOAD_API_KEY'] = heroku_api_key
|
62
62
|
if ENV['HOPTOAD_API_KEY'].blank?
|
63
63
|
puts "... Failed."
|
64
64
|
puts "WARNING: We were unable to detect the Hoptoad API Key from your Heroku environment."
|
@@ -70,6 +70,10 @@ class HoptoadGenerator < Rails::Generators::Base
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
+
def heroku_api_key
|
74
|
+
`heroku console 'puts ENV[%{HOPTOAD_API_KEY}]'`.split("\n").first
|
75
|
+
end
|
76
|
+
|
73
77
|
def heroku?
|
74
78
|
options[:heroku] ||
|
75
79
|
system("grep HOPTOAD_API_KEY config/initializers/hoptoad.rb") ||
|
data/test/notice_test.rb
CHANGED
@@ -310,29 +310,20 @@ class NoticeTest < Test::Unit::TestCase
|
|
310
310
|
end
|
311
311
|
end
|
312
312
|
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
should "ignore TamperedWithCookie error by default" do
|
329
|
-
notice = build_notice(:error_class => 'CGI::Session::CookieStore::TamperedWithCookie')
|
330
|
-
assert notice.ignore?
|
331
|
-
end
|
332
|
-
|
333
|
-
should "ignore UnknownAction error by default" do
|
334
|
-
notice = build_notice(:error_class => 'ActionController::UnknownAction')
|
335
|
-
assert notice.ignore?
|
313
|
+
ignored_error_classes = %w(
|
314
|
+
ActiveRecord::RecordNotFound
|
315
|
+
AbstractController::ActionNotFound
|
316
|
+
ActionController::RoutingError
|
317
|
+
ActionController::InvalidAuthenticityToken
|
318
|
+
CGI::Session::CookieStore::TamperedWithCookie
|
319
|
+
ActionController::UnknownAction
|
320
|
+
)
|
321
|
+
|
322
|
+
ignored_error_classes.each do |ignored_error_class|
|
323
|
+
should "ignore #{ignored_error_class} error by default" do
|
324
|
+
notice = build_notice(:error_class => ignored_error_class)
|
325
|
+
assert notice.ignore?
|
326
|
+
end
|
336
327
|
end
|
337
328
|
|
338
329
|
should "act like a hash" do
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoptoad_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 21
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 2
|
8
7
|
- 3
|
9
|
-
-
|
10
|
-
version: 2.3.
|
8
|
+
- 12
|
9
|
+
version: 2.3.12
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- thoughtbot, inc
|
@@ -15,18 +14,16 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-11-03 00:00:00 -04:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: builder
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
24
|
requirements:
|
27
25
|
- - ">="
|
28
26
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
27
|
segments:
|
31
28
|
- 0
|
32
29
|
version: "0"
|
@@ -36,11 +33,9 @@ dependencies:
|
|
36
33
|
name: activesupport
|
37
34
|
prerelease: false
|
38
35
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
36
|
requirements:
|
41
37
|
- - ">="
|
42
38
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 3
|
44
39
|
segments:
|
45
40
|
- 0
|
46
41
|
version: "0"
|
@@ -50,11 +45,9 @@ dependencies:
|
|
50
45
|
name: activerecord
|
51
46
|
prerelease: false
|
52
47
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
48
|
requirements:
|
55
49
|
- - ">="
|
56
50
|
- !ruby/object:Gem::Version
|
57
|
-
hash: 3
|
58
51
|
segments:
|
59
52
|
- 0
|
60
53
|
version: "0"
|
@@ -64,11 +57,9 @@ dependencies:
|
|
64
57
|
name: actionpack
|
65
58
|
prerelease: false
|
66
59
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
60
|
requirements:
|
69
61
|
- - ">="
|
70
62
|
- !ruby/object:Gem::Version
|
71
|
-
hash: 3
|
72
63
|
segments:
|
73
64
|
- 0
|
74
65
|
version: "0"
|
@@ -78,11 +69,9 @@ dependencies:
|
|
78
69
|
name: bourne
|
79
70
|
prerelease: false
|
80
71
|
requirement: &id005 !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
|
-
hash: 3
|
86
75
|
segments:
|
87
76
|
- 0
|
88
77
|
version: "0"
|
@@ -92,11 +81,9 @@ dependencies:
|
|
92
81
|
name: nokogiri
|
93
82
|
prerelease: false
|
94
83
|
requirement: &id006 !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
84
|
requirements:
|
97
85
|
- - ">="
|
98
86
|
- !ruby/object:Gem::Version
|
99
|
-
hash: 3
|
100
87
|
segments:
|
101
88
|
- 0
|
102
89
|
version: "0"
|
@@ -106,11 +93,9 @@ dependencies:
|
|
106
93
|
name: shoulda
|
107
94
|
prerelease: false
|
108
95
|
requirement: &id007 !ruby/object:Gem::Requirement
|
109
|
-
none: false
|
110
96
|
requirements:
|
111
97
|
- - ">="
|
112
98
|
- !ruby/object:Gem::Version
|
113
|
-
hash: 3
|
114
99
|
segments:
|
115
100
|
- 0
|
116
101
|
version: "0"
|
@@ -184,27 +169,23 @@ rdoc_options:
|
|
184
169
|
require_paths:
|
185
170
|
- lib
|
186
171
|
required_ruby_version: !ruby/object:Gem::Requirement
|
187
|
-
none: false
|
188
172
|
requirements:
|
189
173
|
- - ">="
|
190
174
|
- !ruby/object:Gem::Version
|
191
|
-
hash: 3
|
192
175
|
segments:
|
193
176
|
- 0
|
194
177
|
version: "0"
|
195
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
|
-
none: false
|
197
179
|
requirements:
|
198
180
|
- - ">="
|
199
181
|
- !ruby/object:Gem::Version
|
200
|
-
hash: 3
|
201
182
|
segments:
|
202
183
|
- 0
|
203
184
|
version: "0"
|
204
185
|
requirements: []
|
205
186
|
|
206
187
|
rubyforge_project:
|
207
|
-
rubygems_version: 1.3.
|
188
|
+
rubygems_version: 1.3.6
|
208
189
|
signing_key:
|
209
190
|
specification_version: 3
|
210
191
|
summary: Send your application errors to our hosted service and reclaim your inbox.
|