JunKikuchi-rack-session-stack 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.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ begin
13
13
  s.author = "Jun Kikuchi"
14
14
  s.email = "kikuchi@bonnou.com"
15
15
  s.homepage = "http://github.com/JunKikuchi/rack-session-stack"
16
- s.files = %w(COPYING CHANGELOG README.rdoc Rakefile) + Dir.glob("{bin,doc,spec,lib}/**/*")
16
+ s.files = %w(COPYING CHANGELOG README.rdoc Rakefile VERSION) + Dir.glob("{bin,doc,spec,lib}/**/*")
17
17
  s.require_path = "lib"
18
18
  s.has_rdoc = true
19
19
  s.add_dependency('uuidtools','>= 2.0.0')
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.3
@@ -47,7 +47,9 @@ class Rack::Session::Stack::RAWS::SDB < Rack::Session::Stack::Base
47
47
  if data = @pool.get(sid)
48
48
  Marshal.load(data['session'].unpack("m*").first)
49
49
  else
50
- store(sid, super)
50
+ if data = super
51
+ create(sid, data)
52
+ end
51
53
  end
52
54
  end
53
55
 
@@ -37,7 +37,9 @@ class Rack::Session::Stack::Sequel < Rack::Session::Stack::Base
37
37
  if data = @pool.filter('sid = ?', sid).first
38
38
  Marshal.load(data[:session].unpack("m*").first)
39
39
  else
40
- store(sid, super)
40
+ if data = super
41
+ create(sid, data)
42
+ end
41
43
  end
42
44
  end
43
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: JunKikuchi-rack-session-stack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Kikuchi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-28 00:00:00 -07:00
12
+ date: 2009-09-27 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -35,6 +35,7 @@ files:
35
35
  - COPYING
36
36
  - README.rdoc
37
37
  - Rakefile
38
+ - VERSION
38
39
  - lib/rack-session-stack.rb
39
40
  - lib/rack-session-stack/memcache.rb
40
41
  - lib/rack-session-stack/raws/sdb.rb