mongo_session_store-rails4 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: b23596366e5fd0f968289a0da62e33527f2f5426
|
4
|
+
data.tar.gz: 446f1a449dbc6be05187d5931fc2168ec2344d1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0a94d45177d3a05ab3ef2e5e2da389d9a1101dca8ca34e3bf4a12b81dbf2cc59c18ba640db432eca6a76e81e42adf8fdfa5e311ec371605dec9ee1020b51bee
|
7
|
+
data.tar.gz: e6376da7c7339f3ef327205fefe46854e12839885a508cfdbeca2c0889795d2cc687436bd56279d505f958029947d63235ee29f2419beda4e7c6df70802e1f67
|
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-rails4
|
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
|