lib/slosilo/keystore.rb in slosilo-0.4.1 vs lib/slosilo/keystore.rb in slosilo-1.0.0

- old
+ new

@@ -5,10 +5,12 @@ def adapter Slosilo::adapter or raise "No Slosilo adapter is configured or available" end def put id, key - adapter.put_key id.to_s, key + id = id.to_s + fail ArgumentError, "id can't be empty" if id.empty? + adapter.put_key id, key end def get opts id, fingerprint = opts.is_a?(Hash) ? [nil, opts[:fingerprint]] : [opts, nil] if id