maiha-hosts_access 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hosts_access.rb +2 -1
- metadata +2 -2
data/lib/hosts_access.rb
CHANGED
@@ -7,7 +7,7 @@ unless Module.respond_to?(:mattr_accessor)
|
|
7
7
|
end
|
8
8
|
|
9
9
|
unless [].respond_to?(:extract_options!)
|
10
|
-
require File.dirname(__FILE__) + '/../core_ext/array/extract_options'
|
10
|
+
require File.dirname(__FILE__) + '/../core_ext/array/extract_options'
|
11
11
|
class Array #:nodoc:
|
12
12
|
include ActiveSupport::CoreExtensions::Array::ExtractOptions
|
13
13
|
end
|
@@ -50,6 +50,7 @@ module HostsAccess
|
|
50
50
|
|
51
51
|
def hosts_access_denied(reason)
|
52
52
|
logger.info "[HostsAccess] NG: #{reason}"
|
53
|
+
render :text=>"Access denied", :status => :unauthorized
|
53
54
|
return false
|
54
55
|
end
|
55
56
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maiha-hosts_access
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.3"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- maiha
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-08 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|