mongo_session_store-rails3 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/README.md +2 -0
- data/lib/mongo_session_store/mongoid_store.rb +5 -1
- data/lib/mongo_session_store/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 978d92ad561316e9b239b0fad9d24b40f60e1177
|
4
|
+
data.tar.gz: c7544b18a3b886640cf398e8ce972eaa1634b586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 270987e7655190e6c605ffe5a72554faf38a1139e8033c95dfcff15719ada252b93ba3e2cacf37d995837f4fa7370478e1a178b93ad2b4a0b455759f4d9a1607
|
7
|
+
data.tar.gz: 5356afb1a2a500fa6a25bf1e96201635b97e66ca0c32ad6f22d0208737cf5b2508f694ae4d6e2c59db3195cc790d094753c524915f75c36891e5b42145d41163
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -61,6 +61,8 @@ MongoStore::Session.where('updated_at' => { '$gt' => 2.days.ago })
|
|
61
61
|
|
62
62
|
## Changelog
|
63
63
|
|
64
|
+
5.0.1 suppresses a warning from Mongoid 4 when setting the _id field type to String.
|
65
|
+
|
64
66
|
5.0.0 introduces Rails 4.0 and 4.1 support and Mongoid 4 support alongside the existing Rails 3.1, 3.2, and Mongoid 3 support. Ruby 1.8.7 support is dropped. The database is no longer set automatically for the MongoStore when MongoMapper or Mongoid is present. You have to set the database manually whenever you choose to use the vanilla MongoStore.
|
65
67
|
|
66
68
|
The last version to support Ruby 1.8.7 is [version 4.1.1](https://rubygems.org/gems/mongo_session_store-rails3/versions/4.1.1).
|
@@ -12,7 +12,11 @@ module ActionDispatch
|
|
12
12
|
|
13
13
|
store_in :collection => MongoSessionStore.collection_name
|
14
14
|
|
15
|
-
|
15
|
+
if Mongoid::Fields::Validators::Macro::OPTIONS.include? :overwrite
|
16
|
+
field :_id, :type => String, :overwrite => true
|
17
|
+
else
|
18
|
+
field :_id, :type => String
|
19
|
+
end
|
16
20
|
field :data, :type => BINARY_CLASS, :default => -> { marshaled_binary({}) }
|
17
21
|
attr_accessible :_id, :data if respond_to?(:attr_accessible)
|
18
22
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_session_store-rails3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Hempel
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-03-
|
14
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: actionpack
|