{"id":15957253,"url":"https://github.com/mamantoha/shards_spec","last_synced_at":"2025-05-07T16:03:16.467Z","repository":{"id":66224773,"uuid":"333837410","full_name":"mamantoha/shards_spec","owner":"mamantoha","description":"A shard.yml parser for the Crystal language","archived":false,"fork":false,"pushed_at":"2023-08-21T08:43:26.000Z","size":23,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T11:41:20.456Z","etag":null,"topics":["crystal","hacktoberfest","parser","shards","yaml"],"latest_commit_sha":null,"homepage":"","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/mamantoha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2021-01-28T17:42:54.000Z","updated_at":"2024-10-31T01:25:40.000Z","dependencies_parsed_at":"2024-10-07T13:41:16.825Z","dependency_job_id":"2d9dec26-61cd-435b-a7d2-e33d91a3df7f","html_url":"https://github.com/mamantoha/shards_spec","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fshards_spec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fshards_spec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fshards_spec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fshards_spec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamantoha","download_url":"https://codeload.github.com/mamantoha/shards_spec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252912993,"owners_count":21824065,"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":["crystal","hacktoberfest","parser","shards","yaml"],"created_at":"2024-10-07T13:41:09.436Z","updated_at":"2025-05-07T16:03:16.418Z","avatar_url":"https://github.com/mamantoha.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shards::Spec\n\n![Crystal CI](https://github.com/mamantoha/shards_spec/workflows/Crystal%20CI/badge.svg?branch=main)\n[![GitHub release](https://img.shields.io/github/release/mamantoha/shards_spec.svg)](https://github.com/mamantoha/shards_spec/releases)\n\nA `shard.yml` parser for the Crystal language.\n\nThis library was extracted from [shards](https://github.com/crystal-lang/shards) version `0.10.0`.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     shards_spec:\n       github: mamantoha/shards_spec\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"shards_spec\"\n\nstr = \u003c\u003c-YAML\nname: crest\nversion: 0.26.6\n\nauthors:\n  - Anton Maminov \u003canton.maminov@gmail.com\u003e\n\ndescription: |\n  HTTP and REST client for Crystal\n\ncrystal: \"\u003e= 0.36.0\"\n\ndependencies:\n  http-client-digest_auth:\n    github: mamantoha/http-client-digest_auth\n    version: ~\u003e 0.6.0\n  http_proxy:\n    github: mamantoha/http_proxy\n    version: ~\u003e 0.8.0\n\ndevelopment_dependencies:\n  kemal:\n    github: kemalcr/kemal\n    version: ~\u003e 0.27.0\n  ameba:\n    github: crystal-ameba/ameba\n\nlicense: MIT\nYAML\n\nspec = ShardsSpec::Spec.from_yaml(str)\n\nspec.name\n# crest\n\nputs spec.description\n# HTTP and REST client for Crystal\n\nputs spec.crystal\n# \u003e= 0.36.0\n\nspec.version\n# 0.26.6\n\nspec.dependencies.each do |dependency|\n  \"#{dependency.name} | #{dependency.version}\"\nend\n# http-client-digest_auth | ~\u003e 0.6.0\n# http_proxy | ~\u003e 0.8.0\n\nspec.development_dependencies.each do |dependency|\n  \"#{dependency.name} | #{dependency.version}\"\nend\n# kemal | ~\u003e 0.27.0\n# ameba | *\n\nspec.authors.each do |author|\n  \"#{author.name} | #{author.email}\"\nend\n# =\u003e Anton Maminov | anton.maminov@gmail.com\n\nspec.license\n# =\u003e MIT\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/mamantoha/shards_spec/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Anton Maminov](https://github.com/mamantoha) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamantoha%2Fshards_spec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamantoha%2Fshards_spec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamantoha%2Fshards_spec/lists"}