errship 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/lib/errship.rb +3 -1
- data/lib/rescuers/active_record.rb +11 -0
- data/lib/rescuers/mongo_mapper.rb +11 -0
- data/lib/rescuers/mongoid.rb +11 -0
- metadata +70 -64
data/README.rdoc
CHANGED
@@ -27,6 +27,7 @@ Add this to your Gemfile
|
|
27
27
|
Add this to your ApplicationController
|
28
28
|
class ApplicationController < ActionController::Base
|
29
29
|
include Errship::Rescuers
|
30
|
+
include Errship::ActiveRecord::Rescuers # or replace 'ActiveRecord' with MongoMapper, or Mongoid
|
30
31
|
|
31
32
|
Errship is ready to go! To test it out in development, you'll need to set
|
32
33
|
|
@@ -89,6 +90,9 @@ The following methods are provided:
|
|
89
90
|
If Airbrake is installed, every rescuer will report the exception, except for 404.
|
90
91
|
|
91
92
|
== Changelog
|
93
|
+
2.0.0
|
94
|
+
- Breaks out ORM error handling into submodules. Not backwards compatible.
|
95
|
+
|
92
96
|
1.1.0
|
93
97
|
- Adds option to specify a custom errship_scope to use with I18n, allowing each
|
94
98
|
rescuer to customize the messages displayed.
|
data/lib/errship.rb
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
require 'haml'
|
2
|
+
require 'rescuers/active_record'
|
3
|
+
require 'rescuers/mongoid'
|
4
|
+
require 'rescuers/mongo_mapper'
|
2
5
|
|
3
6
|
module Errship
|
4
7
|
class Engine < ::Rails::Engine
|
@@ -11,7 +14,6 @@ module Errship
|
|
11
14
|
def self.included(base)
|
12
15
|
unless Rails.application.config.consider_all_requests_local
|
13
16
|
base.rescue_from Exception, :with => :render_error
|
14
|
-
base.rescue_from ActiveRecord::RecordNotFound, :with => :render_404_error
|
15
17
|
base.rescue_from ActionController::RoutingError, :with => :render_404_error
|
16
18
|
base.rescue_from ActionController::UnknownController, :with => :render_404_error
|
17
19
|
base.rescue_from ActionController::UnknownAction, :with => :render_404_error
|
metadata
CHANGED
@@ -1,127 +1,133 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: errship
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 2.0.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Logan Koester
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
|
13
|
+
date: 2011-09-02 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
16
|
name: haml
|
17
|
-
requirement: &
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0"
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
26
|
-
- !ruby/object:Gem::Dependency
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
27
|
name: rake
|
28
|
-
requirement: &
|
28
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
|
-
requirements:
|
31
|
-
- - =
|
32
|
-
- !ruby/object:Gem::Version
|
30
|
+
requirements:
|
31
|
+
- - "="
|
32
|
+
- !ruby/object:Gem::Version
|
33
33
|
version: 0.8.7
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
37
|
-
- !ruby/object:Gem::Dependency
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
38
|
name: shoulda
|
39
|
-
requirement: &
|
39
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version:
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: "0"
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
48
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
49
|
name: bundler
|
50
|
-
requirement: &
|
50
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
|
-
requirements:
|
52
|
+
requirements:
|
53
53
|
- - ~>
|
54
|
-
- !ruby/object:Gem::Version
|
54
|
+
- !ruby/object:Gem::Version
|
55
55
|
version: 1.0.0
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
59
|
-
- !ruby/object:Gem::Dependency
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
60
|
name: jeweler
|
61
|
-
requirement: &
|
61
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
|
-
requirements:
|
63
|
+
requirements:
|
64
64
|
- - ~>
|
65
|
-
- !ruby/object:Gem::Version
|
65
|
+
- !ruby/object:Gem::Version
|
66
66
|
version: 1.6.0
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
70
|
-
- !ruby/object:Gem::Dependency
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
71
|
name: rcov
|
72
|
-
requirement: &
|
72
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version:
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: "0"
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
81
|
-
description: Errship is a Rails 3.1 engine for rendering error pages inside your layout.
|
82
|
-
It supports i18n, custom exceptions, and Airbrake (Hoptoad) error tracking.
|
80
|
+
version_requirements: *id006
|
81
|
+
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.
|
83
82
|
email: lkoester@agoragames.com
|
84
83
|
executables: []
|
84
|
+
|
85
85
|
extensions: []
|
86
|
-
|
86
|
+
|
87
|
+
extra_rdoc_files:
|
87
88
|
- LICENSE.txt
|
88
89
|
- README.rdoc
|
89
|
-
files:
|
90
|
+
files:
|
90
91
|
- app/assets/javascripts/application.js
|
91
92
|
- app/assets/stylesheets/errship.css
|
92
93
|
- app/views/errship/standard.html.haml
|
93
94
|
- config/locales/en.yml
|
94
95
|
- config/routes.rb
|
95
96
|
- lib/errship.rb
|
97
|
+
- lib/rescuers/active_record.rb
|
98
|
+
- lib/rescuers/mongo_mapper.rb
|
99
|
+
- lib/rescuers/mongoid.rb
|
96
100
|
- LICENSE.txt
|
97
101
|
- README.rdoc
|
98
|
-
has_rdoc: true
|
99
102
|
homepage: http://github.com/logankoester/errship
|
100
|
-
licenses:
|
103
|
+
licenses:
|
101
104
|
- MIT
|
102
105
|
post_install_message:
|
103
106
|
rdoc_options: []
|
104
|
-
|
107
|
+
|
108
|
+
require_paths:
|
105
109
|
- lib
|
106
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
111
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
|
112
|
-
segments:
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
hash: 2518776612202964264
|
116
|
+
segments:
|
113
117
|
- 0
|
114
|
-
|
115
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
version: "0"
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
120
|
none: false
|
117
|
-
requirements:
|
118
|
-
- -
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
version:
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: "0"
|
121
125
|
requirements: []
|
126
|
+
|
122
127
|
rubyforge_project:
|
123
|
-
rubygems_version: 1.
|
128
|
+
rubygems_version: 1.8.10
|
124
129
|
signing_key:
|
125
130
|
specification_version: 3
|
126
131
|
summary: Errship is a Rails 3.1 engine for rendering error pages inside your layout.
|
127
132
|
test_files: []
|
133
|
+
|