go_version 1.7.0.pre.alpha → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/lib/go_version/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0fca588bca54b5cce76b8106d6d68f68f7ba677bb6e893bad79b95971724b42
|
4
|
+
data.tar.gz: 318ea393141cf9ce6a545d93a9be6458f271d8f8a4a2b91c13889de873e62488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ff34f2a96be2fa55d4ab95d510cdf7aa5e7ff636b2488b5d77b54dc1653bbb6bb26a56f0b0f137a570078f7f5667e3de0282f9b17c7ed077c7bfed698eb1969
|
7
|
+
data.tar.gz: 1c56062d7e1cdec6969f0eb7e29fbc1ec4d148ebe7916aa221a76749eed4f4b1ab6658fdebd851d114d9e7db9aa920efd0bff71214cebab031e1e5a5ccc5fc0b
|
data/README.md
CHANGED
@@ -8,7 +8,9 @@ This can be useful when you want to match the exact behavior of go-version from
|
|
8
8
|
|
9
9
|
### Prerequisites
|
10
10
|
|
11
|
-
go 1.
|
11
|
+
- go 1.22
|
12
|
+
|
13
|
+
You need `go` to build the native extension for this gem. [Download and install go 1.22+](https://go.dev/doc/install) before installing this gem.
|
12
14
|
|
13
15
|
### Installing
|
14
16
|
|
@@ -29,15 +31,15 @@ constraint.check("1.0.0") # false
|
|
29
31
|
2. Checking if a version string is valid
|
30
32
|
|
31
33
|
```ruby
|
32
|
-
require 'go_version'
|
33
|
-
|
34
34
|
GoVersion.valid?("1.1.0") # true
|
35
35
|
```
|
36
36
|
|
37
37
|
3. Compare two versions
|
38
38
|
|
39
39
|
```ruby
|
40
|
-
require 'go_version'
|
41
|
-
|
42
40
|
GoVersion.compare("1.2.0", "1.2.1") # -1
|
43
41
|
```
|
42
|
+
|
43
|
+
### Development
|
44
|
+
|
45
|
+
run `make build`, then `rake test`
|
data/lib/go_version/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: go_version
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.0
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Croft
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -28,30 +28,30 @@ dependencies:
|
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '5.24'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '5.24'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.2'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.2'
|
55
55
|
description: Wraps native go-version in a ruby library for deep compatibility.
|
56
56
|
email: brandon.croft@gmail.com
|
57
57
|
executables: []
|
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
84
|
requirements:
|
85
85
|
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
87
|
+
version: '2.5'
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - ">="
|