lib/thingfish/datastore/filesystem.rb in thingfish-datastore-filesystem-0.2.0 vs lib/thingfish/datastore/filesystem.rb in thingfish-datastore-filesystem-0.2.1

- old
+ new

@@ -14,14 +14,14 @@ Loggability, Strelka::MethodUtilities, Thingfish::Normalization # Package version - VERSION = '0.2.0' + VERSION = '0.2.1' # Version control revision - REVISION = %q$Revision: cb4954dd5c6e $ + REVISION = %q$Revision: 6fd20473c7d7 $ # The number of subdirectories to use in the hashed directory tree. Must be 2, 4, or 8 HASH_DEPTH = 4 # Loggability API -- log to the thingfish logger @@ -31,22 +31,19 @@ configurability( 'thingfish.filesystem_datastore' ) do ## # The directory to use for the datastore setting :root_path, default: Pathname( Dir.tmpdir ) + 'thingfish' do |val| - val = Pathname( val ) - raise ArgumentError, "root path %s does not exist" % [ val ] unless - val.exist? - val + Pathname( val ) if val end - end ### Create a new Filesystem Datastore. def initialize super @root_path = self.class.root_path + raise ArgumentError, "root path %s does not exist" % [ @root_path ] unless @root_path.exist? end ###### public