kubectl-rb 0.2.0-x86-mswin64 → 0.2.1-x86-mswin64

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 875c6880ad25dd0d94bbcd6a516053784e3b6d52f7b5d42fbfa28ea4da7adc2b
4
- data.tar.gz: fd50cb1e2f57d97ab85043767d6ae4186816479e660d44bdfb7c503ec49ab0ee
3
+ metadata.gz: 6b17725449a45bf30a316490ab4eec58d2c1bdd1195b3138fded0d8c525a6961
4
+ data.tar.gz: '0983c8fb7aff498b8669c917e03901068d81fdabc3bcd16cfcc462d7b6bfa4f5'
5
5
  SHA512:
6
- metadata.gz: 8ea4daab19ad02296cd3613f9852e3bea8f22bc11987fbfd12d1d40be711d03b67bacd56801d298f18334ef72a7cfa03c38c021f01a94f8eea19bfa1812e734d
7
- data.tar.gz: 667146a9cd157842f9216ce484f45981bc1c48e006a4f85c21872ea7aa8755fe56c31713bc8b0fb98c5d2fb30884760d1c5c07a71a18368a9045972535d83f2f
6
+ metadata.gz: 1e7f49c9800f86174f778d2f50f148cff4a0b77b2af36d8e8059d2684be020cf7ca41004e8b6a6b660decf5984b1c350dfcf0d2af8a1b173abb8e6cc87455a78
7
+ data.tar.gz: c2bde83f23f6cfb93e8f27575d60a9c0b676ceef4610c89985a5abbd31655899ec119605df2667211807cc49b91d98eaac8cb346553f78d42480d59b5b02b74f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.2.1
2
+ * Make sure the kubectl binary is executable.
3
+
1
4
  ## 0.2.0
2
5
  * Upgrade to kubectl 1.21.
3
6
  * Add support for ARM Macs.
data/Rakefile CHANGED
@@ -9,9 +9,10 @@ DISTRIBUTIONS = [
9
9
  { rb_platform: 'x86_64-linux', tuple: %w(linux amd64) },
10
10
  { rb_platform: 'arm-linux', tuple: %w(linux arm) },
11
11
  { rb_platform: 'arm64-linux', tuple: %w(linux arm64) },
12
+ { rb_platform: 'aarch64-linux', tuple: %w(linux arm64) },
12
13
  { rb_platform: 'ppc64le-linux', tuple: %w(linux ppc64le) },
13
14
  { rb_platform: 's390x-linux', tuple: %w(linux s390x) },
14
- { rb_platform: 'x86-mswin64', tuple: %w(windows 386), ext: '.exe' },
15
+ { rb_platform: 'x86-mswin64', tuple: %w(windows 386), ext: '.exe' },
15
16
  { rb_platform: 'x64-mswin64', tuple: %w(windows amd64), ext: '.exe' }
16
17
  ]
17
18
 
@@ -29,7 +30,11 @@ task :build do
29
30
  tuple = distro[:tuple].join('/')
30
31
  exe = "kubectl#{distro[:ext]}"
31
32
  url = "https://dl.k8s.io/release/v#{KubectlRb::KUBECTL_VERSION}/bin/#{tuple}/#{exe}"
32
- File.write(File.join('vendor', exe), URI.open(url).read)
33
+ vendored_exe = File.join('vendor', exe)
34
+ File.write(vendored_exe, URI.open(url).read)
35
+
36
+ # user rwx, group rx, world rx
37
+ File.chmod(0755, vendored_exe)
33
38
 
34
39
  gemspec = eval(File.read('kubectl-rb.gemspec'))
35
40
  gemspec.platform = distro[:rb_platform]
@@ -43,9 +48,7 @@ task :publish do
43
48
 
44
49
  Dir.glob(File.join('pkg', "kubectl-rb-#{KubectlRb::VERSION}-*.gem")).each do |pkg|
45
50
  puts "Publishing #{pkg}"
46
- STDOUT.write("Enter OTP code: ")
47
- otp = STDIN.gets.strip
48
- system("gem push -k rubygems --otp #{otp} #{pkg}")
51
+ system("gem push -k rubygems #{pkg}")
49
52
  end
50
53
  end
51
54
 
data/kubectl-rb.gemspec CHANGED
@@ -9,7 +9,8 @@ Gem::Specification.new do |s|
9
9
  s.homepage = 'http://github.com/getkuby/kubectl-rb'
10
10
  s.license = 'Apache-2.0'
11
11
 
12
- s.description = s.summary = 'Kubectl distributed as a Rubygem.'
12
+ s.summary = 'Kubectl distributed as a Rubygem.'
13
+ s.description = 'The kubectl binary executable packaged and distributed as a Rubygem.'
13
14
 
14
15
  s.platform = Gem::Platform::RUBY
15
16
 
@@ -1,4 +1,4 @@
1
1
  module KubectlRb
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  KUBECTL_VERSION = '1.21.2'
4
4
  end
data/vendor/kubectl.exe CHANGED
File without changes
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubectl-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: x86-mswin64
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-09 00:00:00.000000000 Z
11
+ date: 2021-08-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Kubectl distributed as a Rubygem.
13
+ description: The kubectl binary executable packaged and distributed as a Rubygem.
14
14
  email:
15
15
  - camertron@gmail.com
16
16
  executables: []
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  requirements: []
48
- rubygems_version: 3.2.3
48
+ rubygems_version: 3.2.22
49
49
  signing_key:
50
50
  specification_version: 4
51
51
  summary: Kubectl distributed as a Rubygem.