helm-rb 0.1.0-x64-mswin64

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: 0b2bf13ce03d0c7b5b37f43ba4d6a56b854459a95d841e51e39e3f01bb2dcb5d
4
+ data.tar.gz: 87529e08b0175f080f9478d926aa85458638909bf7902032dfa751cf8188da21
5
+ SHA512:
6
+ metadata.gz: a14eaaad67332223e9d5ff630bc8eb831417aa170727405a1ce0d3bcc11d48a741e0145046b281255e00e1c14b3c19dba6bcb9b49837daf7e2abed0fd18ebc02
7
+ data.tar.gz: 9c7e6ad6a9775c4a93bb6f1d2e3b86f12ab114d58528fd656f937c92b3ba696468ae6a0824811cd0c8f0e73970f126cecb14fd6a94d3b6ff2275fe291c45e4e8
data/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ ## 0.1.0
2
+ * Birthday!
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development do
6
+ gem 'rake'
7
+ end
8
+
9
+ group :test do
10
+ gem 'rspec'
11
+ end
data/Rakefile ADDED
@@ -0,0 +1,55 @@
1
+ require 'bundler/setup'
2
+ require 'rspec/core/rake_task'
3
+ require 'fileutils'
4
+
5
+ DISTRIBUTIONS = [
6
+ { rb_platform: 'x86_64-darwin', filename: 'darwin-amd64.tar.gz' },
7
+ { rb_platform: 'x86_64-linux', filename: 'linux-amd64.tar.gz' },
8
+ { rb_platform: 'arm-linux', filename: 'linux-arm.tar.gz' },
9
+ { rb_platform: 'arm64-linux', filename: 'linux-arm64.tar.gz' },
10
+ { rb_platform: 'i386-linux', filename: 'linux-386.tar.gz' },
11
+ { rb_platform: 'ppc64le-linux', filename: 'linux-ppc64le.tar.gz' },
12
+ { rb_platform: 's390x-linux', filename: 'linux-s390x.tar.gz' },
13
+ { rb_platform: 'x64-mswin64', filename: 'windows-amd64.zip' }
14
+ ]
15
+
16
+ task :build do
17
+ require 'rubygems/package'
18
+ require 'open-uri'
19
+ require 'helm-rb/version'
20
+
21
+ FileUtils.mkdir_p('pkg')
22
+
23
+ DISTRIBUTIONS.each do |distro|
24
+ FileUtils.rm_rf('vendor')
25
+ FileUtils.mkdir('vendor')
26
+
27
+ url = "https://get.helm.sh/helm-v#{HelmRb::HELM_VERSION}-#{distro[:filename]}"
28
+ ext = distro[:filename][distro[:filename].index('.')..-1]
29
+ distro_name = distro[:filename].chomp(ext)
30
+ archive = "helm#{ext}"
31
+ File.write(archive, open(url).read)
32
+ FileUtils.mkdir('helm')
33
+ system("tar -C helm -xzvf #{archive}")
34
+ FileUtils.rm(archive)
35
+
36
+ Dir.glob(File.join('helm', distro_name, 'helm*')).each do |exe|
37
+ system("chmod +x #{exe}")
38
+ FileUtils.cp(exe, 'vendor')
39
+ end
40
+
41
+ FileUtils.rm_rf('helm')
42
+
43
+ gemspec = eval(File.read('helm-rb.gemspec'))
44
+ gemspec.platform = distro[:rb_platform]
45
+ package = Gem::Package.build(gemspec)
46
+ FileUtils.mv(package, 'pkg')
47
+ end
48
+ end
49
+
50
+ task default: :spec
51
+
52
+ desc 'Run specs'
53
+ RSpec::Core::RakeTask.new do |t|
54
+ t.pattern = './spec/**/*_spec.rb'
55
+ end
data/helm-rb.gemspec ADDED
@@ -0,0 +1,18 @@
1
+ $:.unshift File.join(File.dirname(__FILE__), 'lib')
2
+ require 'helm-rb/version'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'helm-rb'
6
+ s.version = ::HelmRb::VERSION
7
+ s.authors = ['Cameron Dutro']
8
+ s.email = ['camertron@gmail.com']
9
+ s.homepage = 'http://github.com/getkuby/helm-rb'
10
+ s.license = 'Apache-2.0'
11
+
12
+ s.description = s.summary = 'Helm distributed as a Rubygem.'
13
+
14
+ s.platform = Gem::Platform::RUBY
15
+
16
+ s.require_path = 'lib'
17
+ s.files = Dir['{lib,spec,vendor}/**/*', 'Gemfile', 'CHANGELOG.md', 'README.md', 'Rakefile', 'helm-rb.gemspec']
18
+ end
@@ -0,0 +1,4 @@
1
+ module HelmRb
2
+ VERSION = '0.1.0'
3
+ HELM_VERSION = '3.1.1'
4
+ end
data/lib/helm-rb.rb ADDED
@@ -0,0 +1,8 @@
1
+ module HelmRb
2
+ def self.executable
3
+ @path ||= begin
4
+ pattern = File.expand_path(File.join('..', 'vendor', 'helm*'), __dir__)
5
+ Dir.glob(pattern).first
6
+ end
7
+ end
8
+ end
data/vendor/helm.exe ADDED
Binary file
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: helm-rb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: x64-mswin64
6
+ authors:
7
+ - Cameron Dutro
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Helm 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
+ - Rakefile
23
+ - helm-rb.gemspec
24
+ - lib/helm-rb.rb
25
+ - lib/helm-rb/version.rb
26
+ - vendor/helm.exe
27
+ homepage: http://github.com/getkuby/helm-rb
28
+ licenses:
29
+ - Apache-2.0
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubygems_version: 3.0.6
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: Helm distributed as a Rubygem.
50
+ test_files: []