Empact-mongo_session_store 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ module ActionController
|
|
20
20
|
|
21
21
|
private
|
22
22
|
def generate_sid
|
23
|
-
BSON::
|
23
|
+
BSON::ObjectId.new
|
24
24
|
end
|
25
25
|
|
26
26
|
def get_session(env, sid)
|
@@ -40,7 +40,7 @@ module ActionController
|
|
40
40
|
def find_session(id)
|
41
41
|
@@session_class.find(id) ||
|
42
42
|
@@session_class.new(:id=>id)
|
43
|
-
rescue BSON::
|
43
|
+
rescue BSON::InvalidObjectId
|
44
44
|
@@session_class.new(:id => generate_sid)
|
45
45
|
end
|
46
46
|
|
@@ -20,7 +20,7 @@ module ActionController
|
|
20
20
|
|
21
21
|
private
|
22
22
|
def generate_sid
|
23
|
-
|
23
|
+
BSON::ObjectId.new
|
24
24
|
end
|
25
25
|
|
26
26
|
def get_session(env, sid)
|
@@ -38,8 +38,9 @@ module ActionController
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def find_session(id)
|
41
|
-
|
42
|
-
|
41
|
+
id = BSON::ObjectId.from_string(id.to_s)
|
42
|
+
@@session_class.first(:conditions => { :_id => id }) ||
|
43
|
+
@@session_class.new(:id => id)
|
43
44
|
end
|
44
45
|
|
45
46
|
def pack(data)
|
metadata
CHANGED
@@ -1,117 +1,84 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: Empact-mongo_session_store
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 2
|
10
|
-
version: 1.1.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.3
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
7
|
+
authors:
|
8
|
+
- Nicolas Mérouze
|
14
9
|
- Tony Pitale
|
15
10
|
- Chris Brickley
|
16
11
|
autorequire:
|
17
12
|
bindir: bin
|
18
13
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
dependencies:
|
23
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
date: 2011-08-01 00:00:00.000000000Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
24
17
|
name: actionpack
|
25
|
-
|
26
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirement: &70156568121740 !ruby/object:Gem::Requirement
|
27
19
|
none: false
|
28
|
-
requirements:
|
20
|
+
requirements:
|
29
21
|
- - ~>
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
|
32
|
-
segments:
|
33
|
-
- 2
|
34
|
-
- 3
|
35
|
-
version: "2.3"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '2.3'
|
36
24
|
type: :runtime
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: mongo_mapper
|
40
25
|
prerelease: false
|
41
|
-
|
26
|
+
version_requirements: *70156568121740
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mongo_mapper
|
29
|
+
requirement: &70156568120960 !ruby/object:Gem::Requirement
|
42
30
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
hash: 5
|
47
|
-
segments:
|
48
|
-
- 0
|
49
|
-
- 6
|
50
|
-
- 1
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
51
34
|
version: 0.6.1
|
52
35
|
type: :development
|
53
|
-
version_requirements: *id002
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
name: mongoid
|
56
36
|
prerelease: false
|
57
|
-
|
37
|
+
version_requirements: *70156568120960
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: mongoid
|
40
|
+
requirement: &70156568120200 !ruby/object:Gem::Requirement
|
58
41
|
none: false
|
59
|
-
requirements:
|
42
|
+
requirements:
|
60
43
|
- - ~>
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
|
63
|
-
segments:
|
64
|
-
- 1
|
65
|
-
- 0
|
66
|
-
version: "1.0"
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.0'
|
67
46
|
type: :development
|
68
|
-
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *70156568120200
|
69
49
|
description:
|
70
50
|
email: nicolas.merouze@gmail.com
|
71
51
|
executables: []
|
72
|
-
|
73
52
|
extensions: []
|
74
|
-
|
75
|
-
extra_rdoc_files:
|
53
|
+
extra_rdoc_files:
|
76
54
|
- README.md
|
77
|
-
files:
|
55
|
+
files:
|
78
56
|
- README.md
|
79
57
|
- lib/mongo_session_store.rb
|
80
58
|
- lib/mongo_session_store/mongo_mapper.rb
|
81
59
|
- lib/mongo_session_store/mongoid.rb
|
82
|
-
has_rdoc: true
|
83
60
|
homepage: http://github.com/nmerouze/mongo_session_store
|
84
61
|
licenses: []
|
85
|
-
|
86
62
|
post_install_message:
|
87
|
-
rdoc_options:
|
88
|
-
|
89
|
-
require_paths:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
90
65
|
- lib
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
67
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
|
98
|
-
- 0
|
99
|
-
version: "0"
|
100
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
73
|
none: false
|
102
|
-
requirements:
|
103
|
-
- -
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
version: "0"
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
109
78
|
requirements: []
|
110
|
-
|
111
79
|
rubyforge_project:
|
112
|
-
rubygems_version: 1.
|
80
|
+
rubygems_version: 1.8.5
|
113
81
|
signing_key:
|
114
82
|
specification_version: 3
|
115
83
|
summary: Rails session store class implemented for MongoMapper and Mongoid
|
116
84
|
test_files: []
|
117
|
-
|