Project

General

Profile

Actions

Feature #6769

open

rbinstall.rb: install both src and batch files separetely

Added by luislavena (Luis Lavena) over 11 years ago. Updated over 8 years ago.

Status:
Assigned
Target version:
-
[ruby-core:46607]

Description

=begin
Hello,

Current behavior of rbinstall.rb is to concat bin scripts (erb, rake, rdoc, etc) along with a batchfile stub in a single file, resulting in erb.bat, rdoc.bat etc.

Those files works OK when invoked directly, but they do not support the following scenarios:

  • Invoke it like "ruby -S rake", which looks for extension-less script in the path (and that does not exist)

  • Cannot invoke those scripts from another script, example, from Rake, do "ruby 'rdoc'" will not work.

To circumvent this issue at RubyInstaller, we copied the original bin scripts and replaced the batchfile stubs with simple ones:

https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L188-197

===

I would like to change rbinstall.rb to copy over verbatim bin scripts and simple batchfiles stubs.

That will solve the above two issues I mentioned plus open the scenario to a easy executable-based launcher, similar to gem-exefy:

https://github.com/bosko/gem-exefy

To have identifiable scripts in list of process plus, customized firewall rules and remove the dreaded "Terminate batch job" prompt.

Before I start working on this, I wanted to know what do you think about this?

Thanks in advance for your feedback and looking forward your responses.
=end

Updated by usa (Usaku NAKAMURA) over 11 years ago

IMO, it's okay.

Updated by luislavena (Luis Lavena) over 11 years ago

  • Assignee changed from usa (Usaku NAKAMURA) to luislavena (Luis Lavena)

Thank you Usa, will work on this.

Updated by ko1 (Koichi Sasada) over 11 years ago

ping.
status?

Updated by luislavena (Luis Lavena) over 11 years ago

ko1 (Koichi Sasada) wrote:

ping.
status?

Replied in [ruby-core:48192], still working on a patch, might show some progress this weekend.

Updated by mame (Yusuke Endoh) over 11 years ago

Luis, what's the status?

--
Yusuke Endoh

Updated by luislavena (Luis Lavena) over 11 years ago

  • Target version changed from 2.0.0 to 2.6

Sorry, was unable to work on this while still working on the other bug/issues.

I'm moving this to next minor.

Either way, RubyInstaller binary distributions have been doing what this ticket describes.

Thank you.

Updated by mame (Yusuke Endoh) over 11 years ago

Though it is better if it is implemented in this month, an accepted feature can be implemented up to code freeze (around Christmas).
If you are still having difficulties, it is okay to postpone to next minor.

Thanks,

--
Yusuke Endoh

Updated by luislavena (Luis Lavena) over 8 years ago

  • Assignee changed from luislavena (Luis Lavena) to nobu (Nobuyoshi Nakada)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0