rubygems calls chdir directly, actions should be enclosed in a block
When installing gems, windows_stub_script is called in installer.rb which
directly calls Dir.chdir.
If this were to be called inside another Dir.chdir call with a block passed to
it, it would spew warnings.
Instead the proposed patch encloses the actions in a block, removing the need
for saving and restoring a path around the chdir call.
#1 Updated by drbrain (Eric Hodel) about 6 years ago
- Status changed from Open to Closed
- Assignee set to drbrain (Eric Hodel)
- Target version set to 1.9.3
Unfortunately your supplied patch did not pass the tests.
I committed a different version which allowed the tests to pass to rubygems trunk. It will be imported when RubyGems 1.5 is released at the end of January.