rails_exception_handler 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY +3 -0
- data/README.markdown +7 -1
- data/VERSION +1 -1
- data/app/models/error_message.rb +4 -2
- data/lib/rails_exception_handler/parser.rb +2 -2
- data/rails_exception_handler.gemspec +6 -6
- metadata +3 -5
data/HISTORY
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
|
3
3
|
|
4
|
+
v1.2.1 - September 19th 2011
|
5
|
+
- Fixed a couple of issues that made the exception handler break if active record was not loaded
|
6
|
+
|
4
7
|
v1.2.0 - August 21st 2011
|
5
8
|
- Bug fixed where exception_database had to be configured even if active record storage was not chosen
|
6
9
|
- If public/500.html and/or public/400.html exists, these will be used as responses
|
data/README.markdown
CHANGED
@@ -12,7 +12,7 @@ http://travis-ci.org/#!/Sharagoz/rails_exception_handler
|
|
12
12
|
Add this line to your Gemfile:
|
13
13
|
|
14
14
|
```
|
15
|
-
gem 'rails_exception_handler', '~> 1.
|
15
|
+
gem 'rails_exception_handler', '~> 1.2'
|
16
16
|
```
|
17
17
|
|
18
18
|
Create an initializer in **config/initializers** called **rails_exception_handler.rb** and uncomment the options where you want something other than the default:
|
@@ -230,6 +230,12 @@ If you use a Rails app at the other end you should simply be able to do _ErrorMe
|
|
230
230
|
|
231
231
|
David Rice
|
232
232
|
|
233
|
+
Would you like to contribute? Here are some things on the todo list:
|
234
|
+
|
235
|
+
* A mongoid storage strategy for those that wish to use MongoDB
|
236
|
+
* An email storage strategy for those that wish to be notified of the exceptions through email
|
237
|
+
* A front end module
|
238
|
+
|
233
239
|
## Licence
|
234
240
|
|
235
241
|
Copyright © 2011 Bjørn Trondsen, released under the MIT license
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.1
|
data/app/models/error_message.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
if(defined?(ActiveRecord))
|
2
|
+
class ErrorMessage < ActiveRecord::Base
|
3
|
+
establish_connection(:exception_database) if RailsExceptionHandler.configuration.active_record?
|
4
|
+
end
|
3
5
|
end
|
@@ -36,8 +36,8 @@ class RailsExceptionHandler::Parser
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def routing_error?
|
39
|
-
routing_errors = [ActionController::RoutingError, AbstractController::ActionNotFound, ActiveRecord::RecordNotFound]
|
40
|
-
routing_errors.include?(@exception.class)
|
39
|
+
routing_errors = ['ActionController::RoutingError', 'AbstractController::ActionNotFound', 'ActiveRecord::RecordNotFound']
|
40
|
+
routing_errors.include?(@exception.class.to_s)
|
41
41
|
end
|
42
42
|
|
43
43
|
private
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rails_exception_handler}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date = %q{2011-
|
11
|
+
s.authors = [%q{Sharagoz}]
|
12
|
+
s.date = %q{2011-09-19}
|
13
13
|
s.description = %q{}
|
14
14
|
s.email = %q{contact@sharagoz.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -71,9 +71,9 @@ Gem::Specification.new do |s|
|
|
71
71
|
"spec/unit/parser_spec.rb"
|
72
72
|
]
|
73
73
|
s.homepage = %q{http://github.com/Sharagoz/rails_exception_handler}
|
74
|
-
s.licenses = [
|
75
|
-
s.require_paths = [
|
76
|
-
s.rubygems_version = %q{1.
|
74
|
+
s.licenses = [%q{MIT}]
|
75
|
+
s.require_paths = [%q{lib}]
|
76
|
+
s.rubygems_version = %q{1.8.8}
|
77
77
|
s.summary = %q{Exception Handling for Rails 3}
|
78
78
|
|
79
79
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rails_exception_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Sharagoz
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
14
|
-
default_executable:
|
13
|
+
date: 2011-09-19 00:00:00 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: rails
|
@@ -130,7 +129,6 @@ files:
|
|
130
129
|
- spec/unit/configuration_spec.rb
|
131
130
|
- spec/unit/handler_spec.rb
|
132
131
|
- spec/unit/parser_spec.rb
|
133
|
-
has_rdoc: true
|
134
132
|
homepage: http://github.com/Sharagoz/rails_exception_handler
|
135
133
|
licenses:
|
136
134
|
- MIT
|
@@ -154,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
152
|
requirements: []
|
155
153
|
|
156
154
|
rubyforge_project:
|
157
|
-
rubygems_version: 1.
|
155
|
+
rubygems_version: 1.8.8
|
158
156
|
signing_key:
|
159
157
|
specification_version: 3
|
160
158
|
summary: Exception Handling for Rails 3
|