tpitale-dm_session_store 0.2.1 → 0.2.2

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.
@@ -5,7 +5,7 @@ module DataMapper
5
5
  class Session
6
6
  include DataMapper::Resource
7
7
 
8
- property :session_id, String, :size => 32, :nullable => false, :key => true
8
+ property :session_id, String, :length => 32, :nullable => false, :key => true
9
9
  property :data, Object, :default => {}, :lazy => false
10
10
  property :created_at, DateTime, :default => Proc.new { |r, p| DateTime.now }
11
11
  end
@@ -26,6 +26,7 @@ module DataMapper
26
26
 
27
27
  def set_session(env, sid, session_data)
28
28
  record = env[SESSION_RECORD_KEY] ||= find_session(sid)
29
+ record.data = nil # force dirtiness
29
30
  record.data = session_data
30
31
  record.save
31
32
  end
@@ -3,7 +3,7 @@ module DmSessionStore
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tpitale-dm_session_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Pitale
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-09 00:00:00 -07:00
12
+ date: 2009-07-05 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -72,7 +72,7 @@ requirements: []
72
72
  rubyforge_project:
73
73
  rubygems_version: 1.2.0
74
74
  signing_key:
75
- specification_version: 2
75
+ specification_version: 3
76
76
  summary: Database session store using DataMapper in Rails
77
77
  test_files:
78
78
  - test/unit/dm_session_store_test.rb