{"id":22354296,"url":"https://github.com/jonmagic/slaw","last_synced_at":"2025-03-26T12:40:36.494Z","repository":{"id":14070073,"uuid":"16773518","full_name":"jonmagic/slaw","owner":"jonmagic","description":"recipe parser","archived":false,"fork":false,"pushed_at":"2014-02-16T15:06:35.000Z","size":180,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T13:43:45.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonmagic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-12T16:27:40.000Z","updated_at":"2021-06-29T21:35:44.000Z","dependencies_parsed_at":"2022-09-23T18:52:04.248Z","dependency_job_id":null,"html_url":"https://github.com/jonmagic/slaw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fslaw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fslaw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fslaw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fslaw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonmagic","download_url":"https://codeload.github.com/jonmagic/slaw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245658958,"owners_count":20651517,"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":[],"created_at":"2024-12-04T13:12:14.046Z","updated_at":"2025-03-26T12:40:36.467Z","avatar_url":"https://github.com/jonmagic.png","language":"Ruby","readme":"# Slaw\n\nSlaw is a recipe parser implemented in ruby. Let's make a roux.\n\n```ruby\ningredients = Slaw::Parser.new.parse(\"1 cup flour\\n3 tbsp butter\")\nfirst = ingredients[0]\n\nfirst[:quantity].to_i\n=\u003e 1\n\nfirst[:unit].to_s\n=\u003e \"cup\"\n\nfirst[:ingredient].to_s\n=\u003e \"flour\"\n\nsecond = ingredients[1]\n\nsecond[:quantity].to_i\n=\u003e 3\n\nsecond[:unit].to_s\n=\u003e \"tbsp\"\n\nsecond[:ingredient].to_s\n=\u003e \"butter\"\n```\n\n## Tests\n\n```bash\nbundle exec rake\n```\n\n## Update units of measurement\n\n```bash\ngem install glean\nglean export jonmagic/units_of_measurement --format=json \u003e lib/slaw/units\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Fslaw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonmagic%2Fslaw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Fslaw/lists"}