Project

taipu

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Collections of types for Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11.2
~> 10.5.0
~> 0.36.0
~> 0.11.1
~> 3.0.5
~> 0.8.7.6

Runtime

~> 1.0.1
 Project Readme

Taipu

Build Status Gem Version Inline docs Documentation

Collections of types for Ruby.

Contact

Rubies

Installation

Add this line to your application's Gemfile:

gem 'taipu'

And then execute:

$ bundle

Or install it yourself as:

$ gem install taipu

Usage

type = Taipu::Number.new(min: 42)

type.valid?(100)      # => true
type.valid?(4)        # => false
type.valid?('foobar') # => false

type.to_h             # => { min: 42, max: nil, type: :number }

Security

As a basic form of security Taipu provides a set of SHA512 checksums for every Gem release. These checksums can be found in the checksum/ directory. Although these checksums do not prevent malicious users from tampering with a built Gem they can be used for basic integrity verification purposes.

The checksum of a file can be checked using the sha512sum command. For example:

$ sha512sum pkg/taipu-0.0.1.gem
813cfbcff03d6022a001e4b108d706d17c705afffaeb478f082355533acb324b1983d88a80a71b31bb9de74931073cab07b329549ac2c48469733a4edb187846  pkg/taipu-0.0.1.gem

Versioning

Taipu follows Semantic Versioning 2.0.

Contributing

  1. Fork it
  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

License

See LICENSE.md file.