tuersteher 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/tuersteher.rb +3 -2
  2. data/tuersteher.gemspec +2 -2
  3. metadata +4 -4
data/lib/tuersteher.rb CHANGED
@@ -225,8 +225,9 @@ module Tuersteher
225
225
  # im dev-mode rules bei jeden request auf Änderungen prüfen
226
226
  AccessRulesStorage.instance.read_rules if Rails.env=='development'
227
227
 
228
- unless path_access?(request.request_uri, request.method)
229
- msg = "Tuersteher#check_access: access denied for #{request.request_uri} :#{request.method}"
228
+ req_method = request.method.downcase.to_sym
229
+ unless path_access?(request.request_uri, req_method)
230
+ msg = "Tuersteher#check_access: access denied for #{request.request_uri} :#{req_method}"
230
231
  Tuersteher::TLogger.logger.warn msg
231
232
  logger.warn msg # log message also for Rails-Default logger
232
233
  access_denied # Methode aus dem authenticated_system, welche ein redirect zum login auslöst
data/tuersteher.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tuersteher}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bernd Ledig"]
12
- s.date = %q{2010-08-09}
12
+ s.date = %q{2010-08-15}
13
13
  s.description = %q{Security-Layer for Rails-Application acts like a firewall.}
14
14
  s.email = %q{bernd@ledig.info}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tuersteher
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bernd Ledig
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-09 00:00:00 +02:00
18
+ date: 2010-08-15 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21