[Rubygems-developers] improving gems bin scripts on windows
drbrain at segment7.net
Wed Jul 25 17:46:53 EDT 2007
On Jul 25, 2007, at 13:49, Gordon Thiesfeld wrote:
> I've been kicking this idea around for a while now, so I thought
> I'd get everyone's opinion on it.
> If it isn't a new idea, I apologize. Google didn't find anything
> on this mailing list.
> When you install a gem on windows, it creates two files in the bin
> dir, the bin script, and a .cmd file. The problem with this is
> when you try to exit out of some of these scripts, you get this
> message "Terminate batch job (Y/N)?".
> In the more recent versions of the one-click installer, the .rb
> and .rbw extension gets added to the PATHEXT environment variable
> (I believe), so windows will run these files if you type the name
> minus the extension. For instance, a file named chunky_bacon.rb
> will be executed by typing chunky_bacon.
> So, instead of creating two files in the bin dir - one without an
> extension, the other with a .cmd extension, I wonder if it would be
> better to create a single .rb file? The end result is fewer files
> in the bin directory, and not having to mess with the annoyances
> that the batch files cause.
I'm for it. I don't think any of the rest of the RubyGems developers
often develop on Windows, nor know what to look out for.
Could you write a patch for us?
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars
More information about the Rubygems-developers