summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/shared/replace.rb
diff options
context:
space:
mode:
authorEarlopain <14981592+Earlopain@users.noreply.github.com>2026-01-22 19:20:28 +0100
committerGitHub <noreply@github.com>2026-01-22 18:20:28 +0000
commit253bfd7d09b78171f7c30444bade28aed458a067 (patch)
tree0c8c6f93f58dee01325cb3d0185054980394a2a3 /spec/ruby/core/array/shared/replace.rb
parentfd7bf518a6cf5c73ab957c4c19a3e974fa6b9fbe (diff)
Check for folder in `sync_default_gems` (#15933)
It was not clear to me that you have to do anything for this command to work. Previous versions (for example on the 3.4 branch) had this check but it got lost along the way. Without this when the folder doesn't exist, you get this error (after it deleted all the files): ``` $ ./tool/sync_default_gems.rb syntax_suggest Sync ruby/syntax_suggest ./tool/sync_default_gems.rb:464:in 'SyncDefaultGems.check_prerelease_version': undefined method 'version' for nil (NoMethodError) puts "#{gem}-#{spec.version} is not latest version of rubygems.org" if spec.version.to_s != latest_version ^^^^^^^^ from ./tool/sync_default_gems.rb:436:in 'SyncDefaultGems.sync_default_gems' from ./tool/sync_default_gems.rb:942:in '<module:SyncDefaultGems>' from ./tool/sync_default_gems.rb:10:in '<main>' ``` Now you get ``` $ ./tool/sync_default_gems.rb syntax_suggest Sync ruby/syntax_suggest Expected '../ruby/syntax_suggest' (/home/earlopain/Documents/ruby/syntax_suggest) to be a directory, but it didn't exist. ``` This was changed in https://github.com/ruby/ruby/commit/b722631b481314023b9fa2f3fd16fa9ab0b4bf9c Since then, `sync_lib` is unused, delete it
Diffstat (limited to 'spec/ruby/core/array/shared/replace.rb')
0 files changed, 0 insertions, 0 deletions