Ruby core extentions and class utilities for Hanami https://github.com/hanami/utils
Go to file
Luca Guidi 2a44b7b1e7
Temporary disable CodeCov upload
2022-01-13 23:44:25 +01:00
.github/workflows Ruby 3.0+ 2022-01-13 23:27:51 +01:00
lib Ruby 3.0+ 2022-01-13 23:27:51 +01:00
script Temporary disable CodeCov upload 2022-01-13 23:44:25 +01:00
spec Ruby 3.0+ 2022-01-13 23:27:51 +01:00
.gitignore Update rubocop inheriting from hanami repositor 2016-12-16 17:15:35 +01:00
.jrubyrc Update settings for code quality services (#285) 2018-07-03 11:32:52 +02:00
.rspec Migrate from Minitest to RSpec (#200) 2017-04-10 15:50:41 +02:00
.rubocop.yml Change references from `master` to `main` 2021-06-14 14:54:26 +02:00
.yardopts [ci skip] yardopts 2014-06-13 15:08:23 +02:00
CHANGELOG.md Update CHANGELOG for 2.0.0.alpha3 2021-11-09 23:33:44 +11:00
CONTRIBUTING.md Lotus => Hanami 2016-01-19 18:40:46 +01:00
Gemfile Rubocop style unification between Hanami & dry-rb (1.3.x) (#382) 2020-09-18 11:38:37 +02:00
LICENSE.md Update copyright to 2017 [ci skip] 2017-03-06 23:49:40 +01:00
README.md Change references from `unstable` to `main` 2021-06-14 14:55:32 +02:00
Rakefile Rubocop style unification between Hanami & dry-rb (1.3.x) (#382) 2020-09-18 11:38:37 +02:00
hanami-utils.gemspec Rubocop ~> 1.0 2022-01-13 23:27:20 +01:00

README.md

Hanami::Utils

Ruby core extensions and class utilities for Hanami

Status

Gem Version CI Test Coverage Depfu Inline Docs

Version

This branch contains the code for hanami-utils 2.x.

Contact

Rubies

Hanami::Utils supports Ruby (MRI) 2.6+

Installation

Add this line to your application's Gemfile:

gem 'hanami-utils'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hanami-utils

Usage

Hanami::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

Hanami::Interactor

Standardized Service Object with small interface and rich returning result. [API doc]

Hanami::Logger

Enhanced version of Ruby's Logger. [API doc]

Hanami::Utils::BasicObject

Enhanced version of Ruby's BasicObject. [API doc]

Hanami::Utils::Blank

Checks for blank. [API doc]

Hanami::Utils::Callbacks

Callbacks to decorate methods with before and after logic. It supports polymorphic callbacks (methods and procs). [API doc]

Hanami::Utils::Class

Load classes from strings. It also supports namespaces. [API doc]

Hanami::Utils::ClassAttribute

Inheritable class attributes. [API doc]

Hanami::Utils::Deprecation

Deprecate Hanami features. [API doc]

Hanami::Utils::Escape

Safe and fast escape for URLs, HTML content and attributes. Based on OWASP/ESAPI code. [API doc]

Hanami::Utils::FileList

Recursive, cross-platform ordered list of files. [API doc]

Hanami::Utils::Files

File utilities to manipulate files and directories. [API doc]

Hanami::Utils::Hash

Hash transformations. [API doc]

Hanami::Utils::IO

Silence Ruby warnings. [API doc]

Hanami::Utils::Json

JSON engine with swappable backends (via optional multi_json gem) or powered by Ruby's json (default). [API doc]

Hanami::Utils::Kernel

Type coercions for most common Ruby types. [API doc]

Hanami::Utils::LoadPaths

Manage directories where to find Ruby source code or web static assets. [API doc]

Hanami::Utils::PathPrefix

Safe logic to manage relative URLs. [API doc]

Hanami::Utils::QueryString

URI query string transformation [API doc]

Hanami::Utils::ShellColor

Shell colorizer [API doc]

Hanami::Utils::String

Enhanced version of Ruby's String. [API doc]

Versioning

Hanami::Utils uses Semantic Versioning 2.0.0

Contributing

  1. Fork it ( https://github.com/hanami/utils/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright © 2014-2021 Luca Guidi Released under MIT License

This project was formerly known as Lotus (lotus-utils).