From: Matt Mongeau Date: 2013-04-06T08:27:02+09:00 Subject: Re: How do you know what the main file in Ruby Projects is? --089e0122976297579f04d9a56c92 Content-Type: text/plain; charset=ISO-8859-1 Looking into rails, even it uses /usr/bin/env for determining the ruby version. On Fri, Apr 5, 2013 at 7:26 PM, Matt Mongeau wrote: > > Question: why does a gem have a shebang line at all? Aren't gems always > only ever required by other ruby scripts? > > When they have executable scripts like rails. > > > On Fri, Apr 5, 2013 at 7:16 PM, Matthew Kerwin wrote: > >> On Apr 6, 2013 8:03 AM, "Matthew Mongeau" >> wrote: >> > >> > I'm interested in the issue with using env, but I find you explanation >> a but hard to follow. What are some situations that lead to the problems >> you are describing. I'm currently using env in some gems and if there is a >> strong argument against it, I don't mind switching it. >> >> Question: why does a gem have a shebang line at all? Aren't gems always >> only ever required by other ruby scripts? >> > > --089e0122976297579f04d9a56c92 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Looking into rails, even it uses /usr/bin/env for determin= ing the ruby version.


On Fri, Apr 5, 2013 at 7:26 PM, Matt Mongeau <haloge= nandtoast@gmail.com> wrote:
>=A0Question: why doe= s a gem have a shebang line at all? Aren't gems always only ever requir= ed by other ruby scripts?

When they have executable scripts like rails.


On Fri, Apr 5, 2013 at 7:16 PM, Matthew Kerwin &= lt;matthew@kerwi= n.net.au> wrote:

On Apr 6, 2013 8:03 AM, "Matthe= w Mongeau" <halogenandtoast@gmail.com> wrote:
>
> I'm interested in the issue with using env, but I find you explana= tion a but hard to follow. What are some situations that lead to the proble= ms you are describing. I'm currently using env in some gems and if ther= e is a strong argument against it, I don't mind switching it.

Question: why does a gem have a shebang line at all? Aren't ge= ms always only ever required by other ruby scripts?



--089e0122976297579f04d9a56c92--