tuersteher 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -20
- data/lib/tuersteher.rb +2 -2
- data/spec/acces_rules_storage_spec.rb +1 -1
- data/tuersteher.gemspec +23 -43
- metadata +27 -45
- data/Manifest +0 -9
- data/VERSION +0 -1
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
CHANGED
@@ -1,20 +1 @@
|
|
1
|
-
|
2
|
-
require 'rubygems'
|
3
|
-
require 'rake'
|
4
|
-
|
5
|
-
begin
|
6
|
-
require 'jeweler'
|
7
|
-
Jeweler::Tasks.new do |gemspec|
|
8
|
-
gemspec.name = "tuersteher"
|
9
|
-
gemspec.summary = "Security-Layer for Rails-Application"
|
10
|
-
gemspec.description = "Security-Layer for Rails-Application acts like a firewall."
|
11
|
-
gemspec.email = "bernd@ledig.info"
|
12
|
-
gemspec.homepage = "http://github.com/bledig/tuersteher"
|
13
|
-
gemspec.authors = ["Bernd Ledig"]
|
14
|
-
end
|
15
|
-
rescue LoadError
|
16
|
-
puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gems.github.com"
|
17
|
-
end
|
18
|
-
|
19
|
-
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|
20
|
-
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/tuersteher.rb
CHANGED
@@ -320,8 +320,8 @@ module Tuersteher
|
|
320
320
|
ar_storage.read_rules
|
321
321
|
end
|
322
322
|
|
323
|
-
# Rails3 hat andere url-path-methode
|
324
|
-
@@url_path_method ||= Rails.version[0..1]=='
|
323
|
+
# Rails3/4 hat andere url-path-methode als Rails2
|
324
|
+
@@url_path_method ||= Rails.version[0..1]=='2.' ? :request_uri : :fullpath
|
325
325
|
|
326
326
|
# bind current_user on the current thread
|
327
327
|
Thread.current[:user] = current_user
|
@@ -53,8 +53,8 @@ end
|
|
53
53
|
path(:all).grant.role(:ADMIN)
|
54
54
|
path('/special').grant.role(:SPECIAL)
|
55
55
|
EOR
|
56
|
+
AccessRulesStorage.instance.path_prefix = '/test'
|
56
57
|
AccessRulesStorage.instance.eval_rules rule_defs
|
57
|
-
AccessRulesStorage.instance.extend_path_rules_with_prefix('/test')
|
58
58
|
@path_rules = AccessRulesStorage.instance.path_rules
|
59
59
|
end
|
60
60
|
|
data/tuersteher.gemspec
CHANGED
@@ -1,51 +1,31 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# encoding: utf-8
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
5
3
|
|
6
4
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
5
|
+
s.name = 'tuersteher'
|
6
|
+
s.version = '0.6.7'
|
7
|
+
s.authors = ["Bernd Ledig"]
|
8
|
+
s.email = ["bernd@ledig.info"]
|
9
|
+
s.homepage = "http://github.com/bledig/tuersteher"
|
10
|
+
s.summary = "summary of the gem"
|
11
|
+
s.description = <<-EOT
|
12
|
+
Security-Layer for Rails-Application acts like a firewall.
|
13
|
+
EOT
|
9
14
|
|
10
|
-
s.
|
11
|
-
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
"README.rdoc"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
"Manifest",
|
20
|
-
"README.rdoc",
|
21
|
-
"Rakefile",
|
22
|
-
"VERSION",
|
23
|
-
"init.rb",
|
24
|
-
"lib/tuersteher.rb",
|
25
|
-
"license.txt",
|
26
|
-
"samples/access_rules.rb",
|
27
|
-
"samples/application_controller.rb",
|
28
|
-
"spec/acces_rules_storage_spec.rb",
|
29
|
-
"spec/access_rules_spec.rb",
|
30
|
-
"spec/model_access_rule_spec.rb",
|
31
|
-
"spec/model_extensions_spec.rb",
|
32
|
-
"spec/path_access_rule_spec.rb",
|
33
|
-
"spec/spec.opts",
|
34
|
-
"spec/spec_helper.rb",
|
35
|
-
"tuersteher.gemspec"
|
36
|
-
]
|
37
|
-
s.homepage = %q{http://github.com/bledig/tuersteher}
|
15
|
+
s.rubyforge_project = "tuersteher"
|
16
|
+
|
17
|
+
s.extra_rdoc_files = ["README.rdoc"]
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
38
21
|
s.require_paths = ["lib"]
|
39
|
-
s.rubygems_version = %q{1.6.2}
|
40
|
-
s.summary = %q{Security-Layer for Rails-Application}
|
41
22
|
|
42
|
-
|
43
|
-
|
23
|
+
# specify any dependencies here; for example:
|
24
|
+
#s.add_runtime_dependency "rsolr", '>1.0', '<2.0'
|
25
|
+
#s.add_runtime_dependency "activesupport", '>3.0', '<4.0'
|
26
|
+
#s.add_runtime_dependency "i18n"
|
44
27
|
|
45
|
-
|
46
|
-
|
47
|
-
end
|
48
|
-
else
|
49
|
-
end
|
28
|
+
#s.add_development_dependency "rake"
|
29
|
+
#s.add_development_dependency "rspec", '>2.7', '<3.0'
|
50
30
|
end
|
51
31
|
|
metadata
CHANGED
@@ -1,37 +1,30 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tuersteher
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.7
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 6
|
9
|
-
- 6
|
10
|
-
version: 0.6.6
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Bernd Ledig
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2011-10-29 00:00:00 +02:00
|
19
|
-
default_executable:
|
12
|
+
date: 2014-01-04 00:00:00.000000000 Z
|
20
13
|
dependencies: []
|
14
|
+
description: ! ' Security-Layer for Rails-Application acts like a firewall.
|
21
15
|
|
22
|
-
|
23
|
-
email:
|
16
|
+
'
|
17
|
+
email:
|
18
|
+
- bernd@ledig.info
|
24
19
|
executables: []
|
25
|
-
|
26
20
|
extensions: []
|
27
|
-
|
28
|
-
extra_rdoc_files:
|
21
|
+
extra_rdoc_files:
|
29
22
|
- README.rdoc
|
30
|
-
files:
|
31
|
-
-
|
23
|
+
files:
|
24
|
+
- .gitignore
|
25
|
+
- Gemfile
|
32
26
|
- README.rdoc
|
33
27
|
- Rakefile
|
34
|
-
- VERSION
|
35
28
|
- init.rb
|
36
29
|
- lib/tuersteher.rb
|
37
30
|
- license.txt
|
@@ -45,39 +38,28 @@ files:
|
|
45
38
|
- spec/spec.opts
|
46
39
|
- spec/spec_helper.rb
|
47
40
|
- tuersteher.gemspec
|
48
|
-
has_rdoc: true
|
49
41
|
homepage: http://github.com/bledig/tuersteher
|
50
42
|
licenses: []
|
51
|
-
|
52
43
|
post_install_message:
|
53
44
|
rdoc_options: []
|
54
|
-
|
55
|
-
require_paths:
|
45
|
+
require_paths:
|
56
46
|
- lib
|
57
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
48
|
none: false
|
59
|
-
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
|
63
|
-
|
64
|
-
- 0
|
65
|
-
version: "0"
|
66
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
54
|
none: false
|
68
|
-
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
segments:
|
73
|
-
- 0
|
74
|
-
version: "0"
|
55
|
+
requirements:
|
56
|
+
- - ! '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
75
59
|
requirements: []
|
76
|
-
|
77
|
-
|
78
|
-
rubygems_version: 1.6.2
|
60
|
+
rubyforge_project: tuersteher
|
61
|
+
rubygems_version: 1.8.24
|
79
62
|
signing_key:
|
80
63
|
specification_version: 3
|
81
|
-
summary:
|
64
|
+
summary: summary of the gem
|
82
65
|
test_files: []
|
83
|
-
|
data/Manifest
DELETED
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.6.6
|