rack-exception_notifier 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bbcffea7a8294e5955073047dac373156125438
4
- data.tar.gz: dd3f3a570d8974c93d95108a0bc985e6904b96e0
3
+ metadata.gz: 7c74dd74a2958cfa551a3ef9b173147e027b35f2
4
+ data.tar.gz: 3d83cd0869babccda39cac01dfdb4f84737a77ee
5
5
  SHA512:
6
- metadata.gz: cb53f2455e04b8317f10f4f15918263fddc9df5fd5a7bf1e843fab07f479bac7ea06d6d046c78636ee20a12baf531c022975ada05951377ff745e25e9abff585
7
- data.tar.gz: 3ff38c7e83cee7cdc410910ee97eed661ba5b2815d2e3310c3703b306694f116508097b9ea335ef622f48a2803d270320b005df7aff68defd07361ed23a2eb21
6
+ metadata.gz: bc17a8caf8ffd765ac0cc0a41f9870b6257782618e2e1163e11ae7a30721af061103c478b9713c21e31b12aa91ae5e02b1504b6cebb7d4e2121268f38cd88c93
7
+ data.tar.gz: 7beefdccac76e1ec1f84152673334916b0d9559a95cbe456e54a43ce6276d178d4f7176b00cfc661aab99cb6959c5cc6f16810fbce771c729331556b35d8540e
data/README.md CHANGED
@@ -15,6 +15,7 @@ Next configure the mail gem, by default mail will send email via SMTP to port 25
15
15
  Then you need to configure rack to use the middleware. Below is an example for sinatra:
16
16
 
17
17
  ```ruby
18
+ enable :raise_errors
18
19
  use Rack::ExceptionNotifier,
19
20
  :to => 'me@example.com',
20
21
  :from => 'app@example.com',
@@ -1,3 +1,6 @@
1
+ require 'erb'
2
+ require 'mail'
3
+
1
4
  module Rack
2
5
  class ExceptionNotifier
3
6
  def initialize(app, options)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class ExceptionNotifier
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'mail'
2
1
  require 'rack/exception_notifier'
3
2
  require 'rack/mock'
4
3
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-exception_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Downey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-08 00:00:00.000000000 Z
11
+ date: 2013-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail