{"id":21166912,"url":"https://github.com/gabrioliv/chaos","last_synced_at":"2026-03-13T12:32:01.024Z","repository":{"id":263535146,"uuid":"890686002","full_name":"GabriOliv/chaos","owner":"GabriOliv","description":"crystal shard to add some chaos to your code","archived":false,"fork":false,"pushed_at":"2024-12-15T12:49:13.000Z","size":45,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T05:34:54.651Z","etag":null,"topics":["chaos","crystal","shards"],"latest_commit_sha":null,"homepage":"https://shards.info/github/GabriOliv/chaos/readme","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GabriOliv.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-19T02:10:40.000Z","updated_at":"2025-03-05T16:06:39.000Z","dependencies_parsed_at":"2024-12-15T12:33:05.555Z","dependency_job_id":null,"html_url":"https://github.com/GabriOliv/chaos","commit_stats":null,"previous_names":["gabrioliv/chaos"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabriOliv%2Fchaos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabriOliv%2Fchaos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabriOliv%2Fchaos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabriOliv%2Fchaos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GabriOliv","download_url":"https://codeload.github.com/GabriOliv/chaos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248729055,"owners_count":21152339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chaos","crystal","shards"],"created_at":"2024-11-20T14:58:34.825Z","updated_at":"2026-03-13T12:32:00.977Z","avatar_url":"https://github.com/GabriOliv.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"![chaos](https://repository-images.githubusercontent.com/890686002/646de726-363a-408a-af43-d5e1612b6b5c)\n\n# Chaos\n\n[![Crystal Version](https://img.shields.io/badge/Crystal-1.14.0-black?logo=crystal\u0026style=flat-square)](https://crystal-lang.org/)\n[![GitHub Release](https://img.shields.io/github/v/release/gabrioliv/chaos?display_name=release\u0026logo=crystal\u0026color=white\u0026style=flat-square)](https://github.com/GabriOliv/chaos/releases)\n[![CI Tests Workflow](https://img.shields.io/github/actions/workflow/status/gabrioliv/chaos/ci.yml?logo=github\u0026style=flat-square)](https://github.com/GabriOliv/chaos/actions)\n\n[Install](https://github.com/GabriOliv/chaos#installation) |\n[Usage](https://github.com/GabriOliv/chaos#usage) |\n[Development](https://github.com/GabriOliv/chaos#development) |\n[Contributing](https://github.com/GabriOliv/chaos#contributing) |\n[Shards.info](https://shards.info/github/GabriOliv/chaos) | \n[Docs on CrystalDoc](https://crystaldoc.info/github/GabriOliv/chaos/)\n\n---\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     chaos:\n       github: gabrioliv/chaos\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"chaos\"\n\nchaos = Chaos::Chaos.new\nchaos.probability = 0.8 # chaos probability -\u003e 80%\nputs chaos.chaos(true) # =\u003e random value of type Bool based on the probability\n```\n\n## Development\n\n1. Clone the repository\n\t```\n\tgit clone git@github.com:GabriOliv/chaos.git\n\t```\n2. Enter the project folder\n\t```\n\tcd chaos\n\t```\n3. Run the tests\n\t```\n\tcrystal spec -v --fail-fast\n\t```\n4. Make your changes\n\n## Contributing\n\n1. Fork the repository: [Fork Chaos](https://github.com/gabrioliv/chaos/fork)\n2. Create your feature branch:  \n   ```bash\n   git checkout -b my-new-feature\n   ```\n3. Make your changes.\n4. Follow these quality steps to ensure consistency:\n   - Update and run tests:  \n     ```bash\n     crystal spec -v --fail-fast\n     ```\n   - Format your code:  \n     ```bash\n     crystal tool format\n     ```\n   - Update the documentation:  \n     ```bash\n     crystal docs\n     ```\n5. Commit your changes:  \n   ```bash\n   git commit -am 'Add some feature'\n   ```\n6. Push the branch:  \n   ```bash\n   git push origin my-new-feature\n   ```\n7. Create a new Pull Request.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrioliv%2Fchaos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrioliv%2Fchaos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrioliv%2Fchaos/lists"}