lib/keystorage/manager.rb in keystorage-0.4.11 vs lib/keystorage/manager.rb in keystorage-0.4.13
- old
+ new
@@ -65,10 +65,10 @@
def set(group,key,value)
data=all
data = Hash.new unless data
data[group] = Hash.new unless data.has_key?(group)
- data[group][key] = encode(value)
+ data[group][key.to_s] = encode(value.to_s)
write(data)
end
def write(data)
File.open(@file,'w',0600) do |f|