github.com/nuclearsalmon/minerals

A collection of utilities and patches that extend the functionality of crystal

1 stars
0 dependents
License: MIT

Nothing has been indexed for 2.3.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  minerals:
    github: nuclearsalmon/minerals
    version: ~> 2.3.1

Then run:

shards install

shard.yml

No shard.yml has been indexed for 2.3.1. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

Minerals

A collection of utilities and patches that extend the functionality of crystal.

Highly volatile, depend on a specific version!

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      minerals:
        github: nuclearsalmon/minerals
  2. Run shards install

Usage

Require the relevant packages. The base minerals package is required, and it automatically patches a minimal selection of utilities into the top level scope, but it does not touch any types.

require "minerals"
require "minerals/lowlevel/static_array"

Then, either use as modules:

Minerals::StaticArray.from_s("hello", 5)

...or patch it into crystal:

patch Minerals::StaticArray
StaticArray.from_s("hello", 5)