tuersteher 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/tuersteher.rb +3 -3
  3. data/tuersteher.gemspec +2 -2
  4. metadata +9 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/lib/tuersteher.rb CHANGED
@@ -35,7 +35,7 @@ module Tuersteher
35
35
 
36
36
  attr_accessor :rules_config_file # to set own access_rules-path
37
37
 
38
- DEFAULT_RULES_CONFIG_FILE = File.join(Rails.root, 'config', 'access_rules.rb')
38
+ DEFAULT_RULES_CONFIG_FILE = 'access_rules.rb' # in config-dir
39
39
 
40
40
  def initialize
41
41
  @path_rules = []
@@ -56,8 +56,8 @@ module Tuersteher
56
56
  # Laden der AccesRules aus den Dateien
57
57
  # config/access_rules.rb
58
58
  def read_rules
59
- config_file = @rules_config_file || DEFAULT_RULES_CONFIG_FILE
60
- rules_file = File.new config_file
59
+ @rules_config_file ||= File.join(Rails.root, 'config', DEFAULT_RULES_CONFIG_FILE)
60
+ rules_file = File.new @rules_config_file
61
61
  @was_read = false
62
62
  if @last_mtime.nil? || rules_file.mtime > @last_mtime
63
63
  @last_mtime = rules_file.mtime
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.0"
8
+ s.version = "0.1.1"
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-05-29}
12
+ s.date = %q{2010-08-09}
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,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tuersteher
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 25
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 0
9
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Bernd Ledig
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-29 00:00:00 +02:00
18
+ date: 2010-08-09 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
@@ -48,23 +49,27 @@ rdoc_options:
48
49
  require_paths:
49
50
  - lib
50
51
  required_ruby_version: !ruby/object:Gem::Requirement
52
+ none: false
51
53
  requirements:
52
54
  - - ">="
53
55
  - !ruby/object:Gem::Version
56
+ hash: 3
54
57
  segments:
55
58
  - 0
56
59
  version: "0"
57
60
  required_rubygems_version: !ruby/object:Gem::Requirement
61
+ none: false
58
62
  requirements:
59
63
  - - ">="
60
64
  - !ruby/object:Gem::Version
65
+ hash: 3
61
66
  segments:
62
67
  - 0
63
68
  version: "0"
64
69
  requirements: []
65
70
 
66
71
  rubyforge_project:
67
- rubygems_version: 1.3.6
72
+ rubygems_version: 1.3.7
68
73
  signing_key:
69
74
  specification_version: 3
70
75
  summary: Security-Layer for Rails-Application