thincloud-authentication 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ module Thincloud
60
60
  # Returns: A new empty session instance.
61
61
  def logout
62
62
  reset_session
63
- cookies.delete(:uid)
63
+ delete_cookie_key :uid
64
64
  end
65
65
 
66
66
  # Protected: Provides the URL to redirect to after logging in.
@@ -98,6 +98,16 @@ module Thincloud
98
98
  main_app.root_url
99
99
  end
100
100
 
101
+
102
+ private
103
+
104
+ # Private: Delete a cookie, taking the domain in to account
105
+ def delete_cookie_key(key)
106
+ domain = Thincloud::Authentication.configuration.cookie_options[:domain]
107
+ options = domain ? { domain: domain } : Hash.new
108
+ cookies.delete(key, options)
109
+ end
110
+
101
111
  end
102
112
 
103
113
  end
@@ -1,5 +1,5 @@
1
1
  module Thincloud
2
2
  module Authentication
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thincloud-authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-15 00:00:00.000000000 Z
13
+ date: 2013-05-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  segments:
152
152
  - 0
153
- hash: -3125374884034061561
153
+ hash: -1681311068432426013
154
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  none: false
156
156
  requirements:
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  segments:
161
161
  - 0
162
- hash: -3125374884034061561
162
+ hash: -1681311068432426013
163
163
  requirements: []
164
164
  rubyforge_project:
165
165
  rubygems_version: 1.8.23