gke-auth-plugin-rb 0.1.0-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1675e7428c54b4898d148433e4409b1303b7b3de7ecfa372e7ce9b9ea4958f41
4
+ data.tar.gz: 1e075c5a3138845ce15f374a12ef43cd02248b773b59285cf25660d4a27ac6dc
5
+ SHA512:
6
+ metadata.gz: 91e9bbf53c73499eb284b631b3f32a8d4fe6fb55b677dd4020e6b38761cafc5926ada12987c09c42ad64efea4dcb52101e6e3c8708e53e7d60f35f0568dd1399
7
+ data.tar.gz: 05116a1ae9b5851689514281dec33839de1852b3b599e874fdb61133b5f57a7476b8adcada2641a3347181319a1f3e7e333a8279e42a334dfb1333ba22ced789
data/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ ## 0.1.0
2
+ * Birthday!
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development do
6
+ gem 'debug'
7
+ gem 'rake'
8
+ gem 'rotp', '~> 6.2'
9
+ end
10
+
11
+ group :test do
12
+ gem 'rspec'
13
+ end
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
@@ -0,0 +1,4 @@
1
+ module GKEAuthPluginRb
2
+ VERSION = '0.1.0'
3
+ GKE_AUTH_PLUGIN_VERSION = '0.1.0'
4
+ end
@@ -0,0 +1,8 @@
1
+ module GKEAuthPluginRb
2
+ def self.executable
3
+ @executable ||= begin
4
+ pattern = File.expand_path(File.join('..', 'vendor', 'gke-auth-plugin*'), __dir__)
5
+ Dir.glob(pattern).first
6
+ end
7
+ end
8
+ 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: x86_64-linux
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: []