From f062c901de3f8ecee46794d37fe92679dacacac5 Mon Sep 17 00:00:00 2001 From: skskjourney Date: Fri, 5 Jun 2026 12:05:16 +0900 Subject: [PATCH] Add v3.1.7 --- share/ruby-build/3.1.7 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 share/ruby-build/3.1.7 diff --git a/share/ruby-build/3.1.7 b/share/ruby-build/3.1.7 new file mode 100644 index 0000000..f7aa7b9 --- /dev/null +++ b/share/ruby-build/3.1.7 @@ -0,0 +1,14 @@ +# Detect distribution and version. +if [ -f /etc/os-release ]; then + . /etc/os-release + OS_DISTRO=$ID + OS_VERSION=$VERSION_ID +else + echo "Cannot determine distribution." + exit 1 +fi + +# Detect architecture +ARCH=$(uname -m) + +install_package "ruby-3.1.7" "https://ruby.elastic-infra.com/${OS_DISTRO}/${OS_VERSION}/$ARCH/ruby-3.1.7.tar.gz" copy