devise_cas_authenticatable 1.6.1 → 1.7.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 151a1d520067882f59a415f525076d4ffd4ed6af
4
- data.tar.gz: 48694c3082c209b0afff847abdcc917ee971d974
3
+ metadata.gz: e0cff277d9f063fd582a2ee6c58024844cf53f27
4
+ data.tar.gz: f34636125dc94ed2ff3f1a489611b85aad1c4657
5
5
  SHA512:
6
- metadata.gz: be6cc0b075955abe043959be581e469678cacf634977fae043a04fd2a2ddf164a7c68302a2e335174b3f83e4a205a2d753f5491e1d540b3066e0d6fd49c1b97a
7
- data.tar.gz: 6d4cf4ab4ed459933c1f422785c88a96c47b2d90d1b98048b71bcfd50895b94cd37e008c4ada90548d2a475d7d2cd8245beb7487a066663a6b8ea3f6b7b0b73c
6
+ metadata.gz: 63586a13b87fd4016aabc1c0894d98b92ebcb2399a580d3050a1f3d464952db1e9e9170cf24b54ce0768daf3cd7eac423df8c2cedb05e133d35f533a842c7528
7
+ data.tar.gz: da00e80923c927bc2afb444a708a0aee9bdaea90a2cbf2294b0250824cbdbfb3ca7953f8533afe43b8c32e9f3ab5b758614a8fe145cb383a750c09e544bfe2e5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog for devise\_cas\_authenticatable
2
2
 
3
+ ## Version 1.7.0 - December 18, 2015
4
+
5
+ * Support RedisSessionStore (thanks @dandyn!)
6
+ * Suppress warnings about `Devise.secret_key` not being set in production mode (thanks @joraff!)
7
+
3
8
  ## Version 1.6.1 - December 18, 2015
4
9
 
5
10
  * Allow single sign-out code to find the app's session store when NewRelic is in the middleware stack (thanks @brendancarney!)
@@ -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.6.1"
5
+ s.version = "1.7.0"
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"]
@@ -18,6 +18,22 @@ if defined? ActionDispatch::Routing
18
18
  match :destroy, :path => mapping.path_names[:sign_out], :as => "destroy", :via => sign_out_via
19
19
  end
20
20
  end
21
+
22
+ def raise_no_secret_key #:nodoc:
23
+ # Devise_cas_authenticatable does not store passwords, so does not need a secret!
24
+ logger.warn <<-WARNING
25
+ Devise_cas_authenticatable has suppressed an exception from being raised for missing Devise.secret_key.
26
+ If devise_cas_authenticatable is the only devise module you are using for authentication you can safely ignore this warning.
27
+ However, if you use another module that requires the secret_key please follow these instructions from Devise:
28
+
29
+ Devise.secret_key was not set. Please add the following to your Devise initializer:
30
+
31
+ config.secret_key = '#{SecureRandom.hex(64)}'
32
+
33
+ Please ensure you restarted your application after installing Devise or setting the key.
34
+ WARNING
35
+
36
+ end
21
37
  end
22
38
  else
23
39
  # Rails 2
@@ -46,6 +46,9 @@ module DeviseCasAuthenticatable
46
46
  elsif session_store_class.name =~ /ActionDispatch::Session::DalliStore/
47
47
  current_session_store.send(:destroy_session, env, sid, drop: true)
48
48
  true
49
+ elsif session_store_class.name =~ /RedisSessionStore/
50
+ current_session_store.send(:destroy_session, env, sid, drop: true)
51
+ true
49
52
  elsif session_store_class.name =~ /Redis/
50
53
  current_session_store.instance_variable_get(:@pool).del(sid)
51
54
  true
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.6.1
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Budin