go-install 0.1.2 → 0.1.3

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: 0c8f9d2c2117a012e16870792abdbca3c5818a4acab713c6eea9c44f7acb6b94
4
- data.tar.gz: 9af0dd296d03d2f87ca1b096f9f55055bec6e1f318b20c2501ced76eac13cfcd
3
+ metadata.gz: c737ec6f17b316b497ffc84294bf84efe4aa0404828854d89034b31e8e7abfc7
4
+ data.tar.gz: e00759f8c0a9813ad7ccc9e4835d9d1e9513716096a0e29469f3a8af0a9a35d9
5
5
  SHA512:
6
- metadata.gz: 50d91143dd48b613bc2a874092813f17d5dfe8c7d2a08ed45922d02f31335d3e80f7494a599d00674dc03635f7a04c0e9ed56c3a4cd32720e51ad41351d495ed
7
- data.tar.gz: 5af99df1d08942e5e85613aebe1fdddb65e6052637727227cefdc1b62c3f3451d296f9f058e2282d2941ee52474fcc6c14f2033b1447776f242f1d65272fcc6d
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
 
@@ -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
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Go
2
2
  module Install
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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.2
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: 2018-10-27 00:00:00.000000000 Z
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
- rubyforge_project:
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: []