ifrit

Crystal lib with different useful stuff
0.1.0 released

Ifrit Build Status Latest Release

Set of useful classes, patches and hacks. Some of them are not "good" enough so be ready to make a deal with Ifrit.

Installation

Add this to your application's shard.yml:

dependencies:
  ifrit:
    github: imdrasil/ifrit

Usage

This lib provides modular approach so you should specify what exactly you want to require:

require "ifrit/core" # for basic methods
require "ifrit/inheritable_json"
require "ifrit" # to load everything

Pacts

Core

require "ifrit/core"

Includes next methods:

  • #blank? - behaves same way as rails one;
  • #present? - opposite to #blank?;
  • String#to_bool - parses string for boolean value interpretation

Converter

require "ifrit/converter"

Symbol Table

require "ifrit/symbol_table"

Inheritable JSON

require "ifrit/inheritable_json"

Hash with indifferent access

require "ifrit/hash_with_indifferent_access"

Development

Before start working on any new feature please create an issue to discuss it.

Contributing

  1. Fork it ( https://github.com/imdrasil/ifrit/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 a new Pull Request

Contributors

  • imdrasil Roman Kalnytskyi - creator, maintainer
ifrit:
  github: imdrasil/ifrit
  version: ~> 0.1.0
License MIT
Crystal 0.23.0

Authors

Dependencies 0

Development Dependencies 0

Dependents 1

Last synced .
search fire star recently