Skip to content

Releases: tadp-utn-frba/TADB

TADB - 0.3.8

27 Apr 12:47
0d078b2
Compare
Choose a tag to compare

[0.3.8] - 2023-04-27 Changes here

Fixed

  • Support for Ruby 3.x. Changed deprecated and unsupported functions.

TADB - 0.3.7

24 Apr 14:30
Compare
Choose a tag to compare

[0.3.7] - 2021-04-24 Changes here

Added

  • Updated README and CODE_OF_CONDUCT files.
  • Adding this CHANGELOG

Fixed

  • Added a flag to clear the file present if a file has contents for previous runs.

Release 0.3.6

23 Apr 16:52
Compare
Choose a tag to compare

Important Changes

Forcing file sync on table.rb

before this release, the TADB::Table class wasn't enforcing sync of the file, thus not reflecting the state of the file contents from what's present on the table in memory. When the sync is set as off by default, the file is being actually buffered, and not reflecting the changes during a short time frame. So for eg.

log_path = '/tmp/some_log.log'

log_file = File.open(log_path, 'a+')

log_file.puts('Some log message')
File.read(log_path) #=> ""

log_file.puts('Some other message')
File.read(log_path) #=> ""

log_file.close # Which is also called by the garbage collector once the file is safe to close
File.read(log_path) #=> "Some log message\nSome other message\n"

will cause some issues. By setting the file.sync=true before doing any operation, will disable the buffering and flush the contents as soon they're received by the puts call.

log_path = '/tmp/some_log.log'

log_file = File.open(log_path, 'a+')
log_file.sync = true

log_file.puts('Some log message')
File.read(log_path) #=> "Some log message\n"

log_file.puts('Some other message')
File.read(log_path) #=> "Some log message\nSome other message\n"

0.3.5

28 Mar 23:00
Compare
Choose a tag to compare
  • Bump to Ruby 2.7.2
  • Using github workflow