gke-auth-plugin-rb 0.1.0-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +2 -0
- data/Gemfile +13 -0
- data/LICENSE +21 -0
- data/Rakefile +71 -0
- data/gke-auth-plugin-rb.gemspec +19 -0
- data/lib/gke-auth-plugin-rb/version.rb +4 -0
- data/lib/gke-auth-plugin-rb.rb +8 -0
- data/vendor/gke-auth-plugin +0 -0
- metadata +51 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3cb23d1e306fd89eea98ced1ec6412a3f85c918ed573ef72d1544ddc8074187a
|
4
|
+
data.tar.gz: e30a1ba33edbc0942e898edb6eb8a3d433989f8ea71f7e4f739f83394a21677d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: afeb58fc6c3ac74206d9f040b7d659969d9d565fb09b2e6c47a52b9b872fd45823e62904b8f7933d7f6bd96cb642cddd580d0f2bf2d69ec09d29bd89df453968
|
7
|
+
data.tar.gz: 22f71d8dd5a324fb33e2e95e5990a31adeeb5aa79bf21ece664f26d236b8a3056ac71c3b8602fcc36e9e102407f314bd2cecb4b344ac8aee6ec70b780efd9e06
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 Travis Thompson and Cameron C. Dutro
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
DISTRIBUTIONS = [
|
6
|
+
{ rb_platform: 'x86_64-darwin', tuple: %w(darwin amd64) },
|
7
|
+
{ rb_platform: 'arm64-darwin', tuple: %w(darwin arm64) },
|
8
|
+
{ rb_platform: 'x86-linux', tuple: %w(linux 386) },
|
9
|
+
{ rb_platform: 'x86_64-linux', tuple: %w(linux amd64) },
|
10
|
+
{ rb_platform: 'arm-linux', tuple: %w(linux arm) },
|
11
|
+
{ rb_platform: 'arm64-linux', tuple: %w(linux arm64) },
|
12
|
+
{ rb_platform: 'aarch64-linux', tuple: %w(linux arm64) },
|
13
|
+
{ rb_platform: 'ppc64le-linux', tuple: %w(linux ppc64le) },
|
14
|
+
{ rb_platform: 's390x-linux', tuple: %w(linux s390x) },
|
15
|
+
{ rb_platform: 'x86-mswin64', tuple: %w(windows 386), ext: '.exe' },
|
16
|
+
{ rb_platform: 'x64-mswin64', tuple: %w(windows amd64), ext: '.exe' }
|
17
|
+
]
|
18
|
+
|
19
|
+
task :build do
|
20
|
+
require 'rubygems/package'
|
21
|
+
require 'gke-auth-plugin-rb/version'
|
22
|
+
|
23
|
+
FileUtils.mkdir_p('pkg')
|
24
|
+
|
25
|
+
unless File.directory?('./tmp/gke-auth-plugin')
|
26
|
+
system('git clone https://github.com/traviswt/gke-auth-plugin.git tmp/gke-auth-plugin/')
|
27
|
+
end
|
28
|
+
|
29
|
+
Dir.chdir('tmp/gke-auth-plugin') do
|
30
|
+
system('git checkout dd706e7dc4c0ca6a5d7af982d7218a4c6372501e')
|
31
|
+
end
|
32
|
+
|
33
|
+
DISTRIBUTIONS.each do |distro|
|
34
|
+
FileUtils.rm_rf('vendor')
|
35
|
+
FileUtils.mkdir('vendor')
|
36
|
+
|
37
|
+
Dir.chdir('./tmp/gke-auth-plugin') do
|
38
|
+
system({ 'GOOS' => distro[:tuple][0], 'GOARCH' => distro[:tuple][1] }, 'make')
|
39
|
+
end
|
40
|
+
|
41
|
+
vendored_exe = "./vendor/gke-auth-plugin#{distro[:ext]}"
|
42
|
+
FileUtils.cp('./tmp/gke-auth-plugin/bin/gke-auth-plugin', vendored_exe)
|
43
|
+
|
44
|
+
# user rwx, group rx, world rxa
|
45
|
+
File.chmod(0755, vendored_exe)
|
46
|
+
|
47
|
+
gemspec = eval(File.read('gke-auth-plugin-rb.gemspec'))
|
48
|
+
gemspec.platform = distro[:rb_platform]
|
49
|
+
package = Gem::Package.build(gemspec)
|
50
|
+
FileUtils.mv(package, 'pkg')
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
task :publish do
|
55
|
+
require 'kubectl-rb/version'
|
56
|
+
require 'rotp'
|
57
|
+
|
58
|
+
totp = ROTP::TOTP.new(ENV.fetch('TOTP_SECRET'), issuer: 'rubygems.org')
|
59
|
+
|
60
|
+
Dir.glob(File.join('pkg', "kubectl-rb-#{KubectlRb::VERSION}-*.gem")).each do |pkg|
|
61
|
+
puts "Publishing #{pkg}"
|
62
|
+
system("gem push --otp #{totp.now} -k rubygems #{pkg}")
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
task default: :spec
|
67
|
+
|
68
|
+
desc 'Run specs'
|
69
|
+
RSpec::Core::RakeTask.new do |t|
|
70
|
+
t.pattern = './spec/**/*_spec.rb'
|
71
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
$:.unshift File.join(File.dirname(__FILE__), 'lib')
|
2
|
+
require 'gke-auth-plugin-rb/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = 'gke-auth-plugin-rb'
|
6
|
+
s.version = ::GKEAuthPluginRb::VERSION
|
7
|
+
s.authors = ['Cameron Dutro']
|
8
|
+
s.email = ['camertron@gmail.com']
|
9
|
+
s.homepage = 'http://github.com/getkuby/gke-auth-plugin-rb'
|
10
|
+
s.license = 'MIT'
|
11
|
+
|
12
|
+
s.summary = 'The gke-auth-plugin executable by @traviswt distributed as a Rubygem.'
|
13
|
+
s.description = 'The gke-auth-plugin executable by @traviswt distributed as a Rubygem.'
|
14
|
+
|
15
|
+
s.platform = Gem::Platform::RUBY
|
16
|
+
|
17
|
+
s.require_path = 'lib'
|
18
|
+
s.files = Dir['{lib,spec,vendor}/**/*', 'Gemfile', 'LICENSE', 'CHANGELOG.md', 'README.md', 'Rakefile', 'gke-auth-plugin-rb.gemspec']
|
19
|
+
end
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gke-auth-plugin-rb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: arm64-darwin
|
6
|
+
authors:
|
7
|
+
- Cameron Dutro
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: The gke-auth-plugin executable by @traviswt distributed as a Rubygem.
|
14
|
+
email:
|
15
|
+
- camertron@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- CHANGELOG.md
|
21
|
+
- Gemfile
|
22
|
+
- LICENSE
|
23
|
+
- Rakefile
|
24
|
+
- gke-auth-plugin-rb.gemspec
|
25
|
+
- lib/gke-auth-plugin-rb.rb
|
26
|
+
- lib/gke-auth-plugin-rb/version.rb
|
27
|
+
- vendor/gke-auth-plugin
|
28
|
+
homepage: http://github.com/getkuby/gke-auth-plugin-rb
|
29
|
+
licenses:
|
30
|
+
- MIT
|
31
|
+
metadata: {}
|
32
|
+
post_install_message:
|
33
|
+
rdoc_options: []
|
34
|
+
require_paths:
|
35
|
+
- lib
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
requirements: []
|
47
|
+
rubygems_version: 3.4.5
|
48
|
+
signing_key:
|
49
|
+
specification_version: 4
|
50
|
+
summary: The gke-auth-plugin executable by @traviswt distributed as a Rubygem.
|
51
|
+
test_files: []
|