mongo-store 0.1.0 → 0.1.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/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/rack/session/mongo.rb +2 -2
- data/mongo-store.gemspec +64 -0
- data/spec/{mongo-store_spec.rb → rack-mongo-store_spec.rb} +0 -0
- metadata +9 -6
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ Jeweler::Tasks.new do |gem|
|
|
10
10
|
gem.email = 'jonathan@titanous.com'
|
11
11
|
gem.homepage = 'http://github.com/titanous/mongo-store'
|
12
12
|
gem.authors = ['Jonathan Rudenberg']
|
13
|
-
gem.add_dependency 'mongo'
|
13
|
+
gem.add_dependency 'mongo', '>= 1.0.1'
|
14
14
|
gem.add_dependency 'rack', '~> 1.1.0'
|
15
15
|
gem.add_development_dependency 'rspec', '>= 1.2.9'
|
16
16
|
gem.add_development_dependency 'yard', '>= 0'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/rack/session/mongo.rb
CHANGED
@@ -58,7 +58,7 @@ module Rack
|
|
58
58
|
@mutex = Mutex.new
|
59
59
|
@connection = @default_options[:connection] || ::Mongo::Connection.new
|
60
60
|
@pool = @connection.db(@default_options[:db]).collection(@default_options[:collection])
|
61
|
-
@pool.create_index('sid', true)
|
61
|
+
@pool.create_index('sid', :unique => true)
|
62
62
|
end
|
63
63
|
|
64
64
|
def get_session(env, sid)
|
@@ -144,4 +144,4 @@ module Rack
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
end
|
147
|
-
end
|
147
|
+
end
|
data/mongo-store.gemspec
ADDED
@@ -0,0 +1,64 @@
|
|
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-store}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Jonathan Rudenberg"]
|
12
|
+
s.date = %q{2010-05-14}
|
13
|
+
s.email = %q{jonathan@titanous.com}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"LICENSE",
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".document",
|
20
|
+
".gitignore",
|
21
|
+
"LICENSE",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"lib/mongo-store.rb",
|
26
|
+
"lib/rack/session/mongo.rb",
|
27
|
+
"mongo-store.gemspec",
|
28
|
+
"spec/rack-mongo-store_spec.rb",
|
29
|
+
"spec/spec.opts",
|
30
|
+
"spec/spec_helper.rb"
|
31
|
+
]
|
32
|
+
s.homepage = %q{http://github.com/titanous/mongo-store}
|
33
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
34
|
+
s.require_paths = ["lib"]
|
35
|
+
s.rubygems_version = %q{1.3.6}
|
36
|
+
s.summary = %q{Rack session store for MongoDB}
|
37
|
+
s.test_files = [
|
38
|
+
"spec/rack-mongo-store_spec.rb",
|
39
|
+
"spec/spec_helper.rb"
|
40
|
+
]
|
41
|
+
|
42
|
+
if s.respond_to? :specification_version then
|
43
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
|
+
s.specification_version = 3
|
45
|
+
|
46
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
47
|
+
s.add_runtime_dependency(%q<mongo>, [">= 1.0.1"])
|
48
|
+
s.add_runtime_dependency(%q<rack>, ["~> 1.1.0"])
|
49
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
50
|
+
s.add_development_dependency(%q<yard>, [">= 0"])
|
51
|
+
else
|
52
|
+
s.add_dependency(%q<mongo>, [">= 1.0.1"])
|
53
|
+
s.add_dependency(%q<rack>, ["~> 1.1.0"])
|
54
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
55
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
56
|
+
end
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<mongo>, [">= 1.0.1"])
|
59
|
+
s.add_dependency(%q<rack>, ["~> 1.1.0"])
|
60
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
61
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
File without changes
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jonathan Rudenberg
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-05-14 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -25,8 +25,10 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
segments:
|
28
|
+
- 1
|
28
29
|
- 0
|
29
|
-
|
30
|
+
- 1
|
31
|
+
version: 1.0.1
|
30
32
|
type: :runtime
|
31
33
|
version_requirements: *id001
|
32
34
|
- !ruby/object:Gem::Dependency
|
@@ -87,7 +89,8 @@ files:
|
|
87
89
|
- VERSION
|
88
90
|
- lib/mongo-store.rb
|
89
91
|
- lib/rack/session/mongo.rb
|
90
|
-
-
|
92
|
+
- mongo-store.gemspec
|
93
|
+
- spec/rack-mongo-store_spec.rb
|
91
94
|
- spec/spec.opts
|
92
95
|
- spec/spec_helper.rb
|
93
96
|
has_rdoc: true
|
@@ -121,5 +124,5 @@ signing_key:
|
|
121
124
|
specification_version: 3
|
122
125
|
summary: Rack session store for MongoDB
|
123
126
|
test_files:
|
124
|
-
- spec/mongo-store_spec.rb
|
127
|
+
- spec/rack-mongo-store_spec.rb
|
125
128
|
- spec/spec_helper.rb
|