vuderacha-activekv 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/activekv/base.rb +3 -1
- metadata +2 -2
data/lib/activekv/base.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'activesupport'
|
2
|
+
|
1
3
|
module ActiveKV
|
2
4
|
class Base
|
3
5
|
# Default the key property and configured state to empty states
|
@@ -115,7 +117,7 @@ module ActiveKV
|
|
115
117
|
raise NilKeyError if send(self.class.key).nil?
|
116
118
|
|
117
119
|
# Transform ourselves to json, and get our key
|
118
|
-
new_val =
|
120
|
+
new_val = ActiveSupport::JSON.encode(self)
|
119
121
|
key_val = self.class.create_key send(self.class.key)
|
120
122
|
|
121
123
|
# Retrieve the appropriate store, and save
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vuderacha-activekv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Jones
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-25 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|