Install | Usage | Development | Contributing | Shards.info | Docs on CrystalDoc
-
Add the dependency to your
shard.yml
:dependencies: chaos: github: gabrioliv/chaos
-
Run
shards install
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
- Clone the repository
git clone [email protected]:GabriOliv/chaos.git
- Enter the project folder
cd chaos
- Run the tests
crystal spec -v --fail-fast
- Make your changes
- 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.