base_auth 0.2.1 → 0.2.2
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.
- data/README.rdoc +8 -3
- data/VERSION +1 -1
- data/base_auth.gemspec +2 -2
- data/lib/base_auth.rb +3 -6
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
= BaseAuth
|
2
2
|
|
3
|
-
== 0.2
|
3
|
+
== 0.2.2
|
4
|
+
|
5
|
+
Now available as gem and Ruby 1.9 compatible.
|
4
6
|
|
5
7
|
=== Best Authorization System Ever
|
6
8
|
|
7
9
|
== Installation
|
8
10
|
|
9
|
-
|
10
|
-
|
11
|
+
gem install base_auth
|
12
|
+
|
13
|
+
If you use bundler, just add that to your Gemfile:
|
14
|
+
|
15
|
+
gem "base_auth"
|
11
16
|
|
12
17
|
== Authorization by Controller
|
13
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/base_auth.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{base_auth}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Piotr Sarnacki"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-06-08}
|
13
13
|
s.description = %q{A simple and elegant solution to authorization suitable for most small and medium-sized projects.}
|
14
14
|
s.email = %q{drogus@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/base_auth.rb
CHANGED
@@ -28,12 +28,9 @@ module Authorization
|
|
28
28
|
exec = conditions[:exec]
|
29
29
|
if exec
|
30
30
|
case exec.class.name
|
31
|
-
when 'Symbol'
|
32
|
-
|
33
|
-
when '
|
34
|
-
eval( exec )
|
35
|
-
when 'Proc':
|
36
|
-
exec.call
|
31
|
+
when 'Symbol' then send(exec)
|
32
|
+
when 'String' then eval(exec)
|
33
|
+
when 'Proc' then exec.call
|
37
34
|
else
|
38
35
|
raise ArgumentError( ":exec doesn't accept values of class #{exec.class.name}" )
|
39
36
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Piotr Sarnacki
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-06-08 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|