go-install 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/exe/go-install +2 -2
- data/go-install.gemspec +1 -1
- data/lib/go/install/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c737ec6f17b316b497ffc84294bf84efe4aa0404828854d89034b31e8e7abfc7
|
4
|
+
data.tar.gz: e00759f8c0a9813ad7ccc9e4835d9d1e9513716096a0e29469f3a8af0a9a35d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f1cd1d27ea5c8b00f9882485cecd9f2917f4b35d724111972b711ba6bb0acbada7a3ee08bc74cff91f1d28d4d7cf617dc6e0c6ebde6e1c97b1feeb4266f3f21
|
7
|
+
data.tar.gz: 05c7d4cd593e25a39fdc942b2c595c9f1ed39b2b71ffd194ceff922ea9957af16e8fc0878da3fd5d8d236e3fdc10ab03d81722d9b5b273031a5c31d7f077cdd2
|
data/README.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# go-install
|
2
2
|
|
3
|
-
go-install - download and extract golang official binary to /usr/local/go
|
3
|
+
go-install - download and extract a [golang official binary](https://golang.org/dl/) to /usr/local/go
|
4
4
|
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
8
8
|
$ gem install go-install
|
9
|
+
(you may need to run as root or through sudo.)
|
9
10
|
|
10
11
|
## Usage
|
11
12
|
|
data/exe/go-install
CHANGED
@@ -31,7 +31,7 @@ if Process.uid != 0
|
|
31
31
|
exit 1
|
32
32
|
end
|
33
33
|
|
34
|
-
versions = open('https://golang.org/dl/').read.scan(/go(\d+\.\d+\.\d+)/).flatten.uniq
|
34
|
+
versions = URI.open('https://golang.org/dl/').read.scan(/go(\d+\.\d+\.\d+)/).flatten.uniq
|
35
35
|
latest = versions.first
|
36
36
|
|
37
37
|
if ARGV[0] == 'latest'
|
@@ -85,7 +85,7 @@ puts "Download from #{uri}"
|
|
85
85
|
puts cmd
|
86
86
|
|
87
87
|
open("|#{cmd}", 'r+') { |io|
|
88
|
-
io.write open(uri).read
|
88
|
+
io.write URI.open(uri).read
|
89
89
|
}
|
90
90
|
|
91
91
|
puts <<EOM
|
data/go-install.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["s3fxn"]
|
10
10
|
spec.email = ["sssfxn@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{go-install - download and extract golang official binary to /usr/local/go}
|
12
|
+
spec.summary = %q{go-install - download and extract a golang official binary to /usr/local/go}
|
13
13
|
spec.homepage = "https://github.com/s3fxn/go-install"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
data/lib/go/install/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: go-install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- s3fxn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,9 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
|
80
|
-
rubygems_version: 2.7.6
|
79
|
+
rubygems_version: 3.1.2
|
81
80
|
signing_key:
|
82
81
|
specification_version: 4
|
83
|
-
summary: go-install - download and extract golang official binary to /usr/local/go
|
82
|
+
summary: go-install - download and extract a golang official binary to /usr/local/go
|
84
83
|
test_files: []
|