sugar_utils v0.6.0 Release Notes
Release Date: 2019-05-31 // over 5 years ago-
➕ 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
- SugarUtils::File.append, which is explicitly for appending to a file. It will