{"id":13718947,"url":"https://github.com/arsredovisning-online/orgnummer","last_synced_at":"2025-05-07T10:34:08.992Z","repository":{"id":27546111,"uuid":"31027662","full_name":"arsredovisning-online/orgnummer","owner":"arsredovisning-online","description":"Util for managing swedish organisationsnummer","archived":false,"fork":false,"pushed_at":"2022-03-18T21:54:13.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-08T00:03:02.212Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arsredovisning-online.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-19T17:37:53.000Z","updated_at":"2021-05-25T07:46:54.000Z","dependencies_parsed_at":"2022-08-01T10:37:34.723Z","dependency_job_id":null,"html_url":"https://github.com/arsredovisning-online/orgnummer","commit_stats":null,"previous_names":["mirendo/orgnummer"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsredovisning-online%2Forgnummer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsredovisning-online%2Forgnummer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsredovisning-online%2Forgnummer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsredovisning-online%2Forgnummer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arsredovisning-online","download_url":"https://codeload.github.com/arsredovisning-online/orgnummer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252860068,"owners_count":21815457,"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-08-03T01:00:39.837Z","updated_at":"2025-05-07T10:34:08.758Z","avatar_url":"https://github.com/arsredovisning-online.png","language":"Ruby","funding_links":[],"categories":["Companies"],"sub_categories":[],"readme":"# Orgnummer\n\nUtil for creation and validation of the swedish organisationsnummer\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'orgnummer'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install orgnummer\n\n## Changelog\n0.1.1. Added implementation of eql? and hash\n\n0.1.0. Added support for resolving swedish organization types\n\n0.0.1. Initial version\n\n\n\n## Usage\n\n```ruby\nbolag = Orgnummer.new(5568610827)\n# bolag = Orgnummer.new('5568610827') is valid\n# bolag = Orgnummer.new('556861-0827') is valid\n# bolag = Orgnummer.new('55') is valid but bolag.valid? will be false\n\nif bolag.valid?\n    #do something\n\nif bolag.type_of_organization eq :aktiebolag\n   #do something\n\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsredovisning-online%2Forgnummer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farsredovisning-online%2Forgnummer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsredovisning-online%2Forgnummer/lists"}