{"id":28092358,"url":"https://github.com/tkersey/isbn","last_synced_at":"2025-06-15T01:34:48.833Z","repository":{"id":481297,"uuid":"106933","full_name":"tkersey/isbn","owner":"tkersey","description":"This library provides methods to manipulate isbns.","archived":false,"fork":false,"pushed_at":"2023-06-09T06:11:20.000Z","size":56,"stargazers_count":45,"open_issues_count":1,"forks_count":11,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-25T02:19:28.273Z","etag":null,"topics":["gem","isbn","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/isbn","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":"Unmaintained","scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tkersey.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":"2009-01-14T00:04:38.000Z","updated_at":"2024-08-18T16:29:55.000Z","dependencies_parsed_at":"2024-06-18T22:34:57.798Z","dependency_job_id":"384035cc-7118-4ef8-8ccf-0db88a814fb4","html_url":"https://github.com/tkersey/isbn","commit_stats":{"total_commits":117,"total_committers":10,"mean_commits":11.7,"dds":"0.23931623931623935","last_synced_commit":"3ff36ef0317474aa2dc1c8e940ea60cb0773e19d"},"previous_names":["entangledstate/isbn"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tkersey/isbn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkersey%2Fisbn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkersey%2Fisbn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkersey%2Fisbn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkersey%2Fisbn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkersey","download_url":"https://codeload.github.com/tkersey/isbn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkersey%2Fisbn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259909584,"owners_count":22930656,"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":["gem","isbn","ruby"],"created_at":"2025-05-13T13:04:39.376Z","updated_at":"2025-06-15T01:34:48.788Z","avatar_url":"https://github.com/tkersey.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"isbn\n====\n\nVersion 2.0\n\n## Introduction\n\nThis library provides methods to manipulate isbns. As of version 2.0 there has been a near complete rewrite of this library but this time there are tests. A few methods have been removed. Here is what remains:\n\n## Prerequisites\n\n It depends on the LibJpeg and Gocr libraries. Recommended [Homebrew](http://github.com/mxcl/homebrew).\n\n```\nbrew install libjpeg\nbrew install gocr\n```\n\n## Installing ISBN\n\n#### Installing via Bundler\n\nAdd to your `Gemfile`:\n\n```\ngem 'isbn'\n```\n\nThen run:\n\n```\nbundle install\n```\n\n#### Installing via RubyGems\n\nRun:\n\n```\ngem install isbn\n```\n## Using ISBN\n\n* `ISBN.ten` will return a 10 digit isbn if you give it a 10 or 13 digit isbn\n    - it will raise a `No10DigitISBNAvailable` error if given an isbn starting with 979\n   because 979 isbns do NOT have a 10 digit counterpart.\n* `ISBN.thirteen` will return a 13 digit isbn if you give it 10 or thirteen digit isbn\n\n* `ISBN.as_used` will convert an isbn into the used book version for that isbn\n    - for isbns starting with 978 it returns an isbn starting with 290\n    - for isbns starting with 979 it returns an isbn starting with 291\n\n* `ISBN.as_new` will convert an isbn into the new book version for that isbn\n    - for isbns starting with 290 it returns an isbn starting with 978\n    - for isbns starting with 291 it returns an isbn starting with 979\n\n* `ISBN.valid?` will compare the check digit of the passed in isbn with that of one it computes\n\n* `ISBN.from_image` accept a jpeg of an isbn and OCR it into an isbn.\n    - it depends on the LibJpeg and Gocr libraries. I recommend [Homebrew](http://github.com/mxcl/homebrew).\n \n* `ISBN.from_string` fetches isbn from string\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkersey%2Fisbn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkersey%2Fisbn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkersey%2Fisbn/lists"}