go-install 0.1.5 → 0.1.6

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: 3926c7ad6a234e5587b4eca853f5207afa9091533382cce784fd4b1905df4d98
4
- data.tar.gz: a4ee748f200ae4002076161e08c5597c5064009461128a9086a6ba7d5eb325ca
3
+ metadata.gz: 981c501785c2ec66554be25ac517a0350e0187508b79377f61a564d10d529f7a
4
+ data.tar.gz: df50630c3b5650a81a86afa66dec62e410a1f90e4ea6082c4e65eb95b32d308d
5
5
  SHA512:
6
- metadata.gz: 5b6eba01691883b6659bc23c751a2241ad173667a1cdf4ef24489c9051f291ececf8450cf2cce279bce57c66d90d2fb704969a662325482eeea00055d1aacb34
7
- data.tar.gz: ecae8c1ecc9e4f45946db7ee1853294db3b9c554f8823a7e9358f98855315ecabe94ce3785b6d3b874ea8607bb04a671f074da9641f8225c74773a236aaf7528
6
+ metadata.gz: 272e1118fc781f85bc1949cfe683d1e7d6b6a8cf450dc0f3f13b8a59b7935affa401f11568aaea99b19583d10ddeb28b78feb9d964365eda8ebecb9f765b96b7
7
+ data.tar.gz: 74bdc0022a51965fede2227b02610aa8958e65bd08ed480b1ade5d0185899cb24d1830bf7731b57738228cd3814f3deafeb1a1382864b9cb6ef3aa79d701b872
data/exe/go-install CHANGED
@@ -76,14 +76,15 @@ end
76
76
 
77
77
  os = 'linux'
78
78
  uri = "https://dl.google.com/go/go#{version}.#{os}-#{arch}.tar.gz"
79
- cmd = 'tar -C /usr/local -xzf -'
79
+ cmd = %w[tar -C /usr/local -xzf -]
80
80
 
81
81
  puts "Download from #{uri}"
82
- puts cmd
82
+ puts cmd.join(" ")
83
83
 
84
- open("|#{cmd}", 'r+') { |io|
85
- io.write URI.open(uri).read
86
- }
84
+ IO.popen(cmd, "wb") do |io|
85
+ URI.open(uri, "rb") { |remote| IO.copy_stream(remote, io) }
86
+ end
87
+ raise "tar failed (exit #{$?.exitstatus}" unless $?.success?
87
88
 
88
89
  puts <<EOM
89
90
 
@@ -1,5 +1,5 @@
1
1
  module Go
2
2
  module Install
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go-install
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - s3fxn
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-01-12 00:00:00.000000000 Z
10
+ date: 2026-02-14 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler