errship 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -1
- data/lib/errship.rb +6 -7
- metadata +65 -65
data/README.rdoc
CHANGED
@@ -22,7 +22,7 @@ the flash message anyway.
|
|
22
22
|
== Installation
|
23
23
|
|
24
24
|
Add this to your Gemfile
|
25
|
-
gem 'errship', '~> 2.1.
|
25
|
+
gem 'errship', '~> 2.1.3'
|
26
26
|
|
27
27
|
Add this to your ApplicationController
|
28
28
|
class ApplicationController < ActionController::Base
|
@@ -91,6 +91,9 @@ If Airbrake is installed, every rescuer will report the exception, except for 40
|
|
91
91
|
|
92
92
|
== Changelog
|
93
93
|
|
94
|
+
2.1.3
|
95
|
+
- Conditionally loading rescuers to check for specific loading ORM
|
96
|
+
|
94
97
|
2.1.2
|
95
98
|
- Remove explicit Rake version dependency for 1.8.7 compatibility
|
96
99
|
|
data/lib/errship.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require 'rescuers/active_record'
|
2
|
-
require 'rescuers/mongoid'
|
3
|
-
require 'rescuers/mongo_mapper'
|
1
|
+
require 'rescuers/active_record' if defined?(::ActiveRecord)
|
2
|
+
require 'rescuers/mongoid' if defined?(::Mongoid)
|
3
|
+
require 'rescuers/mongo_mapper' if defined?(::MongoMapper)
|
4
4
|
|
5
5
|
module Errship
|
6
6
|
class Engine < ::Rails::Engine
|
@@ -12,7 +12,6 @@ module Errship
|
|
12
12
|
module Rescuers
|
13
13
|
def self.included(base)
|
14
14
|
unless Rails.application.config.consider_all_requests_local
|
15
|
-
base.rescue_from Exception, :with => :render_error
|
16
15
|
base.rescue_from ActionController::RoutingError, :with => :render_404_error
|
17
16
|
base.rescue_from ActionController::UnknownController, :with => :render_404_error
|
18
17
|
base.rescue_from ActionController::UnknownAction, :with => :render_404_error
|
@@ -21,12 +20,12 @@ module Errship
|
|
21
20
|
|
22
21
|
def render_error(exception, errship_scope = false)
|
23
22
|
airbrake_class.send(:notify, exception) if airbrake_class
|
24
|
-
render :template => '/errship/standard', :locals => {
|
23
|
+
render :template => '/errship/standard', :locals => {
|
25
24
|
:status_code => 500, :errship_scope => errship_scope }
|
26
25
|
end
|
27
26
|
|
28
27
|
def render_404_error(exception = nil, errship_scope = false)
|
29
|
-
render :template => '/errship/standard', :locals => {
|
28
|
+
render :template => '/errship/standard', :locals => {
|
30
29
|
:status_code => 404, :errship_scope => errship_scope }
|
31
30
|
end
|
32
31
|
|
@@ -34,7 +33,7 @@ module Errship
|
|
34
33
|
# all else fails.
|
35
34
|
def errship_standard(errship_scope = false)
|
36
35
|
flash[:error] ||= 'An unknown error has occurred, or you have reached this page by mistake.'
|
37
|
-
render :template => '/errship/standard', :locals => {
|
36
|
+
render :template => '/errship/standard', :locals => {
|
38
37
|
:status_code => 500, :errship_scope => errship_scope }
|
39
38
|
end
|
40
39
|
|
metadata
CHANGED
@@ -1,87 +1,86 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: errship
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.1.3
|
4
5
|
prerelease:
|
5
|
-
version: 2.1.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Logan Koester
|
9
9
|
- Matthew Wilson
|
10
10
|
- David Czarnecki
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
|
15
|
-
|
16
|
-
dependencies:
|
17
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
date: 2011-10-28 00:00:00.000000000 -04:00
|
15
|
+
default_executable:
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|
19
|
-
|
20
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
requirement: &21940360 !ruby/object:Gem::Requirement
|
21
20
|
none: false
|
22
|
-
requirements:
|
23
|
-
- -
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version:
|
21
|
+
requirements:
|
22
|
+
- - ! '>='
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '0'
|
26
25
|
type: :development
|
27
|
-
version_requirements: *id001
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: shoulda
|
30
26
|
prerelease: false
|
31
|
-
|
27
|
+
version_requirements: *21940360
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: shoulda
|
30
|
+
requirement: &21939540 !ruby/object:Gem::Requirement
|
32
31
|
none: false
|
33
|
-
requirements:
|
34
|
-
- -
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version:
|
32
|
+
requirements:
|
33
|
+
- - ! '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
37
36
|
type: :development
|
38
|
-
version_requirements: *id002
|
39
|
-
- !ruby/object:Gem::Dependency
|
40
|
-
name: bundler
|
41
37
|
prerelease: false
|
42
|
-
|
38
|
+
version_requirements: *21939540
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: bundler
|
41
|
+
requirement: &21938540 !ruby/object:Gem::Requirement
|
43
42
|
none: false
|
44
|
-
requirements:
|
43
|
+
requirements:
|
45
44
|
- - ~>
|
46
|
-
- !ruby/object:Gem::Version
|
45
|
+
- !ruby/object:Gem::Version
|
47
46
|
version: 1.0.0
|
48
47
|
type: :development
|
49
|
-
version_requirements: *id003
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: jeweler
|
52
48
|
prerelease: false
|
53
|
-
|
49
|
+
version_requirements: *21938540
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: jeweler
|
52
|
+
requirement: &21937760 !ruby/object:Gem::Requirement
|
54
53
|
none: false
|
55
|
-
requirements:
|
54
|
+
requirements:
|
56
55
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
56
|
+
- !ruby/object:Gem::Version
|
58
57
|
version: 1.6.0
|
59
58
|
type: :development
|
60
|
-
version_requirements: *id004
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: rcov
|
63
59
|
prerelease: false
|
64
|
-
|
60
|
+
version_requirements: *21937760
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rcov
|
63
|
+
requirement: &21936680 !ruby/object:Gem::Requirement
|
65
64
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version:
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
70
69
|
type: :development
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: *21936680
|
72
|
+
description: Errship is a Rails 3.1 engine for rendering error pages inside your layout.
|
73
|
+
It supports i18n, custom exceptions, and Airbrake (Hoptoad) error tracking.
|
74
|
+
email:
|
74
75
|
- lkoester@agoragames.com
|
75
76
|
- mwilson@agoragames.com
|
76
77
|
- dczarnecki@agoragames.com
|
77
78
|
executables: []
|
78
|
-
|
79
79
|
extensions: []
|
80
|
-
|
81
|
-
extra_rdoc_files:
|
80
|
+
extra_rdoc_files:
|
82
81
|
- LICENSE.txt
|
83
82
|
- README.rdoc
|
84
|
-
files:
|
83
|
+
files:
|
85
84
|
- app/assets/javascripts/application.js
|
86
85
|
- app/assets/stylesheets/errship.css
|
87
86
|
- app/views/errship/standard.html.erb
|
@@ -93,32 +92,33 @@ files:
|
|
93
92
|
- lib/rescuers/mongoid.rb
|
94
93
|
- LICENSE.txt
|
95
94
|
- README.rdoc
|
95
|
+
has_rdoc: true
|
96
96
|
homepage: https://github.com/agoragames/errship
|
97
|
-
licenses:
|
97
|
+
licenses:
|
98
98
|
- MIT
|
99
99
|
post_install_message:
|
100
100
|
rdoc_options: []
|
101
|
-
|
102
|
-
require_paths:
|
101
|
+
require_paths:
|
103
102
|
- lib
|
104
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
104
|
none: false
|
106
|
-
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version:
|
110
|
-
|
105
|
+
requirements:
|
106
|
+
- - ! '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
segments:
|
110
|
+
- 0
|
111
|
+
hash: -3781624677601233719
|
112
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
113
|
none: false
|
112
|
-
requirements:
|
113
|
-
- -
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version:
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
116
118
|
requirements: []
|
117
|
-
|
118
119
|
rubyforge_project:
|
119
|
-
rubygems_version: 1.
|
120
|
+
rubygems_version: 1.6.2
|
120
121
|
signing_key:
|
121
122
|
specification_version: 3
|
122
123
|
summary: Errship is a Rails 3.1 engine for rendering error pages inside your layout.
|
123
124
|
test_files: []
|
124
|
-
|