Default serializer changed from YAML to Marshal (to avoid UTF-8 errors on BackTrack)
Spec for UTF-8 updated
This commit is contained in:
Erwan
2012-09-12 16:49:09 +02:00
parent 7f92fa0c1b
commit 397ee2d2be
3 changed files with 31 additions and 25 deletions

View File

@@ -13,7 +13,7 @@ class CacheFileStore
# The serializer must have the 2 methods .load and .dump (Marshal and YAML have them)
# YAML is Human Readable, contrary to Marshal which store in a binary format
# Marshal does not need any "require"
def initialize(storage_path, serializer = YAML)
def initialize(storage_path, serializer = Marshal)
@storage_path = File.expand_path(storage_path)
@serializer = serializer