{"id":15619723,"url":"https://github.com/drbragg/cooklang_rb","last_synced_at":"2025-09-16T20:14:12.191Z","repository":{"id":42519805,"uuid":"476764921","full_name":"DRBragg/cooklang_rb","owner":"DRBragg","description":"A Cooklang parser in Ruby","archived":false,"fork":false,"pushed_at":"2023-06-26T19:17:41.000Z","size":23,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T15:17:56.293Z","etag":null,"topics":["cooklang","parser","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/DRBragg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-04-01T15:01:24.000Z","updated_at":"2025-03-01T17:25:44.000Z","dependencies_parsed_at":"2024-10-22T20:16:57.315Z","dependency_job_id":null,"html_url":"https://github.com/DRBragg/cooklang_rb","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"836e4a48f6d20e47f171eb3bb84fa9bf648bc88c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DRBragg%2Fcooklang_rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DRBragg%2Fcooklang_rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DRBragg%2Fcooklang_rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DRBragg%2Fcooklang_rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DRBragg","download_url":"https://codeload.github.com/DRBragg/cooklang_rb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251320260,"owners_count":21570546,"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":["cooklang","parser","ruby"],"created_at":"2024-10-03T08:41:17.672Z","updated_at":"2025-09-16T20:14:07.096Z","avatar_url":"https://github.com/DRBragg.png","language":"Ruby","funding_links":[],"categories":["For Developers"],"sub_categories":["Parsers by Language"],"readme":"# CooklangRb\n\n[![Gem Version](https://badge.fury.io/rb/cooklang_rb.svg)](https://badge.fury.io/rb/cooklang_rb)\n[![Ruby](https://github.com/DRBragg/cooklang_rb/actions/workflows/main.yml/badge.svg)](https://github.com/DRBragg/cooklang_rb/actions/workflows/main.yml)\n\nA Ruby parser for [Cooklang](https://cooklang.org/).\n\nIf you're unfamiliar with [Cooklang](https://cooklang.org/), please visit [https://cooklang.org/](https://cooklang.org/) to learn more about using Cooklang.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'cooklang_rb'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install cooklang_rb\n\n## Usage\n\n```ruby\nsource = \u003c\u003cEOF\n\u003e\u003e source: https://www.dinneratthezoo.com/wprm_print/6796\n\u003e\u003e total time: 6 minutes\n\u003e\u003e servings: 2\n\nPlace the @apple juice{1,5%cups}, @banana{one sliced}, @frozen mixed berries{1,5%cups} and @vanilla greek yogurt{3/4%cup} in a #blender{}; blend until smooth. If the smoothie seems too thick, add a little more liquid (1/4 cup).\n\nTaste and add @honey{} if desired. Pour into two glasses and garnish with fresh berries and mint sprigs if desired.\nEOF\n\nrecipe = CooklangRb::Recipe.new(source)\n\npp recipe.data\n# {\n#  \"metadata\"=\u003e {...},\n#  \"steps\"=\u003e [\n#    [...],\n#    [...]\n#  ]\n# }\n\npp recipe.metadata\n# {\n#   \"source\"=\u003e\"https://www.dinneratthezoo.com/wprm_print/6796\",\n#   \"total time\"=\u003e\"6 minutes\",\n#   \"servings\"=\u003e\"2\"\n# }\n\npp recipe.steps\n# [\n#   [\n#     {\n#       \"type\"=\u003e\"text\",\n#       \"value\"=\u003e\"Place the \"\n#     },\n#     {\n#       \"type\"=\u003e\"ingredient\",\n#       \"name\"=\u003e\"apple juice\",\n#       \"quantity\"=\u003e\"1,5\",\n#       \"units\"=\u003e\"cups\"\n#     },\n#     {\n#       \"type\"=\u003e\"text\",\n#       \"value\"=\u003e\", \"\n#     },\n#     ...\n#   ],\n#   [\n#     {\n#       \"type\"=\u003e\"text\",\n#       \"value\"=\u003e\"Taste and add \"\n#     },\n#     ...\n#   ]\n# ]\n\n```\n\nPlease visit the [Cooklang Docs](https://cooklang.org/docs) for more information about the Cooklang specification.  Including parser impementations in other languages\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/drbragg/cooklang_rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/drbragg/cooklang_rb/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the CooklangRb project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/drbragg/cooklang_rb/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbragg%2Fcooklang_rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrbragg%2Fcooklang_rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbragg%2Fcooklang_rb/lists"}