Description
Utility methods extracted from SugarCRM Ruby projects.
sugar_utils alternatives and similar gems
Based on the "Core Extensions" category.
Alternatively, view sugar_utils alternatives based on common mentions on social networks and blogs.
-
Hashie
Hashie is a collection of classes and mixins that make Ruby hashes more powerful. -
Hamster
Efficient, Immutable, Thread-Safe Collection classes for Ruby -
Addressable
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. It is flexible, offers heuristic parsing, and additionally provides extensive support for IRIs and URI templates. -
fast_blank
fast_blank is a simple C extension which provides a fast implementation of Active Support's String#blank? method. -
regexp-examples
Generate strings that match a given regular expression -
Hanami::Utils
Ruby core extentions and class utilities for Hanami -
FastAttributes
FastAttributes adds attributes with their types to the class -
Finishing Moves
Small, focused, awesome methods added to core Ruby classes. Home of the endlessly useful nil_chain. -
NamedStruct
A drop-in replacement for Ruby's Struct that supports keyword arguments -
ActiveDelegate
Delegate ActiveRecord model attributes and associations. -
ArrayIncludeMethods
Array#include_all?, Array#include_any?, Array#include_array?, Array#array_index, Array#array_diff_indices, Array#array_intersection_indices, Array#counts, and Array#duplicates operations missing from basic Ruby Array API -
ToCollection
Treat an array of objects and a singular object uniformly as a collection of objects. Especially useful in processing REST Web Service API JSON responses in a functional approach. -
Lean::Attributes
define typed attributes on arbitrary Ruby classes -
ActiveSupport
A collection of utility classes and standard library extensions.
PopRuby: Clothing and Accessories for Ruby Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of sugar_utils or a related project?
README
sugar_utils
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
Installation
Add this line to your application's Gemfile:
gem 'sugar_utils'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install sugar_utils
Roadmap
These methods might be added in the future:
- sizeof_dir
- find_files
- find_file!
- gzip
- gunzip
- tarball
- untarball
- tarball_list
- encrypt
- http_get_file
- timeout_retry
Elsewhere on the web
Links to other places on the web where this projects exists:
Contributing
See [CONTRIBUTING](CONTRIBUTING.md) for how you can contribute changes back into this project.
Contributors
Acknowledgements
Copyright 2019 SugarCRM Inc., released under the Apache2 License.
*Note that all licence references and agreements mentioned in the sugar_utils README section above
are relevant to that project's source code only.