Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/ruby4.0.2-1/bearsampp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rubyVersion = "4.0.2-1"
rubyExe = "bin/ruby.exe"
rubyConsoleExe = "bin/setrbvars.cmd"

bundleRelease = "@RELEASE_VERSION@"
10 changes: 10 additions & 0 deletions bin/ruby4.0.2-1/rubygems/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@echo off
set RUBYBINPATH=%~dp0..\bin
pushd %RUBYBINPATH%
set RUBYBINPATH=%CD%
popd
Comment on lines +2 to +5
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Unquoted pushd path 🐞 Bug ☼ Reliability

The new RubyGems installer batch script uses pushd %RUBYBINPATH% without quotes, which fails when
the computed path contains spaces. This can break the Gradle processRubyGems step because Gradle
executes the script from an absolute path where %~dp0 commonly includes spaces on Windows.
Agent Prompt
## Issue description
`bin/ruby4.0.2-1/rubygems/install.bat` uses `pushd %RUBYBINPATH%` without quotes. On Windows, this breaks when `%RUBYBINPATH%` contains spaces (common when the repo/build directory is under `C:\Users\<Name>\...`).

## Issue Context
Gradle executes this script via `cmd /c` and `%~dp0` expands to the absolute script directory. If that absolute path contains spaces, unquoted `pushd` will mis-parse the path.

## Fix Focus Areas
- bin/ruby4.0.2-1/rubygems/install.bat[1-6]

## Suggested change
- Use the safe quoting form for `set` and `pushd`, e.g.:
  - `set "RUBYBINPATH=%~dp0..\bin"`
  - `pushd "%RUBYBINPATH%"`
  - Keep the rest of the logic unchanged.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


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
1 change: 1 addition & 0 deletions bin/ruby4.0.2-1/rubygems/rubygems.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rubygems = https://github.com/Bearsampp/modules-untouched/releases/download/ruby-2026.4.12/rubygems-update-4.0.10.gem
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bundle.name=ruby
bundle.release=2026.1.16
bundle.release=2026.4.12
bundle.type=tools
bundle.format=7z
1 change: 1 addition & 0 deletions releases.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
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
3.4.4-2 = https://github.com/Bearsampp/module-ruby/releases/download/2025.7.2/bearsampp-ruby-3.4.4-2-2025.7.2.7z
Expand Down
Loading