sasin-cr
Sasin (Crystal version)
This is a Crystal shard that implements a converter to an universal sasin unit.
Installation
Library
Add to shard.yml
dependencies:
dependencies:
sasin:
gitlab: Phitherek_/sasin-cr
version: ~> 0.1.0
Command line converter
shards build --production
Usage
Converter class
require "sasin"
Sasin::Converter.convert(input) # Returns value in sasin as Float64, input can be String, Int, Float or BigDecimal
Converter app
bin/sasin
- the app will ask for input and output value in sasinbin/sasin INPUT
- the app will output value in sasin
Development
- Run
shards install
- Add changes
- Run
crystal spec
- Run
bin/ameba
Contributing
- Fork it (https://gitlab.com/Phitherek_/sasin-cr/-/forks/new)
- 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 Merge Request
Contributors
- Phitherek_ - creator and maintainer
Disclaimer
Yes, this shard is kind of a joke. It refers to a Polish minister of assets Jacek Sasin that spent a 70 million of Polish zloty on an election that didn't finally happen. It was also kind of inspired by a Python package of the same name.
Repository
sasin-cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- about 4 years ago
- October 30, 2020
License
MIT License
Links
Synced at
Mon, 18 Nov 2024 00:33:42 GMT
Languages