{"id":17912667,"url":"https://github.com/danielgatis/bowling-rb","last_synced_at":"2025-10-07T23:29:10.457Z","repository":{"id":90679426,"uuid":"607485269","full_name":"danielgatis/bowling-rb","owner":"danielgatis","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-02T00:45:17.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T20:47:33.080Z","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/danielgatis.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-28T03:55:56.000Z","updated_at":"2023-02-28T03:57:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"e62b8864-8908-42bf-b4c9-172639051787","html_url":"https://github.com/danielgatis/bowling-rb","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/danielgatis%2Fbowling-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fbowling-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fbowling-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fbowling-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielgatis","download_url":"https://codeload.github.com/danielgatis/bowling-rb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246952278,"owners_count":20859812,"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-10-28T19:46:28.532Z","updated_at":"2025-10-07T23:29:05.405Z","avatar_url":"https://github.com/danielgatis.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bowling\n\nThis is a gem for calculating bowling scores.\n\n## Usage\n\nGo to the root of the project and run:\n\n```\ncat spec/fixtures/positive/scores.txt | ./bin/score_board\n```\n\nAnd you will see this output:\n\n```\nFrame           1               2               3               4               5               6               7               8               9               10\nJeff\nPinfalls                X       7       /       9       0               X       0       8       8       /       F       6               X               X       X       8       1\nScore           20              39              48              66              74              84              90              120             148             167\nJohn\nPinfalls        3       /       6       3               X       8       1               X               X       9       0       7       /       4       4       X       9       0\nScore           16              25              44              53              82              101             110             124             132             151\n```\n\n## Errors\n\nThere are 3 types of errors:\n  - SyntaxError: When there are some unknown character on the input file.\n  - ParserError: When all characters is ok but there is a semantic error.\n  - RuntimeError: When all is ok but a runtime errors happens on evaluation time.\n\n\n### SyntaxError\n\n```\ncat spec/fixtures/negative/negative.txt | ./bin/score_board\n```\n\nYou can figure out the problem looking on the error message: `Unexpected char \"-\" at 2:6 (Bowling::Parser::Tokenizer::SyntaxError)`.\n\n### ParserError\n\n```\ncat spec/fixtures/negative/invalid-score.txt | ./bin/score_board\n```\n\nYou can figure out the problem looking on the error message: `Expected number or fault, got identifier \"lorem\" at 2:6 (Bowling::Parser::Parser::ParserError)`.\n\n### RuntimeError\n\n```\ncat spec/fixtures/negative/extra-score.txt | ./bin/score_board\n```\n\nYou can figure out the problem looking on the error message: `This game is already finished (Bowling::Game::BowlingError)`.\n\n## Running tests\n\nGo to the root of the project and run:\n\n```bash\n$ rspec\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Fbowling-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielgatis%2Fbowling-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Fbowling-rb/lists"}