Skip to content

hanami/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

91b208f · Feb 21, 2025
Dec 31, 2024
Feb 21, 2025
Jan 13, 2022
Dec 31, 2024
Dec 16, 2016
Jul 3, 2018
Dec 31, 2022
Apr 10, 2017
Jun 14, 2021
Nov 15, 2022
Nov 5, 2024
Dec 31, 2022
Jan 19, 2016
Nov 15, 2022
Jun 29, 2023
Jul 3, 2024
Sep 18, 2020
Dec 31, 2024

Repository files navigation

Hanami::Utils

Ruby core extensions and class utilities for Hanami

Status

Gem Version CI Test Coverage Depfu

Contact

Installation

Hanami::Utils supports Ruby (MRI) 3.1+.

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

Copyright © 2014–2024 Hanami Team – Released under MIT License