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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7de78c43f52eb7b9b3a78ea228d424635e795ad7
4
- data.tar.gz: 81515e3a6486453ed856c6404e1cf74f6ebd472f
3
+ metadata.gz: 978d92ad561316e9b239b0fad9d24b40f60e1177
4
+ data.tar.gz: c7544b18a3b886640cf398e8ce972eaa1634b586
5
5
  SHA512:
6
- metadata.gz: f2fac520526825612bb2bf5988f781c51b673fbb6958c2590684e917e6d6c075b128181e9a703a9ad34f987415707e4cb29386ea436cb29ab83c3548560f7d77
7
- data.tar.gz: 6344f140540e65955b776262e5d8c488cfaea2880fe72d05f6ab1d7fb2d3c782a72a50ca40ef42b0b49226ad80a4ccf03fa2d78c39f238199503f95818e474ed
6
+ metadata.gz: 270987e7655190e6c605ffe5a72554faf38a1139e8033c95dfcff15719ada252b93ba3e2cacf37d995837f4fa7370478e1a178b93ad2b4a0b455759f4d9a1607
7
+ data.tar.gz: 5356afb1a2a500fa6a25bf1e96201635b97e66ca0c32ad6f22d0208737cf5b2508f694ae4d6e2c59db3195cc790d094753c524915f75c36891e5b42145d41163
@@ -7,10 +7,11 @@ rvm:
7
7
  - ruby-head
8
8
  - jruby-19mode
9
9
  - jruby-head
10
+ - rbx
10
11
  matrix:
11
12
  allow_failures:
12
13
  - rvm: jruby-head
13
14
  - rvm: ruby-head
14
15
  - rvm: rbx
15
16
  services:
16
- - mongodb
17
+ - mongodb
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
- field :_id, :type => String
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
 
@@ -1,3 +1,3 @@
1
1
  module MongoSessionStore
2
- VERSION = "5.0.0"
2
+ VERSION = "5.0.1"
3
3
  end
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.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-01 00:00:00.000000000 Z
14
+ date: 2014-03-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: actionpack