{"id":28206833,"url":"https://github.com/ndrive/version-serializer","last_synced_at":"2025-07-15T01:16:02.789Z","repository":{"id":17257355,"uuid":"20026867","full_name":"NDrive/version-serializer","owner":"NDrive","description":"Serializes and compares semantic versions.","archived":false,"fork":false,"pushed_at":"2018-01-11T16:39:04.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-20T11:44:36.816Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NDrive.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":"2014-05-21T15:42:22.000Z","updated_at":"2019-09-12T15:57:52.000Z","dependencies_parsed_at":"2022-09-13T17:51:09.974Z","dependency_job_id":null,"html_url":"https://github.com/NDrive/version-serializer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/NDrive/version-serializer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDrive%2Fversion-serializer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDrive%2Fversion-serializer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDrive%2Fversion-serializer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDrive%2Fversion-serializer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NDrive","download_url":"https://codeload.github.com/NDrive/version-serializer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDrive%2Fversion-serializer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265384434,"owners_count":23756715,"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":"2025-05-17T11:12:58.881Z","updated_at":"2025-07-15T01:16:02.775Z","avatar_url":"https://github.com/NDrive.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VersionSerializer\n\nSerializes semantic versions and adds compatibility methods to check if a given\ninstance is compatible with a certain version by specifying a range.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'version_serializer'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install version_serializer\n\n\n## Usage\n\n```ruby\n\n# Model Definition\nclass YourModel \u003c ActiveRecord::Base\n  include VersionSerializer::RangeCompatibility\n  serialize :min_version, VersionSerializer::SemanticVersion\n  serialize :max_version, VersionSerializer::SemanticVersion\nend\n\n# Compatibility\nm = YourModel.create(min_version: \"1.0.1\", max_version: \"2.3.4\")\nm.compatible? \"2.0\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndrive%2Fversion-serializer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndrive%2Fversion-serializer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndrive%2Fversion-serializer/lists"}