{"id":16431416,"url":"https://github.com/stephencelis/scantron","last_synced_at":"2025-10-28T12:10:09.016Z","repository":{"id":1271772,"uuid":"1210956","full_name":"stephencelis/scantron","owner":"stephencelis","description":"Rule-based string scanning and scrubbing.","archived":false,"fork":false,"pushed_at":"2011-09-02T05:48:04.000Z","size":120,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-11T22:34:56.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/stephencelis.png","metadata":{"files":{"readme":"README.rdoc","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":"2010-12-31T15:02:29.000Z","updated_at":"2015-11-27T19:05:24.000Z","dependencies_parsed_at":"2022-08-16T12:50:41.609Z","dependency_job_id":null,"html_url":"https://github.com/stephencelis/scantron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stephencelis/scantron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fscantron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fscantron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fscantron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fscantron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephencelis","download_url":"https://codeload.github.com/stephencelis/scantron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fscantron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281434506,"owners_count":26500652,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T08:30:05.158Z","updated_at":"2025-10-28T12:10:08.989Z","avatar_url":"https://github.com/stephencelis.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Scantron\n\nhttp://github.com/stephencelis/scantron\n\nA simple, but powerful, rule-based string scanner and scrubber.\n\n\n== Examples\n\n==== NumberScanner\n\n  require \"scantron\"\n  require \"number_scanner\"\n\n  NumberScanner.scan \"A one, 2, 3.0, 4 1/2...\"\n  # =\u003e [1, 2, 3.0, (9/2)]\n\n  number_scanner = NumberScanner.new \u003c\u003cHERE\n    Ninety-nine bottles of beer on the wall.\n    Ninety-nine bottles of beer.\n    Take one down, pass it around,\n    Ninety-eight and a half bottles of beer on the wall.\n  HERE\n\n  number_scanner.scan # =\u003e [99, 99, 1, (197/2)]\n\n  puts number_scanner.scrub { |n| \"\u003cspan data-n='#{n.value.to_f}'\u003e#{n}\u003c/span\u003e\" }\n  \u003cspan data-n='99.0'\u003eNinety-nine\u003c/span\u003e bottles of beer on the wall.\n  \u003cspan data-n='99.0'\u003eNinety-nine\u003c/span\u003e bottles of beer.\n  Take \u003cspan data-n='1.0'\u003eone\u003c/span\u003e down, pass it around,\n  \u003cspan data-n='98.5'\u003eNinety-eight and a half\u003c/span\u003e bottles of beer on the wall.\n\n\n==== RangeScanner\n\n  require \"scantron\"\n  require \"range_scanner\"\n\n  RangeScanner.scan \"100-150 degrees\"\n  # =\u003e [100..150]\n\n  RangeScanner.scan \"Twelve or thirteen rolls for five or six people\"\n  # =\u003e [12..13, 5..6]\n\n\n=== Build Your Own\n\nTODO\n\n\n== Install\n\n  % [sudo] gem install scantron\n\n\nOr, with {Bundler}[http://gembundler.com/], add \u003ctt\u003egem \"scantron\"\u003c/tt\u003e to your\nGemfile and run \u003ctt\u003ebundle install\u003c/tt\u003e.\n\n\n== License\n\n(The MIT License)\n\n(c) 2010 Stephen Celis \u003cstephen@stephencelis.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephencelis%2Fscantron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephencelis%2Fscantron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephencelis%2Fscantron/lists"}