go-install 0.1.0 → 0.1.4

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: b54bc640cb47676e24733e65c975480395c989302ebd53151e58bc894a024c3e
4
- data.tar.gz: 106463dd2b98208e62bd148fbcd9ded58bfb0b077b84c7a776ce7719cc2f5d21
3
+ metadata.gz: eaf25fce56ddb0768a90b947eab1f000f96202e0d07807637f3a6736815bcc44
4
+ data.tar.gz: c6f140edcd54dbe0ce182e028465a047ae46fd59861e58928decce3fb5b08365
5
5
  SHA512:
6
- metadata.gz: 2361cd37d9c98dd80dfc064ed11cd901ab6b228dbe464c7083c2b75dcdc778361f5afb7ee2d33bec79cffc7cc1970854d3ed0be2673d803693247780e22beb8e
7
- data.tar.gz: 6f5a94f01279a5b59311048e462f45919a80b747497e5da25d5cdf26af3a9cf74dc38e83c288597e0b7d1dfbda18c0d98221be9a681478ed9e2aa2d0aef0132e
6
+ metadata.gz: a93342d856cbf434aa2d91bfb0474af6ea101097d1ed9e0b3fd39195ca9d4d21a3f069b61dcfaa57335311a52b275fb69dafa257de65cad330f7bb9ed0074a81
7
+ data.tar.gz: 8ef681efd4c847ad522542516db479543b9c3684319faba8f19a6d8b4061e02a55462ea1373d4b93279b028ae3eb16f358fe128e3abe231b1f55d257030811a5
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
 
@@ -22,6 +23,12 @@ export PATH=$PATH:/usr/local/go/bin
22
23
  export PATH=$PATH:$HOME/go/bin
23
24
  ```
24
25
 
26
+ ## Examples
27
+
28
+ [centos7_golang.sh](https://gist.github.com/s3fxn/e1f3026722b0d074c34223a2cf60cece)
29
+
30
+ [ubuntu18.04_golang.sh](https://gist.github.com/s3fxn/554de2d09a948d4a563a15ad1fe4db01)
31
+
25
32
  ## Contributing
26
33
 
27
34
  Bug reports and pull requests are welcome on GitHub at https://github.com/s3fxn/go-install.
data/exe/go-install CHANGED
@@ -19,6 +19,9 @@ PATH setting
19
19
  export PATH=$PATH:/usr/local/go/bin
20
20
  export PATH=$PATH:$HOME/go/bin
21
21
 
22
+ Installation of 'dep'
23
+ $ mkdir -p ~/go/bin && curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
24
+
22
25
  EOM
23
26
  exit 1
24
27
  end
@@ -28,7 +31,7 @@ if Process.uid != 0
28
31
  exit 1
29
32
  end
30
33
 
31
- 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
32
35
  latest = versions.first
33
36
 
34
37
  if ARGV[0] == 'latest'
@@ -82,7 +85,7 @@ puts "Download from #{uri}"
82
85
  puts cmd
83
86
 
84
87
  open("|#{cmd}", 'r+') { |io|
85
- io.write open(uri).read
88
+ io.write URI.open(uri).read
86
89
  }
87
90
 
88
91
  puts <<EOM
@@ -92,4 +95,5 @@ go#{version} is installed in /usr/local/go .
92
95
  Add following lines to .profile or .bash_profile
93
96
  export PATH=$PATH:/usr/local/go/bin
94
97
  export PATH=$PATH:$HOME/go/bin
98
+
95
99
  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
 
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.16"
24
- spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "bundler", "~> 2.1"
24
+ spec.add_development_dependency "rake", "~> 13.0.1"
25
25
  end
@@ -1,5 +1,5 @@
1
1
  module Go
2
2
  module Install
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.4"
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.0
4
+ version: 0.1.4
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-21 00:00:00.000000000 Z
11
+ date: 2021-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '2.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 13.0.1
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: '10.0'
40
+ version: 13.0.1
41
41
  description:
42
42
  email:
43
43
  - sssfxn@gmail.com
@@ -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: []