rack_hoptoad 0.0.1 → 0.0.2

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.md CHANGED
@@ -9,9 +9,12 @@ Throw something like this in your config.ru to enable notifications.
9
9
 
10
10
  require 'rack_hoptoad'
11
11
 
12
- ENV['RACK_ENV'] = 'production'
13
-
14
12
  use Rack::HoptoadNotifier, 'fd48c7d26f724503a0280f808f44b339fc65fab8'
15
13
 
16
- If your RACK_ENV variable is set to production it'll actually post to hoptoad.
17
- It won't process in the other environments.
14
+ If your RACK_ENV variable is set to production or staging it'll actually post
15
+ to hoptoad. It won't process in the other environments.
16
+
17
+ Installation
18
+ ============
19
+
20
+ % sudo gem install rack_hoptoad
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'spec/rake/spectask'
5
5
  require 'date'
6
6
 
7
7
  GEM = "rack_hoptoad"
8
- GEM_VERSION = "0.0.1"
8
+ GEM_VERSION = "0.0.2"
9
9
  AUTHOR = "Corey Donohoe"
10
10
  EMAIL = "atmos@atmos.org"
11
11
  HOMEPAGE = "http://github.com/atmos/rack_hoptoad"
@@ -16,7 +16,7 @@ module Rack
16
16
  status, headers, body =
17
17
  begin
18
18
  @app.call(env)
19
- rescue => boom
19
+ rescue StandardError, LoadError, SyntaxError => boom
20
20
  # TODO don't allow exceptions from send_notification to
21
21
  # propogate
22
22
  send_notification boom, env
@@ -40,8 +40,10 @@ module Rack
40
40
  :environment => env.to_hash
41
41
  }
42
42
 
43
+ bad_request = Rack::Request.new(env)
44
+
43
45
  data[:request] = {
44
- :params => Rack::Request.new(env).params
46
+ :params => {'request.path' => bad_request.path}.merge(bad_request.params)
45
47
  }
46
48
 
47
49
  data[:environment] = clean_hoptoad_environment(ENV.to_hash.merge(env))
data/lib/rack_hoptoad.rb CHANGED
@@ -1,4 +1,4 @@
1
- gem 'rack', '~>1.0.0'
1
+ gem 'rack', '>=0.9.1'
2
2
  require 'rack'
3
3
 
4
4
  root = File.expand_path(File.dirname(__FILE__))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_hoptoad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Donohoe