Taipu
Collections of types for Ruby.
Contact
- Home page: https://github.com/cyril/taipu.rb
- Bugs/issues: https://github.com/cyril/taipu.rb/issues
- Support: https://stackoverflow.com/questions/tagged/taipu
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
See LICENSE.md
file.