authgasm 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +8 -0
- data/Manifest +4 -2
- data/README.rdoc +25 -3
- data/authgasm.gemspec +9 -6
- data/init.rb +0 -1
- data/lib/authgasm.rb +4 -1
- data/lib/authgasm/acts_as_authentic.rb +32 -6
- data/lib/authgasm/controller_adapters/abstract_adapter.rb +25 -0
- data/lib/authgasm/controller_adapters/rails_adapter.rb +39 -0
- data/lib/authgasm/session/active_record_trickery.rb +1 -1
- data/lib/authgasm/session/base.rb +136 -103
- data/lib/authgasm/session/callbacks.rb +24 -16
- data/lib/authgasm/session/config.rb +1 -9
- data/lib/authgasm/session/errors.rb +6 -0
- data/lib/authgasm/version.rb +2 -2
- data/test_app/app/controllers/user_sessions_controller.rb +1 -1
- data/test_app/db/development.sqlite3 +0 -0
- data/test_app/db/test.sqlite3 +0 -0
- data/test_app/test/fixtures/users.yml +3 -1
- data/test_app/test/functional/user_sessions_controller_test.rb +24 -3
- data/test_app/test/integration/user_sesion_stories_test.rb +85 -0
- data/test_app/test/integration/user_session_test.rb +158 -0
- data/test_app/test/test_helper.rb +46 -1
- metadata +8 -5
- data/lib/authgasm/controller.rb +0 -16
- data/test_app/test/unit/ass_test.rb +0 -8
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authgasm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Johnson of Binary Logic
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-10-
|
12
|
+
date: 2008-10-27 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -51,7 +51,8 @@ extensions: []
|
|
51
51
|
extra_rdoc_files:
|
52
52
|
- CHANGELOG.rdoc
|
53
53
|
- lib/authgasm/acts_as_authentic.rb
|
54
|
-
- lib/authgasm/
|
54
|
+
- lib/authgasm/controller_adapters/abstract_adapter.rb
|
55
|
+
- lib/authgasm/controller_adapters/rails_adapter.rb
|
55
56
|
- lib/authgasm/session/active_record_trickery.rb
|
56
57
|
- lib/authgasm/session/base.rb
|
57
58
|
- lib/authgasm/session/callbacks.rb
|
@@ -65,7 +66,8 @@ files:
|
|
65
66
|
- CHANGELOG.rdoc
|
66
67
|
- init.rb
|
67
68
|
- lib/authgasm/acts_as_authentic.rb
|
68
|
-
- lib/authgasm/
|
69
|
+
- lib/authgasm/controller_adapters/abstract_adapter.rb
|
70
|
+
- lib/authgasm/controller_adapters/rails_adapter.rb
|
69
71
|
- lib/authgasm/session/active_record_trickery.rb
|
70
72
|
- lib/authgasm/session/base.rb
|
71
73
|
- lib/authgasm/session/callbacks.rb
|
@@ -141,8 +143,9 @@ files:
|
|
141
143
|
- test_app/test/fixtures/users.yml
|
142
144
|
- test_app/test/functional/user_sessions_controller_test.rb
|
143
145
|
- test_app/test/functional/users_controller_test.rb
|
146
|
+
- test_app/test/integration/user_sesion_stories_test.rb
|
147
|
+
- test_app/test/integration/user_session_test.rb
|
144
148
|
- test_app/test/test_helper.rb
|
145
|
-
- test_app/test/unit/ass_test.rb
|
146
149
|
- test_app/test/unit/user_test.rb
|
147
150
|
- authgasm.gemspec
|
148
151
|
has_rdoc: true
|
data/lib/authgasm/controller.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
module Authgasm
|
2
|
-
# = Controller
|
3
|
-
# Adds a before_filter to set the controller object so that Authgasm can do its session and cookie magic
|
4
|
-
module Controller
|
5
|
-
def self.included(klass) # :nodoc:
|
6
|
-
klass.prepend_before_filter :set_controller
|
7
|
-
end
|
8
|
-
|
9
|
-
private
|
10
|
-
def set_controller
|
11
|
-
Authgasm::Session::Base.controller = self
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
ActionController::Base.send(:include, Authgasm::Controller)
|