mongo-rack-session 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +6 -0
- data/Rakefile +2 -2
- data/lib/mongo-rack-session.rb +2 -1
- metadata +168 -145
data/Gemfile.lock
CHANGED
@@ -9,6 +9,7 @@ GEM
|
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
11
|
activesupport (3.0.3)
|
12
|
+
bson (1.2.0)
|
12
13
|
bson (1.2.0-java)
|
13
14
|
columnize (0.3.2)
|
14
15
|
git (1.2.5)
|
@@ -19,6 +20,7 @@ GEM
|
|
19
20
|
rake
|
20
21
|
jnunemaker-validatable (1.8.4)
|
21
22
|
activesupport (>= 2.3.4)
|
23
|
+
linecache (0.43)
|
22
24
|
macaddr (1.0.0)
|
23
25
|
mongo (1.2.0)
|
24
26
|
bson (>= 1.2.0)
|
@@ -30,15 +32,19 @@ GEM
|
|
30
32
|
mongo (~> 1.1)
|
31
33
|
rack (1.2.1)
|
32
34
|
rake (0.8.7)
|
35
|
+
rcov (0.9.9)
|
33
36
|
rcov (0.9.9-java)
|
34
37
|
ruby-debug (0.10.4)
|
35
38
|
columnize (>= 0.1)
|
36
39
|
ruby-debug-base (~> 0.10.4.0)
|
40
|
+
ruby-debug-base (0.10.4)
|
41
|
+
linecache (>= 0.3)
|
37
42
|
ruby-debug-base (0.10.4-java)
|
38
43
|
shoulda (2.11.3)
|
39
44
|
|
40
45
|
PLATFORMS
|
41
46
|
java
|
47
|
+
ruby
|
42
48
|
|
43
49
|
DEPENDENCIES
|
44
50
|
bundler (~> 1.0.0)
|
data/Rakefile
CHANGED
@@ -13,11 +13,11 @@ require 'jeweler'
|
|
13
13
|
Jeweler::Tasks.new do |gem|
|
14
14
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
15
|
gem.name = "mongo-rack-session"
|
16
|
-
gem.version = '0.0.
|
16
|
+
gem.version = '0.0.3'
|
17
17
|
gem.homepage = "http://github.com/davidyang/mongo-rack-session"
|
18
18
|
gem.license = "MIT"
|
19
19
|
gem.summary = %Q{A simple way to load your sessions from a Mongo DB Store into Rack Session}
|
20
|
-
gem.description = %Q{
|
20
|
+
gem.description = %Q{A simple way to load your sessions from a MongoDB store}
|
21
21
|
gem.email = "david.g.yang@gmail.com"
|
22
22
|
gem.authors = ["David Yang"]
|
23
23
|
|
data/lib/mongo-rack-session.rb
CHANGED
@@ -13,6 +13,7 @@ module Rack
|
|
13
13
|
key :Expired, Boolean
|
14
14
|
key :StartTimestamp, Time
|
15
15
|
key :Timeout, Integer
|
16
|
+
key :Attributes, Hash
|
16
17
|
|
17
18
|
def is_valid?
|
18
19
|
if self.Timeout && self.StartTimestamp
|
@@ -49,7 +50,7 @@ module Rack
|
|
49
50
|
end
|
50
51
|
|
51
52
|
def set_session(env, session_id, new_session, options)
|
52
|
-
new_session.save ? new_session.Id : nil
|
53
|
+
#new_session.save ? new_session.Id : nil
|
53
54
|
end
|
54
55
|
|
55
56
|
def find_session(sid)
|
metadata
CHANGED
@@ -1,183 +1,206 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo-rack-session
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
version: 0.0.
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
|
-
|
13
|
+
- David Yang
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-
|
18
|
+
date: 2011-04-21 00:00:00 -04:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
prerelease: false
|
23
|
+
type: :runtime
|
24
|
+
name: rack
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
prerelease: false
|
37
|
+
type: :runtime
|
38
|
+
name: uuid
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
requirement: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
prerelease: false
|
51
|
+
type: :runtime
|
52
|
+
name: i18n
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
62
|
+
requirement: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
prerelease: false
|
65
|
+
type: :runtime
|
66
|
+
name: mongo_mapper
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
76
|
+
requirement: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
prerelease: false
|
79
|
+
type: :development
|
80
|
+
name: shoulda
|
81
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
version: "0"
|
90
|
+
requirement: *id005
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
prerelease: false
|
93
|
+
type: :development
|
94
|
+
name: bundler
|
95
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ~>
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
hash: 23
|
101
|
+
segments:
|
102
|
+
- 1
|
103
|
+
- 0
|
104
|
+
- 0
|
105
|
+
version: 1.0.0
|
106
|
+
requirement: *id006
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
prerelease: false
|
109
|
+
type: :development
|
110
|
+
name: jeweler
|
111
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ~>
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
hash: 7
|
117
|
+
segments:
|
118
|
+
- 1
|
119
|
+
- 5
|
120
|
+
- 2
|
121
|
+
version: 1.5.2
|
122
|
+
requirement: *id007
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
prerelease: false
|
125
|
+
type: :development
|
126
|
+
name: rcov
|
127
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
hash: 3
|
133
|
+
segments:
|
134
|
+
- 0
|
135
|
+
version: "0"
|
136
|
+
requirement: *id008
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
prerelease: false
|
139
|
+
type: :development
|
140
|
+
name: ruby-debug
|
141
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
hash: 3
|
147
|
+
segments:
|
148
|
+
- 0
|
149
|
+
version: "0"
|
150
|
+
requirement: *id009
|
151
|
+
description: A simple way to load your sessions from a MongoDB store
|
133
152
|
email: david.g.yang@gmail.com
|
134
153
|
executables: []
|
135
154
|
|
136
155
|
extensions: []
|
137
156
|
|
138
157
|
extra_rdoc_files:
|
139
|
-
|
140
|
-
|
158
|
+
- LICENSE.txt
|
159
|
+
- README.rdoc
|
141
160
|
files:
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
161
|
+
- .document
|
162
|
+
- Gemfile
|
163
|
+
- Gemfile.lock
|
164
|
+
- LICENSE.txt
|
165
|
+
- README.rdoc
|
166
|
+
- Rakefile
|
167
|
+
- lib/mongo-rack-session.rb
|
168
|
+
- test/helper.rb
|
169
|
+
- test/test_mongo-rack-session.rb
|
151
170
|
has_rdoc: true
|
152
171
|
homepage: http://github.com/davidyang/mongo-rack-session
|
153
172
|
licenses:
|
154
|
-
|
173
|
+
- MIT
|
155
174
|
post_install_message:
|
156
175
|
rdoc_options: []
|
157
176
|
|
158
177
|
require_paths:
|
159
|
-
|
178
|
+
- lib
|
160
179
|
required_ruby_version: !ruby/object:Gem::Requirement
|
180
|
+
none: false
|
161
181
|
requirements:
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
hash: 3
|
185
|
+
segments:
|
186
|
+
- 0
|
187
|
+
version: "0"
|
167
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
none: false
|
168
190
|
requirements:
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
hash: 3
|
194
|
+
segments:
|
195
|
+
- 0
|
196
|
+
version: "0"
|
174
197
|
requirements: []
|
175
198
|
|
176
199
|
rubyforge_project:
|
177
|
-
rubygems_version: 1.3.
|
200
|
+
rubygems_version: 1.3.7
|
178
201
|
signing_key:
|
179
202
|
specification_version: 3
|
180
203
|
summary: A simple way to load your sessions from a Mongo DB Store into Rack Session
|
181
204
|
test_files:
|
182
|
-
|
183
|
-
|
205
|
+
- test/helper.rb
|
206
|
+
- test/test_mongo-rack-session.rb
|