devise_cas_authenticatable 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/devise_cas_authenticatable.gemspec +2 -2
- data/lib/devise_cas_authenticatable/single_sign_out.rb +1 -1
- data/spec/scenario/app/models/user.rb +1 -1
- data/spec/scenario/db/migrate/20100401102949_create_tables.rb +8 -0
- data/spec/scenario/db/schema.rb +5 -0
- data/spec/strategy_spec.rb +10 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46413eb3f1f70c455260ea41fbac06729599ff43
|
4
|
+
data.tar.gz: f2ded3cf195458a1e74738551c82d806c01ce181
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a04d5a7637a3cec42c0946b3d2ea5991fc02f1aef4c058b4c5e74272caa2ca02b06dfdfdf99b2cd5c009483258f7ea3d891024140208d2d0c9ac9e4240c821e
|
7
|
+
data.tar.gz: 4805b9ca201e4d9269491f080aa24929bd3df37129f3777b97810467259d86eb0879ebced85b33af1b00bfbb915300e8ec58a928bc8d6ccf3dfdd3d9018c8f48
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog for devise\_cas\_authenticatable
|
2
2
|
|
3
|
+
## Version 1.3.7 - July 17, 2014
|
4
|
+
|
5
|
+
* Be less verbose in the log during single sign-out (thanks to @liudangyi)
|
6
|
+
|
7
|
+
## Version 1.0.1 - July 6, 2014
|
8
|
+
|
9
|
+
* Backport the 1.1.x series' logout_url features to the 1.0.x series for super-old apps
|
10
|
+
|
3
11
|
## Version 1.3.6 - February 5, 2014
|
4
12
|
|
5
13
|
* Better single sign-out support for ActiveRecord session store users and README fixes (thanks to @fernandomantoan)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{devise_cas_authenticatable}
|
5
|
-
s.version = "1.3.
|
5
|
+
s.version = "1.3.7"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Nat Budin", "Jeremy Haile"]
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.add_development_dependency("shoulda", "~> 3.4.0")
|
31
31
|
s.add_development_dependency("sqlite3-ruby")
|
32
32
|
s.add_development_dependency("sham_rack")
|
33
|
-
s.add_development_dependency("capybara"
|
33
|
+
s.add_development_dependency("capybara")
|
34
34
|
s.add_development_dependency('crypt-isaac')
|
35
35
|
s.add_development_dependency('launchy')
|
36
36
|
s.add_development_dependency('timecop')
|
@@ -33,7 +33,7 @@ module DeviseCasAuthenticatable
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def destroy_session_by_id(sid)
|
36
|
-
logger.debug "Single Sign Out from session store: #{current_session_store.
|
36
|
+
logger.debug "Single Sign Out from session store: #{current_session_store.class}"
|
37
37
|
|
38
38
|
if session_store_class.name =~ /ActiveRecord::SessionStore/
|
39
39
|
session = session_store_class::Session.find_by_session_id(sid)
|
@@ -4,6 +4,14 @@ class CreateTables < ActiveRecord::Migration
|
|
4
4
|
t.string :username, :null => false
|
5
5
|
t.datetime :remember_created_at
|
6
6
|
t.string :email
|
7
|
+
|
8
|
+
# trackable
|
9
|
+
t.integer :sign_in_count
|
10
|
+
t.datetime :current_sign_in_at
|
11
|
+
t.datetime :last_sign_in_at
|
12
|
+
t.string :current_sign_in_ip
|
13
|
+
t.string :last_sign_in_ip
|
14
|
+
|
7
15
|
t.timestamps
|
8
16
|
end
|
9
17
|
|
data/spec/scenario/db/schema.rb
CHANGED
@@ -27,6 +27,11 @@ ActiveRecord::Schema.define(:version => 20121009092400) do
|
|
27
27
|
t.string "username", :null => false
|
28
28
|
t.datetime "remember_created_at"
|
29
29
|
t.string "email"
|
30
|
+
t.integer "sign_in_count"
|
31
|
+
t.datetime "current_sign_in_at"
|
32
|
+
t.datetime "last_sign_in_at"
|
33
|
+
t.string "current_sign_in_ip"
|
34
|
+
t.string "last_sign_in_ip"
|
30
35
|
t.datetime "created_at", :null => false
|
31
36
|
t.datetime "updated_at", :null => false
|
32
37
|
t.boolean "deactivated"
|
data/spec/strategy_spec.rb
CHANGED
@@ -129,4 +129,14 @@ describe Devise::Strategies::CasAuthenticatable, :type => "acceptance" do
|
|
129
129
|
click_on "Login"
|
130
130
|
current_url.should == root_url
|
131
131
|
end
|
132
|
+
|
133
|
+
it "should work correctly with Devise trackable" do
|
134
|
+
user = User.first
|
135
|
+
user.update_attributes!(:last_sign_in_at => 1.day.ago, :last_sign_in_ip => "1.2.3.4", :sign_in_count => 41)
|
136
|
+
sign_into_cas "joeuser", "joepassword"
|
137
|
+
|
138
|
+
user.reload
|
139
|
+
user.last_sign_in_at.should >= 1.hour.ago
|
140
|
+
user.sign_in_count.should == 42
|
141
|
+
end
|
132
142
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_cas_authenticatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Budin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise
|
@@ -127,16 +127,16 @@ dependencies:
|
|
127
127
|
name: capybara
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- - "
|
130
|
+
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: '0'
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- - "
|
137
|
+
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
139
|
+
version: '0'
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: crypt-isaac
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|