tuersteher 0.5.1 → 0.5.2

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 +2 -2
  3. data/tuersteher.gemspec +5 -5
  4. metadata +7 -7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
data/lib/tuersteher.rb CHANGED
@@ -593,10 +593,10 @@ module Tuersteher
593
593
  def grant_extension? user, model
594
594
  return true if @check_extensions.nil?
595
595
  return false if model.nil? # check_extensions need a model
596
- return false if model.instance_of?(Class) # no Extension-Call if model is a Class-Instance
597
596
  @check_extensions.each do |key, value|
598
597
  unless model.respond_to?(key)
599
- Tuersteher::TLogger.logger.warn("#{to_s}.fired? => false why model-onject have not check-extension method '#{key}'!")
598
+ m_msg = model.instance_of?(Class) ? "Class '#{model.name}'" : "Object '#{model.class}'"
599
+ Tuersteher::TLogger.logger.warn("#{to_s}.fired? => false why #{m_msg} have not check-extension method '#{key}'!")
600
600
  return false
601
601
  end
602
602
  if value
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.5.1"
8
+ s.version = "0.5.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-10-29}
12
+ s.date = %q{2010-11-07}
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 = [
@@ -41,12 +41,12 @@ Gem::Specification.new do |s|
41
41
  s.rubygems_version = %q{1.3.7}
42
42
  s.summary = %q{Security-Layer for Rails-Application}
43
43
  s.test_files = [
44
- "spec/acces_rules_storage_spec.rb",
44
+ "spec/spec_helper.rb",
45
45
  "spec/model_extensions_spec.rb",
46
+ "spec/access_rules_spec.rb",
46
47
  "spec/path_access_rule_spec.rb",
47
48
  "spec/model_access_rule_spec.rb",
48
- "spec/access_rules_spec.rb",
49
- "spec/spec_helper.rb"
49
+ "spec/acces_rules_storage_spec.rb"
50
50
  ]
51
51
 
52
52
  if s.respond_to? :specification_version then
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: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.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-10-29 00:00:00 +02:00
18
+ date: 2010-11-07 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -81,9 +81,9 @@ signing_key:
81
81
  specification_version: 3
82
82
  summary: Security-Layer for Rails-Application
83
83
  test_files:
84
- - spec/acces_rules_storage_spec.rb
84
+ - spec/spec_helper.rb
85
85
  - spec/model_extensions_spec.rb
86
+ - spec/access_rules_spec.rb
86
87
  - spec/path_access_rule_spec.rb
87
88
  - spec/model_access_rule_spec.rb
88
- - spec/access_rules_spec.rb
89
- - spec/spec_helper.rb
89
+ - spec/acces_rules_storage_spec.rb