tuersteher 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  pkg
2
2
  .idea
3
+ tuersteher*.gem
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
data/lib/tuersteher.rb CHANGED
@@ -60,6 +60,8 @@ module Tuersteher
60
60
  rules_file = File.new config_file
61
61
  if @last_mtime.nil? || rules_file.mtime > @last_mtime
62
62
  @last_mtime = rules_file.mtime
63
+ @path_rules = []
64
+ @model_rules = []
63
65
  content = rules_file.read
64
66
  eval content
65
67
  Tuersteher::TLogger.logger.info "Tuersteher::AccessRulesStorage: #{@path_rules.size} path-rules and #{@model_rules.size} model-rules"
@@ -376,14 +378,4 @@ module Tuersteher
376
378
  end
377
379
 
378
380
 
379
- # ActiveRecord erweitern mit
380
- # Sicherheits-Check
381
- #
382
- # class ActiveRecord::Base
383
- # before_create {|model| SecurityModule::SecurityService.check_model_access model, :create }
384
- # before_update {|model| SecurityModule::SecurityService.check_model_access model, :update }
385
- # before_destroy{|model| SecurityModule::SecurityService.check_model_access model, :destroy }
386
- # end
387
-
388
-
389
381
  end
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.0.6"
8
+ s.version = "0.0.7"
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-02-20}
12
+ s.date = %q{2010-02-21}
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tuersteher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernd Ledig
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-20 00:00:00 +01:00
12
+ date: 2010-02-21 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15