simple_auth 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +7 -0
- data/lib/simple_auth/active_record.rb +5 -0
- data/lib/simple_auth/version.rb +1 -1
- data/lib/simple_auth.rb +0 -3
- data/simple_auth.gemspec +2 -2
- metadata +3 -3
data/README.markdown
CHANGED
@@ -128,6 +128,13 @@ If you're having problems to use any helper, include the module <tt>SimpleAuth::
|
|
128
128
|
include SimpleAuth::Helper
|
129
129
|
end
|
130
130
|
|
131
|
+
Sinatra support
|
132
|
+
---------------
|
133
|
+
|
134
|
+
Sinatra is not fully supported. For now, you can only use the ActiveRecord part:
|
135
|
+
|
136
|
+
require "simple_auth/active_record"
|
137
|
+
|
131
138
|
Troubleshooting
|
132
139
|
---------------
|
133
140
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "simple_auth/config" unless defined?(SimpleAuth::Config)
|
2
|
+
|
1
3
|
module SimpleAuth
|
2
4
|
module ActiveRecord
|
3
5
|
module InstanceMethods
|
@@ -91,3 +93,6 @@ module SimpleAuth
|
|
91
93
|
end
|
92
94
|
end
|
93
95
|
end
|
96
|
+
|
97
|
+
::ActiveRecord::Base.send :include, SimpleAuth::ActiveRecord::InstanceMethods
|
98
|
+
::ActiveRecord::Base.send :extend, SimpleAuth::ActiveRecord::ClassMethods
|
data/lib/simple_auth/version.rb
CHANGED
data/lib/simple_auth.rb
CHANGED
@@ -10,9 +10,6 @@ module SimpleAuth
|
|
10
10
|
class NotAuthorized < Exception; end
|
11
11
|
end
|
12
12
|
|
13
|
-
::ActiveRecord::Base.send :include, SimpleAuth::ActiveRecord::InstanceMethods
|
14
|
-
::ActiveRecord::Base.send :extend, SimpleAuth::ActiveRecord::ClassMethods
|
15
|
-
|
16
13
|
::ActionController::Base.send :include, SimpleAuth::ActionController::Implementation
|
17
14
|
::ActionController::Base.send :include, SimpleAuth::ActionController::InstanceMethods
|
18
15
|
::ActionController::Base.send :extend, SimpleAuth::ActionController::ClassMethods
|
data/simple_auth.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{simple_auth}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nando Vieira"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-09}
|
13
13
|
s.description = %q{When Authlogic & Devise are just too much.
|
14
14
|
}
|
15
15
|
s.email = %q{fnando.vieira@gmail.com}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 8
|
9
|
+
version: 0.1.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Nando Vieira
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-09 00:00:00 -03:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|