mongo_session_store-rails4 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: 4c28f6d382cdc685cb38f306d34f833a24f102b9
4
- data.tar.gz: 196653fe061b28b202811029b1b437e732004907
3
+ metadata.gz: b23596366e5fd0f968289a0da62e33527f2f5426
4
+ data.tar.gz: 446f1a449dbc6be05187d5931fc2168ec2344d1d
5
5
  SHA512:
6
- metadata.gz: 22ec2aa41ff57ca129c9a294a8d55604e64815cdd5d4c35b4cb467d214301cf038818c6f98e993e9490083af028bbe8f27299da792170f1f95ece1ce33a56553
7
- data.tar.gz: 6112c75800c87752306810ac268c28d378b534c1e020dedb2f7afb43d9ea6ec1314a0ce9d22c3b507af16f5440da6a1421c1759eaaeba480c405b6c9722477c2
6
+ metadata.gz: c0a94d45177d3a05ab3ef2e5e2da389d9a1101dca8ca34e3bf4a12b81dbf2cc59c18ba640db432eca6a76e81e42adf8fdfa5e311ec371605dec9ee1020b51bee
7
+ data.tar.gz: e6376da7c7339f3ef327205fefe46854e12839885a508cfdbeca2c0889795d2cc687436bd56279d505f958029947d63235ee29f2419beda4e7c6df70802e1f67
data/.travis.yml CHANGED
@@ -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-rails4
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