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 ADDED
@@ -0,0 +1,5 @@
1
+ pkg
2
+ .idea
3
+ tuersteher*.gem
4
+ nbproject
5
+ Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in multi-solr.gemspec
4
+ gemspec
data/Rakefile CHANGED
@@ -1,20 +1 @@
1
- # Rakefile
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]=='3.' ? :fullpath : :request_uri
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
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
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 = %q{tuersteher}
8
- s.version = "0.6.5"
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.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Bernd Ledig"]
12
- s.date = %q{2011-09-08}
13
- s.description = %q{Security-Layer for Rails-Application acts like a firewall.}
14
- s.email = %q{bernd@ledig.info}
15
- s.extra_rdoc_files = [
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
- if s.respond_to? :specification_version then
43
- s.specification_version = 3
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
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
- else
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
- hash: 11
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
- description: Security-Layer for Rails-Application acts like a firewall.
23
- email: bernd@ledig.info
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
- - Manifest
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
- hash: 3
63
- segments:
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
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
75
59
  requirements: []
76
-
77
- rubyforge_project:
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: Security-Layer for Rails-Application
64
+ summary: summary of the gem
82
65
  test_files: []
83
-
data/Manifest DELETED
@@ -1,9 +0,0 @@
1
- lib/tuersteher.rb
2
- Rakefile
3
- init.rb
4
- Manifest
5
- tuersteher.gemspec
6
- README.rdoc
7
- samples/access_rules.rb
8
- samples/application_controller.rb
9
- license.txt
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.6.6