mongo_session_store 2.0.0.pre → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ module ActionDispatch
20
20
 
21
21
  private
22
22
  def generate_sid
23
- BSON::ObjectID.new
23
+ BSON::ObjectId.new
24
24
  end
25
25
 
26
26
  def get_session(env, sid)
@@ -42,7 +42,7 @@ module ActionDispatch
42
42
  def find_session(id)
43
43
  @@session_class.find(id) ||
44
44
  @@session_class.new(:id=>id)
45
- rescue BSON::InvalidObjectID
45
+ rescue BSON::InvalidObjectId
46
46
  @@session_class.new(:id => generate_sid)
47
47
  end
48
48
 
@@ -20,7 +20,7 @@ module ActionDispatch
20
20
 
21
21
  private
22
22
  def generate_sid
23
- BSON::ObjectID.new
23
+ BSON::ObjectId.new
24
24
  end
25
25
 
26
26
  def get_session(env, sid)
@@ -40,7 +40,7 @@ module ActionDispatch
40
40
  end
41
41
 
42
42
  def find_session(id)
43
- id = BSON::ObjectID.from_string(id.to_s)
43
+ id = BSON::ObjectId.from_string(id.to_s)
44
44
  @@session_class.first(:conditions => { :_id => id }) ||
45
45
  @@session_class.new(:id => id)
46
46
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_session_store
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ hash: 15
5
+ prerelease: false
5
6
  segments:
6
7
  - 2
7
8
  - 0
8
9
  - 0
9
- - pre
10
- version: 2.0.0.pre
10
+ version: 2.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Nicolas M\xC3\xA9rouze"
@@ -17,16 +17,18 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-06-04 00:00:00 +02:00
20
+ date: 2010-10-13 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: actionpack
25
25
  prerelease: false
26
26
  requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
27
28
  requirements:
28
29
  - - ~>
29
30
  - !ruby/object:Gem::Version
31
+ hash: 7
30
32
  segments:
31
33
  - 3
32
34
  - 0
@@ -37,9 +39,11 @@ dependencies:
37
39
  name: mongo_mapper-rails3
38
40
  prerelease: false
39
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
40
43
  requirements:
41
44
  - - ">="
42
45
  - !ruby/object:Gem::Version
46
+ hash: 7
43
47
  segments:
44
48
  - 0
45
49
  - 7
@@ -51,9 +55,11 @@ dependencies:
51
55
  name: mongoid
52
56
  prerelease: false
53
57
  requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
54
59
  requirements:
55
60
  - - ~>
56
61
  - !ruby/object:Gem::Version
62
+ hash: 3
57
63
  segments:
58
64
  - 2
59
65
  - 0
@@ -83,25 +89,27 @@ rdoc_options:
83
89
  require_paths:
84
90
  - lib
85
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
+ none: false
86
93
  requirements:
87
94
  - - ">="
88
95
  - !ruby/object:Gem::Version
96
+ hash: 3
89
97
  segments:
90
98
  - 0
91
99
  version: "0"
92
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
+ none: false
93
102
  requirements:
94
- - - ">"
103
+ - - ">="
95
104
  - !ruby/object:Gem::Version
105
+ hash: 3
96
106
  segments:
97
- - 1
98
- - 3
99
- - 1
100
- version: 1.3.1
107
+ - 0
108
+ version: "0"
101
109
  requirements: []
102
110
 
103
111
  rubyforge_project:
104
- rubygems_version: 1.3.6
112
+ rubygems_version: 1.3.7
105
113
  signing_key:
106
114
  specification_version: 3
107
115
  summary: Rails session store class implemented for MongoMapper and Mongoid