chaos v0.0.3
Chaos
Install | Usage | Development | Contributing | Shards.info | Docs on CrystalDoc
Installation
-
Add the dependency to your
shard.yml
:dependencies: chaos: github: gabrioliv/chaos
-
Run
shards install
Usage
require "chaos"
chaos = Chaos::Chaos.new
chaos.probability = 0.8 # chaos probability -> 80%
puts chaos.chaos(true) # => random value of type Bool based on the probability
Development
- Clone the repository
git clone git@github.com:GabriOliv/chaos.git
- Enter the project folder
cd chaos
- Run the tests
crystal spec -v --fail-fast
- Make your changes
Contributing
- Fork the repository: Fork Chaos
- Create your feature branch:
git checkout -b my-new-feature
- Make your changes.
- Follow these quality steps to ensure consistency:
- Update and run tests:
crystal spec -v --fail-fast
- Format your code:
crystal tool format
- Update the documentation:
crystal docs
- Update and run tests:
- Commit your changes:
git commit -am 'Add some feature'
- Push the branch:
git push origin my-new-feature
- Create a new Pull Request.
Repository
chaos
Owner
Statistic
- 5
- 0
- 0
- 0
- 0
- about 11 hours ago
- November 19, 2024
License
MIT License
Links
Synced at
Tue, 26 Nov 2024 11:26:32 GMT
Languages