From e193d9455f926243fc914cfcfeb9882d065eda2f Mon Sep 17 00:00:00 2001 From: jwaisner Date: Sun, 9 Aug 2026 22:41:56 -0500 Subject: [PATCH 1/3] Ruby 4.0.6-1 release --- bin/ruby4.0.6-1/bearsampp.conf | 5 +++++ bin/ruby4.0.6-1/rubygems/install.bat | 10 ++++++++++ bin/ruby4.0.6-1/rubygems/rubygems.properties | 1 + build.properties | 2 +- releases.properties | 1 + 5 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 bin/ruby4.0.6-1/bearsampp.conf create mode 100644 bin/ruby4.0.6-1/rubygems/install.bat create mode 100644 bin/ruby4.0.6-1/rubygems/rubygems.properties diff --git a/bin/ruby4.0.6-1/bearsampp.conf b/bin/ruby4.0.6-1/bearsampp.conf new file mode 100644 index 00000000..8d7c0ad2 --- /dev/null +++ b/bin/ruby4.0.6-1/bearsampp.conf @@ -0,0 +1,5 @@ +rubyVersion = "4.0.6-1" +rubyExe = "bin/ruby.exe" +rubyConsoleExe = "bin/setrbvars.cmd" + +bundleRelease = "@RELEASE_VERSION@" diff --git a/bin/ruby4.0.6-1/rubygems/install.bat b/bin/ruby4.0.6-1/rubygems/install.bat new file mode 100644 index 00000000..04ae2182 --- /dev/null +++ b/bin/ruby4.0.6-1/rubygems/install.bat @@ -0,0 +1,10 @@ +@echo off +set RUBYBINPATH=%~dp0..\bin +pushd %RUBYBINPATH% +set RUBYBINPATH=%CD% +popd + +CALL "%RUBYBINPATH%\gem.cmd" install rubygems-update.gem --local --no-document +IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +"%RUBYBINPATH%\gem.cmd" update --system --no-document diff --git a/bin/ruby4.0.6-1/rubygems/rubygems.properties b/bin/ruby4.0.6-1/rubygems/rubygems.properties new file mode 100644 index 00000000..0314736c --- /dev/null +++ b/bin/ruby4.0.6-1/rubygems/rubygems.properties @@ -0,0 +1 @@ +rubygems = https://github.com/Bearsampp/modules-untouched/releases/download/ruby-2026.8.9/rubygems-update-4.0.18.gem diff --git a/build.properties b/build.properties index 03ccaf0e..4fbf074a 100644 --- a/build.properties +++ b/build.properties @@ -1,4 +1,4 @@ bundle.name=ruby -bundle.release=2026.6.5 +bundle.release=2026.8.9 bundle.type=tools bundle.format=7z diff --git a/releases.properties b/releases.properties index 05f7f7e6..293cfc72 100644 --- a/releases.properties +++ b/releases.properties @@ -1,3 +1,4 @@ +4.0.6-1 = https://github.com/Bearsampp/module-ruby/releases/download/2026.8.9/bearsampp-ruby-4.0.6-1-2026.8.9.7z 4.0.2-1 = https://github.com/Bearsampp/module-ruby/releases/download/2026.4.12/bearsampp-ruby-4.0.2-1-2026.4.12.7z 3.4.7 = https://github.com/Bearsampp/module-ruby/releases/download/2025.11.23/bearsampp-ruby-3.4.7-2025.11.23.7z 3.4.5 = https://github.com/Bearsampp/module-ruby/releases/download/2025.8.16/bearsampp-ruby-3.4.5-2025.8.16.7z From eb39e7647862ff1d7756cd786c889cba43026e70 Mon Sep 17 00:00:00 2001 From: Bear Date: Mon, 10 Aug 2026 00:27:03 -0500 Subject: [PATCH 2/3] Remove bundleRelease placeholder from bearsampp.conf files --- bin/ruby4.0.2-1/bearsampp.conf | 2 -- bin/ruby4.0.6-1/bearsampp.conf | 1 - 2 files changed, 3 deletions(-) diff --git a/bin/ruby4.0.2-1/bearsampp.conf b/bin/ruby4.0.2-1/bearsampp.conf index 61ed838b..a6539d77 100644 --- a/bin/ruby4.0.2-1/bearsampp.conf +++ b/bin/ruby4.0.2-1/bearsampp.conf @@ -1,5 +1,3 @@ rubyVersion = "4.0.2-1" rubyExe = "bin/ruby.exe" rubyConsoleExe = "bin/setrbvars.cmd" - -bundleRelease = "@RELEASE_VERSION@" diff --git a/bin/ruby4.0.6-1/bearsampp.conf b/bin/ruby4.0.6-1/bearsampp.conf index 8d7c0ad2..f7856505 100644 --- a/bin/ruby4.0.6-1/bearsampp.conf +++ b/bin/ruby4.0.6-1/bearsampp.conf @@ -2,4 +2,3 @@ rubyVersion = "4.0.6-1" rubyExe = "bin/ruby.exe" rubyConsoleExe = "bin/setrbvars.cmd" -bundleRelease = "@RELEASE_VERSION@" From 0310b5c4cae820219f8ab8020bcddd4f6fedb564 Mon Sep 17 00:00:00 2001 From: Bear Date: Mon, 10 Aug 2026 00:30:37 -0500 Subject: [PATCH 3/3] Improve error handling and quoting in rubygems install.bat scripts - Add quotes around RUBYBINPATH variable assignments to handle paths with spaces - Add error handling for pushd command with || exit /b %ERRORLEVEL% - Add CALL prefix and error checking for gem update --system command - Apply changes consistently across all Ruby versions (4.0.2-1, 4.0.5-1, 4.0.6-1) --- bin/ruby4.0.2-1/rubygems/install.bat | 9 +++++---- bin/ruby4.0.5-1/rubygems/install.bat | 9 +++++---- bin/ruby4.0.6-1/rubygems/install.bat | 9 +++++---- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/bin/ruby4.0.2-1/rubygems/install.bat b/bin/ruby4.0.2-1/rubygems/install.bat index 04ae2182..c2f81ac0 100644 --- a/bin/ruby4.0.2-1/rubygems/install.bat +++ b/bin/ruby4.0.2-1/rubygems/install.bat @@ -1,10 +1,11 @@ @echo off -set RUBYBINPATH=%~dp0..\bin -pushd %RUBYBINPATH% -set RUBYBINPATH=%CD% +set "RUBYBINPATH=%~dp0..\bin" +pushd "%RUBYBINPATH%" || exit /b %ERRORLEVEL% +set "RUBYBINPATH=%CD%" popd CALL "%RUBYBINPATH%\gem.cmd" install rubygems-update.gem --local --no-document IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% -"%RUBYBINPATH%\gem.cmd" update --system --no-document +CALL "%RUBYBINPATH%\gem.cmd" update --system --no-document +IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% diff --git a/bin/ruby4.0.5-1/rubygems/install.bat b/bin/ruby4.0.5-1/rubygems/install.bat index 04ae2182..c2f81ac0 100644 --- a/bin/ruby4.0.5-1/rubygems/install.bat +++ b/bin/ruby4.0.5-1/rubygems/install.bat @@ -1,10 +1,11 @@ @echo off -set RUBYBINPATH=%~dp0..\bin -pushd %RUBYBINPATH% -set RUBYBINPATH=%CD% +set "RUBYBINPATH=%~dp0..\bin" +pushd "%RUBYBINPATH%" || exit /b %ERRORLEVEL% +set "RUBYBINPATH=%CD%" popd CALL "%RUBYBINPATH%\gem.cmd" install rubygems-update.gem --local --no-document IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% -"%RUBYBINPATH%\gem.cmd" update --system --no-document +CALL "%RUBYBINPATH%\gem.cmd" update --system --no-document +IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% diff --git a/bin/ruby4.0.6-1/rubygems/install.bat b/bin/ruby4.0.6-1/rubygems/install.bat index 04ae2182..c2f81ac0 100644 --- a/bin/ruby4.0.6-1/rubygems/install.bat +++ b/bin/ruby4.0.6-1/rubygems/install.bat @@ -1,10 +1,11 @@ @echo off -set RUBYBINPATH=%~dp0..\bin -pushd %RUBYBINPATH% -set RUBYBINPATH=%CD% +set "RUBYBINPATH=%~dp0..\bin" +pushd "%RUBYBINPATH%" || exit /b %ERRORLEVEL% +set "RUBYBINPATH=%CD%" popd CALL "%RUBYBINPATH%\gem.cmd" install rubygems-update.gem --local --no-document IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% -"%RUBYBINPATH%\gem.cmd" update --system --no-document +CALL "%RUBYBINPATH%\gem.cmd" update --system --no-document +IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%