Skip to content

Releases: fnordfish/gdbmish

v0.4.0

23 May 14:04
2bd0cbf
Compare
Choose a tag to compare
  • Fix VERSION constant when build as a dependency
  • Internal refactoring

v0.3.0

08 Nov 17:40
Compare
Choose a tag to compare

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

15 Jun 12:51
Compare
Choose a tag to compare

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

14 Jun 10:52
Compare
Choose a tag to compare

Initial release.
Dumps simple Hash and NamedTuple into ASCII format