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.
Files changed (4) hide show
  1. data/Gemfile.lock +6 -0
  2. data/Rakefile +2 -2
  3. data/lib/mongo-rack-session.rb +2 -1
  4. 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.2'
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{longer description of your gem}
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
 
@@ -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
- - 0
7
- - 0
8
- - 2
9
- version: 0.0.2
7
+ - 0
8
+ - 0
9
+ - 3
10
+ version: 0.0.3
10
11
  platform: ruby
11
12
  authors:
12
- - David Yang
13
+ - David Yang
13
14
  autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-01-27 00:00:00 -05:00
18
+ date: 2011-04-21 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: rack
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- segments:
27
- - 0
28
- version: "0"
29
- requirement: *id001
30
- prerelease: false
31
- type: :runtime
32
- - !ruby/object:Gem::Dependency
33
- name: uuid
34
- version_requirements: &id002 !ruby/object:Gem::Requirement
35
- requirements:
36
- - - ">="
37
- - !ruby/object:Gem::Version
38
- segments:
39
- - 0
40
- version: "0"
41
- requirement: *id002
42
- prerelease: false
43
- type: :runtime
44
- - !ruby/object:Gem::Dependency
45
- name: i18n
46
- version_requirements: &id003 !ruby/object:Gem::Requirement
47
- requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- segments:
51
- - 0
52
- version: "0"
53
- requirement: *id003
54
- prerelease: false
55
- type: :runtime
56
- - !ruby/object:Gem::Dependency
57
- name: mongo_mapper
58
- version_requirements: &id004 !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- segments:
63
- - 0
64
- version: "0"
65
- requirement: *id004
66
- prerelease: false
67
- type: :runtime
68
- - !ruby/object:Gem::Dependency
69
- name: shoulda
70
- version_requirements: &id005 !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- segments:
75
- - 0
76
- version: "0"
77
- requirement: *id005
78
- prerelease: false
79
- type: :development
80
- - !ruby/object:Gem::Dependency
81
- name: bundler
82
- version_requirements: &id006 !ruby/object:Gem::Requirement
83
- requirements:
84
- - - ~>
85
- - !ruby/object:Gem::Version
86
- segments:
87
- - 1
88
- - 0
89
- - 0
90
- version: 1.0.0
91
- requirement: *id006
92
- prerelease: false
93
- type: :development
94
- - !ruby/object:Gem::Dependency
95
- name: jeweler
96
- version_requirements: &id007 !ruby/object:Gem::Requirement
97
- requirements:
98
- - - ~>
99
- - !ruby/object:Gem::Version
100
- segments:
101
- - 1
102
- - 5
103
- - 2
104
- version: 1.5.2
105
- requirement: *id007
106
- prerelease: false
107
- type: :development
108
- - !ruby/object:Gem::Dependency
109
- name: rcov
110
- version_requirements: &id008 !ruby/object:Gem::Requirement
111
- requirements:
112
- - - ">="
113
- - !ruby/object:Gem::Version
114
- segments:
115
- - 0
116
- version: "0"
117
- requirement: *id008
118
- prerelease: false
119
- type: :development
120
- - !ruby/object:Gem::Dependency
121
- name: ruby-debug
122
- version_requirements: &id009 !ruby/object:Gem::Requirement
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- segments:
127
- - 0
128
- version: "0"
129
- requirement: *id009
130
- prerelease: false
131
- type: :development
132
- description: longer description of your gem
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
- - LICENSE.txt
140
- - README.rdoc
158
+ - LICENSE.txt
159
+ - README.rdoc
141
160
  files:
142
- - .document
143
- - Gemfile
144
- - Gemfile.lock
145
- - LICENSE.txt
146
- - README.rdoc
147
- - Rakefile
148
- - lib/mongo-rack-session.rb
149
- - test/helper.rb
150
- - test/test_mongo-rack-session.rb
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
- - MIT
173
+ - MIT
155
174
  post_install_message:
156
175
  rdoc_options: []
157
176
 
158
177
  require_paths:
159
- - lib
178
+ - lib
160
179
  required_ruby_version: !ruby/object:Gem::Requirement
180
+ none: false
161
181
  requirements:
162
- - - ">="
163
- - !ruby/object:Gem::Version
164
- segments:
165
- - 0
166
- version: "0"
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
- - !ruby/object:Gem::Version
171
- segments:
172
- - 0
173
- version: "0"
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.6
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
- - test/helper.rb
183
- - test/test_mongo-rack-session.rb
205
+ - test/helper.rb
206
+ - test/test_mongo-rack-session.rb