Lotus::Utils
Ruby core extentions and class utilities for Lotus
Status
Contact
- Home page: http://lotusrb.org
- Mailing List: http://lotusrb.org/mailing-list
- API Doc: http://rdoc.info/gems/lotus-utils
- Bugs/Issues: https://github.com/lotus/utils/issues
- Support: http://stackoverflow.com/questions/tagged/lotus-ruby
- Chat: https://gitter.im/lotus/chat
Rubies
Lotus::Utils supports Ruby (MRI) 2+, JRuby 9k+ & Rubinius 2.3+
Installation
Add this line to your application's Gemfile:
gem 'lotus-utils'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lotus-utils
Usage
Lotus::Utils is designed to enhance Ruby's code and stdlib. By default this gem doesn't load any code, you must require what you need.
Features
Lotus::Interactor
Standardized Service Object with small interface and rich returning result. [API doc]
Lotus::Logger
Enhanced version of Ruby's Logger
. [API doc]
Lotus::Utils::Attributes
Set of attributes with indifferent access. [API doc]
Lotus::Utils::BasicObject
Enhanced version of Ruby's BasicObject
. [API doc]
Lotus::Utils::Callbacks
Callbacks to decorate methods with before
and after
logic. It supports polymorphic callbacks (methods and procs). [API doc]
Lotus::Utils::Class
Load classes from strings. It also supports namespaces. [API doc]
Lotus::Utils::ClassAttribute
Inheritable class attributes. [API doc]
Lotus::Utils::Deprecation
Deprecate Lotus features. [API doc]
Lotus::Utils::Duplicable
Safe #dup
logic for Ruby objects. [API doc]
Lotus::Utils::Escape
Safe and fast escape for URLs, HTML content and attributes. Based on OWASP/ESAPI code. [API doc]
Lotus::Utils::Hash
Enhanced version of Ruby's Hash
. [API doc]
Lotus::Utils::IO
Silence Ruby warnings. [API doc]
Lotus::Utils::Inflector
Complete and customizable english inflections (pluralization and singularization). [API doc]
Lotus::Utils::Kernel
Type coercions for most common Ruby types. [API doc]
Lotus::Utils::LoadPaths
Manage directories where to find Ruby source code or web static assets. [API doc]
Lotus::Utils::PathPrefix
Safe logic to manage relative URLs. [API doc]
Lotus::Utils::String
Enhanced version of Ruby's String
. [API doc]
Versioning
Lotus::Utils uses Semantic Versioning 2.0.0
Contributing
- Fork it ( https://github.com/lotus/utils/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright
Copyright © 2014-2016 Luca Guidi – Released under MIT License