http-error 1.1 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +15 -5
- data/http-error.gemspec +1 -1
- data/lib/cody_robbins/http_error/railtie.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -9,6 +9,8 @@ This Rails plugin makes an `http_error` method available in `ApplicationControll
|
|
9
9
|
|
10
10
|
Returning `false` allows you to use `http_error` in `before_filter`’s to halt the filter chain.
|
11
11
|
|
12
|
+
Full documentation is at [RubyDoc.info](http://rubydoc.info/gems/http-error).
|
13
|
+
|
12
14
|
Example
|
13
15
|
--------
|
14
16
|
|
@@ -29,15 +31,23 @@ The following will return a 404 HTTP code, render `public/404.html`, and halt th
|
|
29
31
|
end
|
30
32
|
end
|
31
33
|
|
32
|
-
|
33
|
-
|
34
|
+
Colophon
|
35
|
+
--------
|
36
|
+
|
37
|
+
### Tested with
|
34
38
|
|
35
39
|
* Rails 3.0.5 — 20 May 2011
|
36
40
|
|
37
|
-
|
38
|
-
|
41
|
+
### Contributing
|
42
|
+
|
43
|
+
* [Source](https://github.com/codyrobbins/http-error)
|
44
|
+
* [Bug reports](https://github.com/codyrobbins/http-error/issues)
|
45
|
+
|
46
|
+
To send patches, please fork on GitHub and submit a pull request.
|
47
|
+
|
48
|
+
### Credits
|
39
49
|
|
40
|
-
© 2011 [Cody Robbins](http://codyrobbins.com/)
|
50
|
+
© 2011 [Cody Robbins](http://codyrobbins.com/). See LICENSE for details.
|
41
51
|
|
42
52
|
* [Homepage](http://codyrobbins.com/software/http-error)
|
43
53
|
* [Follow me on Twitter](http://twitter.com/codyrobbins)
|
data/http-error.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'http-error'
|
3
|
-
s.version = '1.
|
3
|
+
s.version = '1.2'
|
4
4
|
s.summary = 'Return HTTP error codes while rendering the corresponding error page in Rails.'
|
5
5
|
s.homepage = 'http://codyrobbins.com/software/http-error'
|
6
6
|
s.author = 'Cody Robbins'
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: http-error
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: "1.
|
5
|
+
version: "1.2"
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Cody Robbins
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-24 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|