sugar_utils

Gem Version Build Status Code Climate Test Coverage Inline docs License

Utility methods extracted from SugarCRM Ruby projects.

These methods are included:

  • SugarUtils.ensure_boolean
  • SugarUtils.ensure_integer
  • SugarUtils.scrub_encoding
  • SugarUtils::File.flock_shared
  • SugarUtils::File.flock_exclusive
  • SugarUtils::File.change_access
  • SugarUtils::File.read
  • SugarUtils::File.write
  • SugarUtils::File.atomic_write
  • SugarUtils::File.read_json
  • SugarUtils::File.write_json
  • SugarUtils::File.append

These methods will probably be included in the future:

  • sizeof_dir
  • find_files
  • find_file!
  • gzip
  • gunzip
  • tarball
  • untarball
  • tarball_list
  • encrypt
  • http_get_file
  • timeout_retry

Installation

Add this line to your application’s Gemfile:

“by gem ‘sugar_utils’

And then execute:

“sh $ bundle install

Or install it yourself as:

“sh $ gem install sugar_utils

Contributing

See CONTRIBUTING for how you can contribute changes back into this project.

Contributors

Acknowledgements

Copyright 2019 SugarCRM Inc., released under the Apache2 License.