Project

go_version

0.0
The project is in a healthy, maintained state
wraps native go-version in a ruby library for certain compatibility
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Dependencies

Development

Runtime

~> 1.15
 Project Readme

go-version-ruby

Ruby bindings for hashicorp/go-version

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