Releases: fnordfish/gdbmish
Releases · fnordfish/gdbmish
v0.4.0
- Fix
VERSION
constant when build as a dependency
- Internal refactoring
v0.3.0
New Ascii Dump Reader (#3)
reader = Gdbmish::Read::Ascii.new(File.open("my.dump"))
# get meta data
reader.meta.file # => "my.db"
# either iterate over data:
reader.data do |key, value|
puts "#{key.inspect} => #{value.inspect}"
end
# or use the Iterator to transform into Hash
reader.data.to_h
v0.2.0
New "consumer-mode" (#2):
fileoptions = {file: "my.db", uid: "1000", user: "ziggy", gid: "1000", group: "staff", mode: 0o600}
File.open("my.dump", "w") do |file|
Gdbmish::Dump::Ascii.new(**fileoptions).dump(io) do |appender|
MyDataSource.each do |key, value|
appender << {key.to_s, value.to_s}
end
end
end
v0.1.0
Initial release.
Dumps simple Hash
and NamedTuple
into ASCII format