Skip to content

[0.6.0] - 2019-05-31

Latest
Compare
Choose a tag to compare
@acant acant released this 31 May 16:22
· 25 commits to master since this release

Added

  • SugarUtils::File.append, which is explicitly for appending to a file. It will
    also create a new file if it does not yet exist
  • SugarUtils::scrub_encoding, which is used for cleaning badly encoded
    characters out of a string
  • SugarUtils::File.change_access, a wrapper for changing ownership and
    permissions of a file
  • SugarUtils::File.atomic_write, to atomically write a file

Removed

  • append support in SugarUtils::File.write (could have been specified by { mode: 'a })

Changed

  • :mode and :perm are now aliases for setting permissions on files in all the
    related methods (i.e., .write, .write_json, .touch, .append)
  • convert SugarUtils::File.write_json to use .atomic_write