lib/pstore.rb in pstore-0.1.3 vs lib/pstore.rb in pstore-0.1.4

- old
+ new

@@ -324,11 +324,11 @@ # puts wiki[key] # end # end # class PStore - VERSION = "0.1.3" + VERSION = "0.1.4" RDWR_ACCESS = {mode: IO::RDWR | IO::CREAT | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze RD_ACCESS = {mode: IO::RDONLY | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze WR_ACCESS = {mode: IO::WRONLY | IO::CREAT | IO::TRUNC | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze @@ -435,10 +435,10 @@ # Raises an exception if called outside a transaction block. def fetch(key, default=PStore::Error) in_transaction unless @table.key? key if default == PStore::Error - raise PStore::Error, format("undefined key `%s'", key) + raise PStore::Error, format("undefined key '%s'", key) else return default end end @table[key]