rack-exception_notifier 0.3.3 → 0.3.4

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: 822156c3da6de41412f29c2c55883d3962f392ff
4
- data.tar.gz: 111e4fcc1b7ce50dc71048fd3e105a50de8a8a59
3
+ metadata.gz: eff7912fbd5365e4716d2ad545cd3b3b395d4100
4
+ data.tar.gz: fae2590d70af34a431f175d52b6ca184b7ad800c
5
5
  SHA512:
6
- metadata.gz: f8d5e86119e579bbd5a23fcc72397e834d5b3212f765eabb626bca7b01b249f5b03ab050e584d620d74d381f4e450fd69ffbfa9387047ff54bdf25fc6168bc87
7
- data.tar.gz: f913c417b5f1f5e92c48c5dabe1084cbff9818a3e79fa242f3c6bfb16ec2d400a6a4b60119a51bd46d1f72157494726098c41b31f0bcf0538c50bf6d23488206
6
+ metadata.gz: 336dd7f29d4d713531c086becef893dcb137f8eb11041cede89b745aaf455d01da95becf5da2520f72621c53ec367ab4b384fa7b19a90011b8a9575934ff737f
7
+ data.tar.gz: 1b68ab301dae6dc4d72847db8456a858ebdf2a58b0a8df5811d2608e66fee16b72b318843c5f85eb143c17815c793b0534857a01d7f121e4711f52c707d72ff0
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2013 John Downey
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class ExceptionNotifier
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4'
4
4
  end
5
5
  end
@@ -16,6 +16,13 @@ describe Rack::ExceptionNotifier do
16
16
  Rack::ExceptionNotifier.new(good_app, {})
17
17
  end.to raise_error(ArgumentError, 'to address is required')
18
18
  end
19
+
20
+ it 'passes rack lint' do
21
+ app = Rack::Lint.new(good_app)
22
+ expect do
23
+ Rack::ExceptionNotifier.new(app, :to => 'bar@example.com', :from => 'noreply@example.com', :subject => 'testing - %s')
24
+ end.to_not raise_error
25
+ end
19
26
  end
20
27
 
21
28
  describe 'call' do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rack'
1
2
  require 'rack/exception_notifier'
2
3
  require 'rack/mock'
3
4
 
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.3.3
4
+ version: 0.3.4
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-05-10 00:00:00.000000000 Z
11
+ date: 2013-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 2.5.3
19
+ version: '2.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 2.5.3
26
+ version: '2.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
34
- type: :runtime
33
+ version: 1.5.2
34
+ type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: 1.5.2
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: '2.13'
47
+ version: 10.0.4
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: '2.13'
54
+ version: 10.0.4
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 10.0.3
61
+ version: 2.13.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 10.0.3
68
+ version: 2.13.0
69
69
  description: Rack middleware to send email when exceptions are raised
70
70
  email:
71
71
  - jdowney@gmail.com
@@ -78,6 +78,7 @@ files:
78
78
  - spec/lib/rack/exception_notifier_spec.rb
79
79
  - spec/spec_helper.rb
80
80
  - README.md
81
+ - LICENSE
81
82
  homepage: http://github.com/jtdowney/rack-exception_notifier
82
83
  licenses:
83
84
  - MIT