go_version 1.7.0.pre.alpha → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4a20269713bd2b8af6e9b16eb05c101ee092f45eab091cf17ec9922092006cc
4
- data.tar.gz: c53b00491c99dff70b239b9d1463fc44f006e5f31a5905a2c43d8285819e458b
3
+ metadata.gz: 78e9a81242c1d6918e8dd8247f2d14045db2657d2753e876b37af85e9e3dc250
4
+ data.tar.gz: d2a9a378da7f6adea7c2b07d5af330af1e236bd56f71084ef28cfb35a5a68658
5
5
  SHA512:
6
- metadata.gz: 7009b1678e4e3b4dde6137dfd721d1e323b3167ad79c4ad5897a5b9c046326cdde3ae64a6337eeaec1ea57c74f00fb0e7e90f8a5db8743aeb792a36d85179f8b
7
- data.tar.gz: 668c105a8aa043e92964cf5532b131ef8bb3dd6923ed75eb4bf89f4182e4fb103139891eb5a0cfe061212e6bca8264bbc86e609a5bc76974a95defe245a5f52b
6
+ metadata.gz: '083c5f903b0324f277956dbc212e06bf6de56d2b21b1f63f58a2a12f432b5d458f38a23dc4a861a55477ee556e247c7e3696c01333b4b3351f6b13f52df6dc58'
7
+ data.tar.gz: b1dc9b8139a836cd2618750a380fed6e6f807845185842580e5efbf125bcfe75448065831116bfc412387b45968ce1221f8f812dfa1f526e04ee286f9b7b41a1
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ ## 1.7.1
2
+
3
+ - Remove unnecessary build files from gem source
4
+
5
+ ## 1.7.0
6
+
7
+ - First stable release, adding support for both linux and macOS installation.
8
+ - Adds GoVersion.compare which wraps version.Version Compa
9
+ - Bumps go-version dependency to 1.7.0
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.17
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`
@@ -1,3 +1,3 @@
1
1
  module GoVersion
2
- VERSION = "1.7.0-alpha"
2
+ VERSION = "1.7.1"
3
3
  end
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.pre.alpha
4
+ version: 1.7.1
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-12 00:00:00.000000000 Z
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: '0'
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: '0'
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: '0'
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: '0'
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: []
@@ -59,6 +59,7 @@ extensions:
59
59
  - ext/extconf.rb
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - CHANGELOG.md
62
63
  - LICENSE
63
64
  - README.md
64
65
  - ext/Makefile
@@ -66,9 +67,7 @@ files:
66
67
  - ext/go.mod
67
68
  - ext/go.sum
68
69
  - ext/main.go
69
- - lib/go_version.h
70
70
  - lib/go_version.rb
71
- - lib/go_version.so
72
71
  - lib/go_version/constraint.rb
73
72
  - lib/go_version/version.rb
74
73
  - lib/go_version/wrapper.rb
@@ -84,7 +83,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
83
  requirements:
85
84
  - - ">="
86
85
  - !ruby/object:Gem::Version
87
- version: '0'
86
+ version: '2.5'
88
87
  required_rubygems_version: !ruby/object:Gem::Requirement
89
88
  requirements:
90
89
  - - ">="
data/lib/go_version.h DELETED
@@ -1,101 +0,0 @@
1
- /* Code generated by cmd/cgo; DO NOT EDIT. */
2
-
3
- /* package go-version */
4
-
5
-
6
- #line 1 "cgo-builtin-export-prolog"
7
-
8
- #include <stddef.h>
9
-
10
- #ifndef GO_CGO_EXPORT_PROLOGUE_H
11
- #define GO_CGO_EXPORT_PROLOGUE_H
12
-
13
- #ifndef GO_CGO_GOSTRING_TYPEDEF
14
- typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
- #endif
16
-
17
- #endif
18
-
19
- /* Start of preamble from import "C" comments. */
20
-
21
-
22
-
23
-
24
- /* End of preamble from import "C" comments. */
25
-
26
-
27
- /* Start of boilerplate cgo prologue. */
28
- #line 1 "cgo-gcc-export-header-prolog"
29
-
30
- #ifndef GO_CGO_PROLOGUE_H
31
- #define GO_CGO_PROLOGUE_H
32
-
33
- typedef signed char GoInt8;
34
- typedef unsigned char GoUint8;
35
- typedef short GoInt16;
36
- typedef unsigned short GoUint16;
37
- typedef int GoInt32;
38
- typedef unsigned int GoUint32;
39
- typedef long long GoInt64;
40
- typedef unsigned long long GoUint64;
41
- typedef GoInt64 GoInt;
42
- typedef GoUint64 GoUint;
43
- typedef size_t GoUintptr;
44
- typedef float GoFloat32;
45
- typedef double GoFloat64;
46
- #ifdef _MSC_VER
47
- #include <complex.h>
48
- typedef _Fcomplex GoComplex64;
49
- typedef _Dcomplex GoComplex128;
50
- #else
51
- typedef float _Complex GoComplex64;
52
- typedef double _Complex GoComplex128;
53
- #endif
54
-
55
- /*
56
- static assertion to make sure the file is being used on architecture
57
- at least with matching size of GoInt.
58
- */
59
- typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
60
-
61
- #ifndef GO_CGO_GOSTRING_TYPEDEF
62
- typedef _GoString_ GoString;
63
- #endif
64
- typedef void *GoMap;
65
- typedef void *GoChan;
66
- typedef struct { void *t; void *v; } GoInterface;
67
- typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
68
-
69
- #endif
70
-
71
- /* End of boilerplate cgo prologue. */
72
-
73
- #ifdef __cplusplus
74
- extern "C" {
75
- #endif
76
-
77
-
78
- // Check returns true if the given version string satisfies the
79
- // given constraint string
80
- //
81
- extern GoUint8 Check(char* constraint, char* ver);
82
-
83
- // ValidVersion returns true if it can be parsed as a version
84
- //
85
- extern GoUint8 ValidVersion(char* s);
86
-
87
- // ValidSemver parses the given version and returns true if it
88
- // adheres strictly to SemVer specs
89
- //
90
- extern GoUint8 ValidSemver(char* s);
91
-
92
- // Compare compares two valid versions and returns -1, 0, or 1
93
- // if 'a' version is smaller, equal, or larger than 'b' version,
94
- // respectively. Invalid versions are considered smaller,
95
- // to use ValidVersion to check for validity first.
96
- //
97
- extern GoInt Compare(char* a, char* b);
98
-
99
- #ifdef __cplusplus
100
- }
101
- #endif
data/lib/go_version.so DELETED
Binary file