{"id":21942173,"url":"https://github.com/screenstaring/grid-number","last_synced_at":"2025-07-26T21:35:58.338Z","repository":{"id":90940459,"uuid":"128670115","full_name":"ScreenStaring/grid-number","owner":"ScreenStaring","description":"Ruby class for managing Global Release Identifiers (GRid numbers). GRid numbers are used to identify electronic music releases.","archived":false,"fork":false,"pushed_at":"2018-04-08T21:37:21.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T15:44:58.597Z","etag":null,"topics":["ddex","grid-number","music","music-information-retrieval","ruby"],"latest_commit_sha":null,"homepage":null,"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/ScreenStaring.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-04-08T18:29:56.000Z","updated_at":"2022-05-03T20:36:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"0109d131-287d-4d8b-8456-e6225c2aa87d","html_url":"https://github.com/ScreenStaring/grid-number","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreenStaring%2Fgrid-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreenStaring%2Fgrid-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreenStaring%2Fgrid-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreenStaring%2Fgrid-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScreenStaring","download_url":"https://codeload.github.com/ScreenStaring/grid-number/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244976212,"owners_count":20541432,"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":["ddex","grid-number","music","music-information-retrieval","ruby"],"created_at":"2024-11-29T03:16:51.074Z","updated_at":"2025-03-22T15:25:40.075Z","avatar_url":"https://github.com/ScreenStaring.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GRid\n\n[![Build Status](https://secure.travis-ci.org/ScreenStaring/grid-number.svg)](https://secure.travis-ci.org/ScreenStaring/grid-number)\n\nClass for managing Global Release Identifiers (GRid numbers).\nGRid numbers are used to identify electronic music releases.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"grid-number\"\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install grid-number\n\n## Usage\n\n```rb\nrequire \"grid\"\n\ngrid = GRid.parse(\"A12425GABC1234011K\")\ngrid = GRid.parse(\"A1-2425G-ABC1234011-K\")\ngrid = GRid.parse(\"  grid:A1-2425G-ABC1234011-K  \")\ngrid.valid?          # true\ngrid.id_scheme       # A1\ngrid.issuer_code     # 2425G\ngrid.release_number  # ABC1234011\ngrid.check_character # K\n\ngrid = GRid.new(:issuer_code =\u003e \"2425G\", :release_number =\u003e \"ABC1234002\")\ngrid.check_character # M\ngrid.release_number = \"X999150000\"\ngrid.check_character # 3\n\ngrid = GRid.parse(\"A12425GABC1234011X\") # Wrong check character\ngrid.valid?                   # false\ngrid.errors[:check_character] # [\"verification failed\"]\n\nGRid.default_issuer_code = \"2425G\"\ngrid = GRid.new(:release_number =\u003e \"ABC1234002\")\ngrid.to_s           # A12425GABC1234002M\ngrid.formatted      # A1-2425G-ABC1234002-M\n```\n\n## Links\n\n* [Global Release Identifier](https://en.wikipedia.org/wiki/Global_Release_Identifier)\n* [Documentation](http://rdoc.info/gems/grid-number)\n* [Homepage](https://github.com/ScreenStaring/grid-number)\n\n## See Also\n\n* [DDEX](https://github.com/sshaw) - DDEX metadata serialization\n* [istwox](https://github.com/malenkiki/istwox) - Classes for ISBN, ISSN, ISRC, ISMN and ISAN numbers\n* [iTunes Store Transporter: GUI](http://transportergui.com) - GUI and workflow automation for the iTunes Store’s Transporter (`iTMSTransporter`)\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n---\n\nMade by [ScreenStaring](http://screenstaring.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscreenstaring%2Fgrid-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscreenstaring%2Fgrid-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscreenstaring%2Fgrid-number/lists"}