Skip to content

Default executable is system-dependent #104

Closed
gfredericks opened this Issue Jul 30, 2012 · 1 comment

2 participants

@gfredericks

The executable file used for the main.rb is (when not specified otherwise) chosen by picking the first file in bin/*.rb according to the ordering returned by Dir[...], which is system-dependent. Furthermore when making this rather arbitrary choice, no warning is made in the case where there is no gemspec, and so it can take a while to track down problems.

I suggest that both cases of Dir[...].first be changed to Dir[...].sort.first and that a warning be printed in the nogemspec case as well.

I will have a pull request shortly.

@BanzaiMan
JRuby Team member

Merged #105.

@BanzaiMan BanzaiMan closed this Jan 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.