mongoid_store 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .DS_Store
2
2
  Gemfile.lock
3
+ pkg
data/README.rdoc CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ActiveSupport Mongoid 3 Cache store, loosly based on Bin by John Nunemaker
4
4
 
5
+ == Complex data types
6
+
7
+ MongoidStore tries to store the values you put in directly into MongoDB using Moped. When experiencing trouble you may have to do your own serialization and deserialization.
8
+
5
9
  == Supports
6
10
 
7
11
  * Mongoid 3+
@@ -29,7 +29,7 @@ module ActiveSupport
29
29
  protected
30
30
 
31
31
  def write_entry(key, entry, options)
32
- collection.find(_id: key).upsert(_id: key, value: entry.raw_value, expires_at: entry.expires_at.to_i, created_at: Time.now.utc.to_i)
32
+ collection.find(_id: key).upsert(_id: key, value: entry.value, expires_at: entry.expires_at.to_i, created_at: Time.now.utc.to_i)
33
33
  end
34
34
 
35
35
  def read_entry(key, options = nil)
@@ -1,3 +1,3 @@
1
1
  module MongoidStore
2
- Version = '0.1.0'
2
+ Version = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: