Skip to content

rubygems creates ruby wrappers around non-ruby executables, causing them to fail #88

@olbrich

Description

@olbrich

when providing executables with a gem, they get wrapped in a ruby wrapper that provides some support for using previous
versions of a gem. If the executable is not a ruby file (e.g., a bash script, php, etc..) then the wrapper will fail.

Suggestions:

  • allow the gemspec to force the gem to be installed with '--no-wrapper' and leave it to the developer to properly
    wrap executables.
  • check the shebang line of the executable and skip wrapping for anything that explicitly uses something other than
    ruby
  • provide a warning at the time the gem is built that files will be wrapped (check for .bat files, or shebangs that don't include ruby... perhaps not perfect, but it will probably catch most cases).
  • document the existing behavior better and provide instructions for work arounds for non-ruby binaries.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions