lockdown 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,22 @@
1
- == DESCRIPTION:
1
+ ## Description
2
2
 
3
- Lockdown is an authorization system for RubyOnRails (ver >= 3.0).
3
+ Lockdown is an authorization system for RubyOnRails. It is designed to handle a simple public vs private configuration to very fine grained access controls.
4
4
 
5
+ If you are starting a site and just have public and protected (user required) areas, use Lockdown. Lockdown includes built in user groups of public and protected. From there you can easily add/extend permissions and create new user groups as your site needs grow.
5
6
 
6
- Version 3.0 of Lockdown will be a Rails 3 compatible rewrite. I'm going to take some of the discoveries from Monty (my Rack based authorization project) and roll them into Lockdown.
7
-
8
- The model level interaction will be redone completely. It sucks right now.
7
+ If you already have a complex permission scheme, use Lockdown to simplify the management of access rules.
9
8
 
10
9
  Follow me on Twitter (@stonean) to keep up to date.
11
10
 
12
- == INSTALL:
11
+ ## DOCS:
13
12
 
14
- sudo gem install lockdown
13
+ [http://docs.stonean.com/page/lockdown](http://docs.stonean.com/page/lockdown)
15
14
 
16
- == LICENSE:
15
+ ## LICENSE:
17
16
 
18
17
  (The MIT License)
19
18
 
20
- Copyright (c) 2009 Andrew Stone
19
+ Copyright (c) 2010 Andrew Stone
21
20
 
22
21
  Permission is hereby granted, free of charge, to any person obtaining
23
22
  a copy of this software and associated documentation files (the
@@ -28,14 +28,14 @@ module Lockdown
28
28
  protected
29
29
 
30
30
  def store_location
31
- if (request.method == :get) && (session[:thispage] != sent_from_uri)
31
+ if request.get? && (session[:thispage] != sent_from_uri)
32
32
  session[:prevpage] = session[:thispage] || ''
33
33
  session[:thispage] = sent_from_uri
34
34
  end
35
35
  end
36
36
 
37
37
  def sent_from_uri
38
- request.request_uri
38
+ request.fullpath
39
39
  end
40
40
 
41
41
  def authorized?(url, method = nil)
data/lib/lockdown.rb CHANGED
@@ -24,7 +24,7 @@ module Lockdown
24
24
 
25
25
  # @return the version string for the library.
26
26
  def version
27
- '2.0.3'
27
+ '2.0.4'
28
28
  end
29
29
 
30
30
  def rails_mixin
data/lockdown.gemspec CHANGED
@@ -5,19 +5,19 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lockdown}
8
- s.version = "2.0.3"
8
+ s.version = "2.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Stone"]
12
- s.date = %q{2010-09-22}
12
+ s.date = %q{2010-10-10}
13
13
  s.description = %q{Restrict access to your controller actions. }
14
14
  s.email = %q{andy@stonean.com}
15
15
  s.extra_rdoc_files = [
16
- "README.txt"
16
+ "README.md"
17
17
  ]
18
18
  s.files = [
19
19
  ".gitignore",
20
- "README.txt",
20
+ "README.md",
21
21
  "Rakefile",
22
22
  "lib/lockdown.rb",
23
23
  "lib/lockdown/access.rb",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 0
8
- - 3
9
- version: 2.0.3
8
+ - 4
9
+ version: 2.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andrew Stone
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-22 00:00:00 -04:00
17
+ date: 2010-10-10 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -25,10 +25,10 @@ executables: []
25
25
  extensions: []
26
26
 
27
27
  extra_rdoc_files:
28
- - README.txt
28
+ - README.md
29
29
  files:
30
30
  - .gitignore
31
- - README.txt
31
+ - README.md
32
32
  - Rakefile
33
33
  - lib/lockdown.rb
34
34
  - lib/lockdown/access.rb