errship 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +4 -0
  2. data/lib/rescuers/mongoid.rb +1 -1
  3. metadata +13 -11
data/README.rdoc CHANGED
@@ -90,6 +90,10 @@ The following methods are provided:
90
90
  If Airbrake is installed, every rescuer will report the exception, except for 404.
91
91
 
92
92
  == Changelog
93
+ 2.0.1
94
+ - Added tests for ActiveRecord, Mongoid and MongoMapper rescuers
95
+ - Fixed Mongoid module
96
+
93
97
  2.0.0
94
98
  - Breaks out ORM error handling into submodules. Not backwards compatible.
95
99
 
@@ -3,7 +3,7 @@ module Errship
3
3
  module Rescuers
4
4
  def self.included(base)
5
5
  unless Rails.application.config.consider_all_requests_local
6
- base.rescue_from ::Mongoid::DocumentNotFound, :with => :render_404_error
6
+ base.rescue_from ::Mongoid::Errors::DocumentNotFound, :with => :render_404_error
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -2,10 +2,12 @@
2
2
  name: errship
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.0
5
+ version: 2.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Logan Koester
9
+ - Matthew Wilson
10
+ - David Czarnecki
9
11
  autorequire:
10
12
  bindir: bin
11
13
  cert_chain: []
@@ -14,6 +16,7 @@ date: 2011-09-02 00:00:00 Z
14
16
  dependencies:
15
17
  - !ruby/object:Gem::Dependency
16
18
  name: haml
19
+ prerelease: false
17
20
  requirement: &id001 !ruby/object:Gem::Requirement
18
21
  none: false
19
22
  requirements:
@@ -21,10 +24,10 @@ dependencies:
21
24
  - !ruby/object:Gem::Version
22
25
  version: "0"
23
26
  type: :runtime
24
- prerelease: false
25
27
  version_requirements: *id001
26
28
  - !ruby/object:Gem::Dependency
27
29
  name: rake
30
+ prerelease: false
28
31
  requirement: &id002 !ruby/object:Gem::Requirement
29
32
  none: false
30
33
  requirements:
@@ -32,10 +35,10 @@ dependencies:
32
35
  - !ruby/object:Gem::Version
33
36
  version: 0.8.7
34
37
  type: :development
35
- prerelease: false
36
38
  version_requirements: *id002
37
39
  - !ruby/object:Gem::Dependency
38
40
  name: shoulda
41
+ prerelease: false
39
42
  requirement: &id003 !ruby/object:Gem::Requirement
40
43
  none: false
41
44
  requirements:
@@ -43,10 +46,10 @@ dependencies:
43
46
  - !ruby/object:Gem::Version
44
47
  version: "0"
45
48
  type: :development
46
- prerelease: false
47
49
  version_requirements: *id003
48
50
  - !ruby/object:Gem::Dependency
49
51
  name: bundler
52
+ prerelease: false
50
53
  requirement: &id004 !ruby/object:Gem::Requirement
51
54
  none: false
52
55
  requirements:
@@ -54,10 +57,10 @@ dependencies:
54
57
  - !ruby/object:Gem::Version
55
58
  version: 1.0.0
56
59
  type: :development
57
- prerelease: false
58
60
  version_requirements: *id004
59
61
  - !ruby/object:Gem::Dependency
60
62
  name: jeweler
63
+ prerelease: false
61
64
  requirement: &id005 !ruby/object:Gem::Requirement
62
65
  none: false
63
66
  requirements:
@@ -65,10 +68,10 @@ dependencies:
65
68
  - !ruby/object:Gem::Version
66
69
  version: 1.6.0
67
70
  type: :development
68
- prerelease: false
69
71
  version_requirements: *id005
70
72
  - !ruby/object:Gem::Dependency
71
73
  name: rcov
74
+ prerelease: false
72
75
  requirement: &id006 !ruby/object:Gem::Requirement
73
76
  none: false
74
77
  requirements:
@@ -76,10 +79,12 @@ dependencies:
76
79
  - !ruby/object:Gem::Version
77
80
  version: "0"
78
81
  type: :development
79
- prerelease: false
80
82
  version_requirements: *id006
81
83
  description: Errship is a Rails 3.1 engine for rendering error pages inside your layout. It supports i18n, custom exceptions, and Airbrake (Hoptoad) error tracking.
82
- email: lkoester@agoragames.com
84
+ email:
85
+ - lkoester@agoragames.com
86
+ - mwilson@agoragames.com
87
+ - dczarnecki@agoragames.com
83
88
  executables: []
84
89
 
85
90
  extensions: []
@@ -112,9 +117,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
117
  requirements:
113
118
  - - ">="
114
119
  - !ruby/object:Gem::Version
115
- hash: 2518776612202964264
116
- segments:
117
- - 0
118
120
  version: "0"
119
121
  required_rubygems_version: !ruby/object:Gem::Requirement
120
122
  none: false