http-error 1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- Tested with
33
- -----------
34
+ Colophon
35
+ --------
36
+
37
+ ### Tested with
34
38
 
35
39
  * Rails 3.0.5 — 20 May 2011
36
40
 
37
- Credits
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)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'http-error'
3
- s.version = '1.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'
@@ -5,7 +5,7 @@ module CodyRobbins
5
5
  class Railtie < Rails::Railtie
6
6
  initializer('cody_robbins.http_error') do
7
7
  ActiveSupport.on_load(:action_controller) do
8
- ApplicationController.send(:include, InstanceMethods)
8
+ include(InstanceMethods)
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: http-error
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "1.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-23 00:00:00 -04:00
13
+ date: 2011-05-24 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16