dkastner-moneta 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,8 @@ rescue LoadError
4
4
  puts "You need the activerecord gem in order to use the ActiveRecord moneta store"
5
5
  end
6
6
 
7
+ require 'yaml'
8
+
7
9
  module Moneta
8
10
  module Adapters
9
11
  class ActiveRecord
@@ -57,6 +59,15 @@ module Moneta
57
59
  def clear
58
60
  Store.delete_all
59
61
  end
62
+
63
+ private
64
+
65
+ def serialize(value)
66
+ value.to_yaml
67
+ end
68
+ def deserialize(value)
69
+ YAML::load value
70
+ end
60
71
  end
61
72
  end
62
73
  end
@@ -1,3 +1,3 @@
1
1
  module Moneta
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 2
9
- version: 1.0.2
8
+ - 3
9
+ version: 1.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Yehuda Katz
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
- hash: -2240309769819464001
139
+ hash: -2374182191291410286
140
140
  segments:
141
141
  - 0
142
142
  version: "0"
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  requirements:
146
146
  - - ">="
147
147
  - !ruby/object:Gem::Version
148
- hash: -2240309769819464001
148
+ hash: -2374182191291410286
149
149
  segments:
150
150
  - 0
151
151
  version: "0"