Create packages for more default ruby gems (#10531)

* Ruby updates

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add tools/create_gem_packages.rb

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust gem packages and gem binary_compression logic.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-09-27 01:14:59 -04:00
committed by GitHub
parent 8473668c0d
commit 768aede4a8
32 changed files with 515 additions and 2 deletions

View File

@@ -1442,6 +1442,7 @@ def upload(pkg_name = nil, pkg_version = nil, gitlab_token = nil, gitlab_token_u
packages.strip!
[packages].each do |package|
binary_compression_not_in_file = binary_compression.nil?
pkg_file = "#{CREW_LOCAL_REPO_ROOT}/packages/#{package}.rb"
binary_sha256_hash = { armv7l: nil, i686: nil, x86_64: nil }
# The following is used to figure out where a non-standard
@@ -1462,7 +1463,7 @@ def upload(pkg_name = nil, pkg_version = nil, gitlab_token = nil, gitlab_token_u
puts "#{release_dir}/#{package}-#{pkg_version}-chromeos-#{arch}.#{binary_compression.nil? ? '(tar.xz|tar.zst)' : binary_compression} not found.\n".lightred
next arch
end
if binary_compression.nil?
if binary_compression_not_in_file
ext = File.extname(new_tarfile)
binary_compression = @pkg.superclass.to_s == 'RUBY' ? 'gem' : "tar#{ext}"
binary_compression_line = " binary_compression '#{binary_compression}'"