On a windows box where I have ruby installed at "C:\Program Files\ruby\" rather than "C:\ruby\".
I ran:
gem update --system
The result was that the next time I tried to execute the gem command I got the following:
C:\>gem
The filename, directory name, or volume label syntax is incorrect.
I found that the gem.bat file had been changed and there was an extra double-quote on two lines.
@"ruby.exe"" "c:/Program Files/ruby/bin/gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
And
@"ruby.exe"" "%~dpn0" %*
In both these cases, where there were two juxtaposed double-quotes (two double-quotes in a row), I had to remove one of the double quotes. Yielding:
@"ruby.exe" "c:/Program Files/ruby/bin/gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
And
@"ruby.exe" "%~dpn0" %*
Problem was solved. I found a comment on the RubyGems forum that agreed with my fix.
December 24, 2008
December 09, 2008
Using patches to manage bug change-sets
I have just discovered that you can manage sets of changes in Eclipse by using patches.
In the Package Explorer, select Team | Create Patch...
Follow wizard to export the patch file to the clipboard, the filesystem or the workspace.
You can then Override and Update to return the workspace to a state corresponding to the CVS repository.
Later, you can Apply Patch.. from the Team submenu, select the patch file you previously exported. Voila, your changes are back.
In the Package Explorer, select Team | Create Patch...

You can then Override and Update to return the workspace to a state corresponding to the CVS repository.
Later, you can Apply Patch.. from the Team submenu, select the patch file you previously exported. Voila, your changes are back.
Subscribe to:
Posts (Atom)