devise_cas_authenticatable 1.0.0.alpha4 → 1.0.0.alpha5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile.lock +7 -9
- data/Rakefile +11 -1
- data/VERSION +1 -1
- data/app/controllers/devise/cas_sessions_controller.rb +7 -1
- data/devise_cas_authenticatable.gemspec +6 -7
- metadata +15 -14
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
devise_cas_authenticatable (1.0.0.
|
4
|
+
devise_cas_authenticatable (1.0.0.alpha5)
|
5
5
|
devise (>= 1.0.6)
|
6
|
-
rubycas-client (
|
6
|
+
rubycas-client (>= 2.2.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
@@ -37,12 +37,12 @@ GEM
|
|
37
37
|
activesupport (3.0.0)
|
38
38
|
arel (1.0.1)
|
39
39
|
activesupport (~> 3.0.0)
|
40
|
-
bcrypt-ruby (2.1.
|
40
|
+
bcrypt-ruby (2.1.4)
|
41
41
|
builder (2.1.2)
|
42
42
|
columnize (0.3.1)
|
43
|
-
devise (1.1.
|
43
|
+
devise (1.1.5)
|
44
44
|
bcrypt-ruby (~> 2.1.2)
|
45
|
-
warden (~> 0.
|
45
|
+
warden (~> 1.0.2)
|
46
46
|
diff-lcs (1.1.2)
|
47
47
|
erubis (2.6.6)
|
48
48
|
abstract (>= 1.0.0)
|
@@ -100,7 +100,7 @@ GEM
|
|
100
100
|
ruby-debug-base (~> 0.10.3.0)
|
101
101
|
ruby-debug-base (0.10.3)
|
102
102
|
linecache (>= 0.3)
|
103
|
-
rubycas-client (2.1
|
103
|
+
rubycas-client (2.2.1)
|
104
104
|
activesupport
|
105
105
|
rubyforge (2.0.4)
|
106
106
|
json_pure (>= 1.1.7)
|
@@ -111,7 +111,7 @@ GEM
|
|
111
111
|
treetop (1.4.8)
|
112
112
|
polyglot (>= 0.3.1)
|
113
113
|
tzinfo (0.3.23)
|
114
|
-
warden (0.
|
114
|
+
warden (1.0.3)
|
115
115
|
rack (>= 1.0.0)
|
116
116
|
webrat (0.7.1)
|
117
117
|
nokogiri (>= 1.2.0)
|
@@ -122,7 +122,6 @@ PLATFORMS
|
|
122
122
|
ruby
|
123
123
|
|
124
124
|
DEPENDENCIES
|
125
|
-
devise (>= 1.0.6)
|
126
125
|
devise_cas_authenticatable!
|
127
126
|
jeweler
|
128
127
|
mocha
|
@@ -130,7 +129,6 @@ DEPENDENCIES
|
|
130
129
|
rspec (>= 2.0.0.beta.17)
|
131
130
|
rspec-rails (>= 2.0.0.beta.17)
|
132
131
|
ruby-debug
|
133
|
-
rubycas-client (~> 2.1.0)
|
134
132
|
sham_rack
|
135
133
|
shoulda
|
136
134
|
sqlite3-ruby
|
data/Rakefile
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
|
3
|
+
Bundler.setup
|
4
|
+
|
1
5
|
require 'rake'
|
2
6
|
require 'rake/rdoctask'
|
3
7
|
require 'rspec/mocks/version'
|
@@ -28,9 +32,15 @@ begin
|
|
28
32
|
gemspec.homepage = "http://github.com/nbudin/devise_cas_authenticatable"
|
29
33
|
gemspec.authors = ["Nat Budin"]
|
30
34
|
gemspec.add_runtime_dependency "devise", ">= 1.0.6"
|
31
|
-
gemspec.add_runtime_dependency "rubycas-client", "
|
35
|
+
gemspec.add_runtime_dependency "rubycas-client", ">= 2.2.1"
|
32
36
|
end
|
33
37
|
Jeweler::GemcutterTasks.new
|
34
38
|
rescue LoadError
|
35
39
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
36
40
|
end
|
41
|
+
|
42
|
+
namespace :scenario do
|
43
|
+
require File.expand_path('../spec/scenario/config/application', __FILE__)
|
44
|
+
|
45
|
+
Scenario::Application.load_tasks
|
46
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.alpha5
|
@@ -10,7 +10,13 @@ class Devise::CasSessionsController < Devise::SessionsController
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def destroy
|
13
|
-
|
13
|
+
# if :cas_create_user is false a CAS session might be open but not signed_in
|
14
|
+
# in such case we destroy the session here
|
15
|
+
if signed_in?(resource_name)
|
16
|
+
sign_out(resource_name)
|
17
|
+
else
|
18
|
+
reset_session
|
19
|
+
end
|
14
20
|
destination = request.protocol
|
15
21
|
destination << request.host
|
16
22
|
destination << ":#{request.port.to_s}" unless request.port == 80
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{devise_cas_authenticatable}
|
8
|
-
s.version = "1.0.0.
|
8
|
+
s.version = "1.0.0.alpha5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nat Budin"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-03-31}
|
13
13
|
s.description = %q{CAS authentication module for Devise}
|
14
14
|
s.email = %q{natbudin@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -60,7 +60,7 @@ Gem::Specification.new do |s|
|
|
60
60
|
s.homepage = %q{http://github.com/nbudin/devise_cas_authenticatable}
|
61
61
|
s.rdoc_options = ["--charset=UTF-8"]
|
62
62
|
s.require_paths = ["lib"]
|
63
|
-
s.rubygems_version = %q{1.
|
63
|
+
s.rubygems_version = %q{1.5.0}
|
64
64
|
s.summary = %q{CAS authentication module for Devise}
|
65
65
|
s.test_files = [
|
66
66
|
"spec/routes_spec.rb",
|
@@ -85,19 +85,18 @@ Gem::Specification.new do |s|
|
|
85
85
|
]
|
86
86
|
|
87
87
|
if s.respond_to? :specification_version then
|
88
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
89
88
|
s.specification_version = 3
|
90
89
|
|
91
90
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
92
91
|
s.add_runtime_dependency(%q<devise>, [">= 1.0.6"])
|
93
|
-
s.add_runtime_dependency(%q<rubycas-client>, ["
|
92
|
+
s.add_runtime_dependency(%q<rubycas-client>, [">= 2.2.1"])
|
94
93
|
else
|
95
94
|
s.add_dependency(%q<devise>, [">= 1.0.6"])
|
96
|
-
s.add_dependency(%q<rubycas-client>, ["
|
95
|
+
s.add_dependency(%q<rubycas-client>, [">= 2.2.1"])
|
97
96
|
end
|
98
97
|
else
|
99
98
|
s.add_dependency(%q<devise>, [">= 1.0.6"])
|
100
|
-
s.add_dependency(%q<rubycas-client>, ["
|
99
|
+
s.add_dependency(%q<rubycas-client>, [">= 2.2.1"])
|
101
100
|
end
|
102
101
|
end
|
103
102
|
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_cas_authenticatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
5
|
-
prerelease:
|
4
|
+
hash: -3702664330
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
|
10
|
+
- alpha
|
11
|
+
- 5
|
12
|
+
version: 1.0.0.alpha5
|
12
13
|
platform: ruby
|
13
14
|
authors:
|
14
15
|
- Nat Budin
|
@@ -16,12 +17,12 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date:
|
20
|
+
date: 2011-03-31 00:00:00 -04:00
|
20
21
|
default_executable:
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|
23
|
-
name: devise
|
24
24
|
prerelease: false
|
25
|
+
type: :runtime
|
25
26
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
27
|
none: false
|
27
28
|
requirements:
|
@@ -33,23 +34,23 @@ dependencies:
|
|
33
34
|
- 0
|
34
35
|
- 6
|
35
36
|
version: 1.0.6
|
36
|
-
|
37
|
+
name: devise
|
37
38
|
version_requirements: *id001
|
38
39
|
- !ruby/object:Gem::Dependency
|
39
|
-
name: rubycas-client
|
40
40
|
prerelease: false
|
41
|
+
type: :runtime
|
41
42
|
requirement: &id002 !ruby/object:Gem::Requirement
|
42
43
|
none: false
|
43
44
|
requirements:
|
44
|
-
- -
|
45
|
+
- - ">="
|
45
46
|
- !ruby/object:Gem::Version
|
46
|
-
hash:
|
47
|
+
hash: 5
|
47
48
|
segments:
|
48
49
|
- 2
|
50
|
+
- 2
|
49
51
|
- 1
|
50
|
-
|
51
|
-
|
52
|
-
type: :runtime
|
52
|
+
version: 2.2.1
|
53
|
+
name: rubycas-client
|
53
54
|
version_requirements: *id002
|
54
55
|
description: CAS authentication module for Devise
|
55
56
|
email: natbudin@gmail.com
|
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
133
|
requirements: []
|
133
134
|
|
134
135
|
rubyforge_project:
|
135
|
-
rubygems_version: 1.
|
136
|
+
rubygems_version: 1.5.0
|
136
137
|
signing_key:
|
137
138
|
specification_version: 3
|
138
139
|
summary: CAS authentication module for Devise
|