mongo_sessions 0.3.0 → 0.3.1
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/VERSION +1 -1
- data/lib/mongo_sessions/mongo_store.rb +1 -1
- data/mongo_sessions.gemspec +56 -0
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
@@ -30,7 +30,7 @@ module MongoSessions
|
|
30
30
|
|
31
31
|
def set_session(env, sid, session_data, options = {})
|
32
32
|
sid ||= generate_sid
|
33
|
-
collection.update({'_id' => sid}, {'_id' => sid, 's' => pack(session_data)}, {:upsert => true})
|
33
|
+
collection.update({'_id' => sid}, {'_id' => sid, 't' => Time.now, 's' => pack(session_data)}, {:upsert => true})
|
34
34
|
sid
|
35
35
|
end
|
36
36
|
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{mongo_sessions}
|
8
|
+
s.version = "0.3.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Mathias Biilmann"]
|
12
|
+
s.date = %q{2010-06-15}
|
13
|
+
s.description = %q{Uses the ruby Mongo driver to store sessions in a MongoDB collection}
|
14
|
+
s.email = %q{info@mathias-biilmann.net}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"lib/mongo_sessions/mongo_store.rb",
|
27
|
+
"lib/mongo_sessions/rack_mongo_store.rb",
|
28
|
+
"lib/mongo_sessions/rails_mongo_store.rb",
|
29
|
+
"mongo_sessions.gemspec",
|
30
|
+
"test/helper.rb",
|
31
|
+
"test/test_mongo_store.rb"
|
32
|
+
]
|
33
|
+
s.homepage = %q{http://github.com/biilmann/mongo_sessions}
|
34
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
35
|
+
s.require_paths = ["lib"]
|
36
|
+
s.rubygems_version = %q{1.3.7}
|
37
|
+
s.summary = %q{MongoDB Session store for Rails and Rack}
|
38
|
+
s.test_files = [
|
39
|
+
"test/helper.rb",
|
40
|
+
"test/test_mongo_store.rb"
|
41
|
+
]
|
42
|
+
|
43
|
+
if s.respond_to? :specification_version then
|
44
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
45
|
+
s.specification_version = 3
|
46
|
+
|
47
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
48
|
+
s.add_runtime_dependency(%q<actionpack>, ["~> 3.0"])
|
49
|
+
else
|
50
|
+
s.add_dependency(%q<actionpack>, ["~> 3.0"])
|
51
|
+
end
|
52
|
+
else
|
53
|
+
s.add_dependency(%q<actionpack>, ["~> 3.0"])
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_sessions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mathias Biilmann
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- lib/mongo_sessions/mongo_store.rb
|
53
53
|
- lib/mongo_sessions/rack_mongo_store.rb
|
54
54
|
- lib/mongo_sessions/rails_mongo_store.rb
|
55
|
+
- mongo_sessions.gemspec
|
55
56
|
- test/helper.rb
|
56
57
|
- test/test_mongo_store.rb
|
57
58
|
has_rdoc: true
|