gke-auth-plugin-rb 0.1.0-arm64-linux

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3cb41ff0322be568f38813379fa4a4b9450ee25d58a1b76e93db0a3d268ddb3a
4
+ data.tar.gz: fb74ece0101ef9f763bcb380bb9d0a87374dea2a3bebfffef73d29d4ca490de0
5
+ SHA512:
6
+ metadata.gz: 2652cdaabe272142c0df4354eee00a243afdc76b71aa3c37a3c349bc92f861d880d34453e494f09fd2b82cd41866d52b090afa70e82c4aece3130473d1a30f71
7
+ data.tar.gz: 5f9e2bce32c16d529490f120862ea1e893181d668101ce4dbd16d646925757387a1c8756b9111eb6aa5ce18de1aa5bbccd5c3b744fc322130eb67d79469e91c0
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: arm64-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: []