File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,11 +10,19 @@ fixTestProjectFolderPrivs
1010# Run common tests
1111checkCommon
1212
13+
1314# Run devcontainer specific tests
1415check " rails" rails --version
1516check " rails installation path" gem which rails
1617check " user has write permission to rvm gems" [ -w /usr/local/rvm/gems ]
1718check " user has write permission to rvm gems default" [ -w /usr/local/rvm/gems/default ]
19+ # Check if we can reach rubygems.org before proceeding.
20+ # This uses curl to silently (-s) make a request to https://rubygems.org
21+ # Redirects output to /dev/null because we only care if the request succeeds, not the result itself.
22+ if ! curl -s https://rubygems.org > /dev/null; then
23+ echo " Network access to rubygems.org is unavailable. Please check network or proxy settings."
24+ exit 1
25+ fi
1826check " user can install gems" gem install github-markup
1927
2028# Report result
You can’t perform that action at this time.
0 commit comments