Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More log specs, version bump (0.1.9)

  • Loading branch information...
commit af83d98928b5a1d91dc1857658a1eb3a49664794 1 parent 9275a0e
@winton authored
Showing with 4 additions and 3 deletions.
  1. +1 −1  gemspec.rb
  2. +2 −1  lib/rack/lilypad.rb
  3. +1 −1  spec/rack/lilypad_spec.rb
View
2  gemspec.rb
@@ -13,5 +13,5 @@
s.name = GEM_NAME
s.platform = Gem::Platform::RUBY
s.require_path = "lib"
- s.version = "0.1.8"
+ s.version = "0.1.9"
end
View
3  lib/rack/lilypad.rb
@@ -70,7 +70,8 @@ def post(exception, env)
http.post uri.path, xml(exception, env), headers
rescue TimeoutError => e
end
- if response == Net::HTTPSuccess
+ case response
+ when Net::HTTPSuccess
env['hoptoad.notified'] = true
log "Hoptoad Success: #{response.class}"
else
View
2  spec/rack/lilypad_spec.rb
@@ -15,7 +15,7 @@ def app
@http = mock(:http)
@http.stub!(:read_timeout=)
@http.stub!(:open_timeout=)
- @http.stub!(:post).and_return Net::HTTPSuccess
+ @http.stub!(:post).and_return Net::HTTPOK.new(nil, nil, nil)
Net::HTTP.stub!(:start).and_yield(@http)
end
Please sign in to comment.
Something went wrong with that request. Please try again.