vidibus-routing_error 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -2,30 +2,32 @@
2
2
 
3
3
  This gem is part of the open source SOA framework Vidibus: http://www.vidibus.org
4
4
 
5
- Catches ActionController::RoutingError, because this does not work with Rails 3 anymore.
6
- It basically catches the exception on rack-level and re-raises it on application-level.
5
+ Catches ActionController::RoutingError which does not work with Rails 3 out of the box. It basically catches the exception on Rack-level and re-raises it on application-level.
7
6
 
8
7
 
9
8
  == Installation
10
9
 
11
10
  Add the dependency to the Gemfile of your application:
12
11
 
13
- gem "vidibus-inheritance"
12
+ gem "vidibus-routing_error"
14
13
 
15
14
  Then call bundle install on your console.
16
15
 
17
16
 
18
17
  == Usage
19
18
 
20
- class ApplicationController < ActionController::Base
21
- rescue_from ActionController::RoutingError, :with => :rescue_404
19
+ With this gem installed, you are able to handle errors like in past versions of Rails:
22
20
 
23
- def rescue_404
24
- # do something
25
- # IMPORTANT:
26
- # If you modify this method, you have to restart the server.
21
+ class ApplicationController < ActionController::Base
22
+ rescue_from ActionController::RoutingError, :with => :rescue_404
23
+
24
+ def rescue_404
25
+ # do something
26
+ # IMPORTANT: If you modify this method, you have to restart the server.
27
+ end
27
28
  end
28
- end
29
+
30
+ Keep in mind that you have to restart your server when changing the rescue-method!
29
31
 
30
32
 
31
33
  == Copyright
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vidibus-routing_error}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andre Pankratz"]
12
- s.date = %q{2010-08-13}
12
+ s.date = %q{2010-08-17}
13
13
  s.description = %q{Catches ActionController::RoutingError and sends it to a custom method.}
14
14
  s.email = %q{andre@vidibus.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-routing_error
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Pankratz
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-13 00:00:00 +02:00
18
+ date: 2010-08-17 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency