Project

go_version

0.0
No release in over a year
Wraps native go-version in a ruby library for deep compatibility.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.15
 Project Readme

go-version-ruby

Ruby bindings for hashicorp/go-version. Versions correspond to underlying go-version release versions.

Why?

This can be useful when you want to match the exact behavior of go-version from a ruby app.

Prerequisites

go 1.17

Installing

gem install go_version

Usage

require 'go_version'

constraint = GoVersion::Constraint.new("> 1.0.0")
constraint.check("1.1.0") # true
constraint.check("1.0.0") # false