{"id":16515257,"url":"https://github.com/pine/p5-semver-v2-strict","last_synced_at":"2025-09-07T06:06:03.961Z","repository":{"id":56836220,"uuid":"45769570","full_name":"pine/p5-SemVer-V2-Strict","owner":"pine","description":":chart_with_upwards_trend: Semantic version v2.0 object for Perl","archived":false,"fork":false,"pushed_at":"2025-09-03T12:12:54.000Z","size":68,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-03T14:22:24.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/SemVer::V2::Strict","language":"Perl","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/pine.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-08T06:24:24.000Z","updated_at":"2019-06-20T18:42:10.000Z","dependencies_parsed_at":"2022-09-02T03:50:51.890Z","dependency_job_id":null,"html_url":"https://github.com/pine/p5-SemVer-V2-Strict","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/pine/p5-SemVer-V2-Strict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-SemVer-V2-Strict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-SemVer-V2-Strict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-SemVer-V2-Strict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-SemVer-V2-Strict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pine","download_url":"https://codeload.github.com/pine/p5-SemVer-V2-Strict/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-SemVer-V2-Strict/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274001422,"owners_count":25205255,"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-09-07T02:00:09.463Z","response_time":67,"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-11T16:16:25.042Z","updated_at":"2025-09-07T06:06:03.948Z","avatar_url":"https://github.com/pine.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/pine/p5-SemVer-V2-Strict/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/pine/p5-SemVer-V2-Strict/actions?workflow=test) [![MetaCPAN Release](https://badge.fury.io/pl/SemVer-V2-Strict.svg)](https://metacpan.org/release/SemVer-V2-Strict)\n# NAME\n\nSemVer::V2::Strict - Semantic version v2.0 object for Perl\n\n# SYNOPSIS\n\n    use SemVer::V2::Strict;\n\n    my $v1 = SemVer::V2::Strict-\u003enew('1.0.2');\n    my $v2 = SemVer::V2::Strict-\u003enew('2.0.0-alpha.10');\n\n    if ($v1 \u003c $v2) {\n        print \"$v1 \u003c $v2\\n\"; # =\u003e '1.0.2 \u003c 2.0.0-alpha.10'\n    }\n\n# DESCRIPTION\n\nThis module subclasses version to create semantic versions, as defined by the [Semantic Versioning 2.0.0](http://semver.org/spec/v2.0.0.html) Specification.\n\n# METHODS\n\n## CLASS METHODS\n\n### `new()`\n\nCreate new empty `SemVer::V2::Strict` instance.\n`SemVer::V2::Strict-\u003enew()` equals `SemVer::V2::Strict-\u003enew('0.0.0')`.\n\n### `new($version_string)`\n\nCreate new `SemVer::V2::Strict` instance from a version string.\n`SemVer::V2::Strict-\u003enew('1.0.0')` equals `SemVer::V2::Strict-\u003enew(1, 0, 0)`.\n\n### `new($major, $minor = 0, $patch = 0, $pre_release = undef, $build_metadata = undef)`\n\nCreate new `SemVer::V2::Strict` instance from version numbers.\n`SemVer::V2::Strict-\u003enew('1.0.0-alpha+100')` equals `SemVer::V2::Strict-\u003enew(1, 0, 0, 'alpha', '100')`.\n\n### `clean($version_string)`\n\nClean version string. Trim spaces and `'v'` prefix.\n\n### `sort(... $version_string)`\n\nSort version strings.\n\n## METHODS\n\n### `major`\n\nGet the major version number.\n\n### `minor`\n\nReturn the minor version number.\n\n### `patch`\n\nReturn the patch version number.\n\n### `pre_release`\n\nReturn the pre\\_release string.\n\n### `build_metadata`\n\nReturn the build\\_metadata string.\n\n### `\u003c=\u003e`\n\nCompare two `SemVer::V2::Strict` instances.\n\n### `\"\"`\n\nConvert a `SemVer::V2::Strict` instance to string.\n\n### `as_string()`\n\nConvert a `SemVer::V2::Strict` instance to string.\n\n# SEE ALSO\n\n- [SemVer](https://metacpan.org/pod/SemVer)\n- [version](https://metacpan.org/pod/version)\n\n# LICENSE\n\nThe MIT License (MIT)\n\nCopyright (c) 2015-2019, 2025 Pine Mizune\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\nall copies 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\nTHE SOFTWARE.\n\n# ACKNOWLEDGEMENT\n\n`SemVer::V2::Strict` is based from rosylilly's [semver](https://github.com/rosylilly/semver).\nThank you.\n\n# AUTHOR\n\nPine Mizune \u003cpinemz@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fp5-semver-v2-strict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpine%2Fp5-semver-v2-strict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fp5-semver-v2-strict/lists"}