smart_cookie_store 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/smart_cookie_store.rb +1 -4
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ PKG_FILES = FileList[
11
11
 
12
12
  spec = Gem::Specification.new do |s|
13
13
  s.name = "smart_cookie_store"
14
- s.version = "0.0.2"
14
+ s.version = "0.0.3"
15
15
  s.author = "Urban Hafner"
16
16
  s.email = "urban@bettong.net"
17
17
  s.homepage = "http://github.com/msales/smart_cookie_store"
@@ -16,10 +16,7 @@ class SmartCookieStore < ActionController::Session::CookieStore
16
16
  cookie = Hash.new
17
17
 
18
18
  session_keys = session_data.keys.reject {|k| k == :session_id }
19
- if session_keys.empty? || session_keys.all? {|k| session_data[k].blank?}
20
- cookie[:value] = ''
21
- cookie[:expires] = Time.at(0)
22
- else
19
+ unless session_keys.empty? || session_keys.all? {|k| session_data[k].blank?}
23
20
  marshaled_session_data = marshal(session_data.to_hash)
24
21
 
25
22
  raise CookieOverflow if marshaled_session_data.size > MAX
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Urban Hafner
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-28 00:00:00 +02:00
17
+ date: 2010-04-29 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20