Re: [jruby-user] Re: JRuby and Sqlite3

christian <[email protected]> Fri, 10 Apr 2015 11:40:58 +0530
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CAMV7UWGrA_MFZHuUZ9oDaPn=+Mua_fp2ev9wHLA_dNTPc5JacA@mail.gmail.com>
--047d7b41cd34f97b1a051358a1a0
Content-Type: text/plain; charset=UTF-8

in newer ruby version including jruby there is no need to require
"rubygems" it is already required.

if you do not want rubygems from a jruby commandline execution then you
need to explicitly tell jruby not to require it:

jruby -Xcli.rubygems.enable=false -e "p require 'rubygems'"

-christian


On Fri, Apr 10, 2015 at 11:36 AM, Christian MICHON <
[email protected]> wrote:

> you still need to call rubygems before you call bundler anyway...
>
> On Fri, Apr 10, 2015 at 6:26 AM, Tim Uckun <[email protected]> wrote:
>
>> rubygems allows you to be able to require the other libs in your script.
>> Basically it tells your script which directories to load your libs from.
>>
>> These days people mostly use bundler though.
>>
>> On Fri, Apr 10, 2015 at 4:24 PM, Cloudrck Tech <[email protected]>
>> wrote:
>>
>>> Forgive my ignorance, but I'm new to JRuby. What is the reason for
>>> requiring "rubygems", I don't see any specific code that uses a gem.
>>>
>>> --
>>> Posted via http://www.ruby-forum.com/.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>
>>>
>>>
>>
>
>
> --
> Christian
>

--047d7b41cd34f97b1a051358a1a0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">in newer ruby version including jruby there is no need to =
require &quot;rubygems&quot; it is already required.<div><br></div><div>if =
you do not want rubygems from a jruby commandline execution then you need t=
o explicitly tell jruby not to require it:</div><div><br></div><div>jruby -=
Xcli.rubygems.enable=3Dfalse -e &quot;p require &#39;rubygems&#39;&quot;<br=
></div><div><br></div><div>-christian</div><div><br></div></div><div class=
=3D"gmail_extra"><br><div class=3D"gmail_quote">On Fri, Apr 10, 2015 at 11:=
36 AM, Christian MICHON <span dir=3D"ltr">&lt;<a href=3D"mailto:christian.m=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span=
> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">you still need =
to call rubygems before you call bundler anyway...</div><div class=3D"gmail=
_extra"><div><div class=3D"h5"><br><div class=3D"gmail_quote">On Fri, Apr 1=
0, 2015 at 6:26 AM, Tim Uckun <span dir=3D"ltr">&lt;<a href=3D"mailto:timuc=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<b=
r><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:=
1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>rubygems allows you =
to be able to require the other libs in your script.=C2=A0 Basically it tel=
ls your script which directories to load your libs from.<br><br></div>These=
 days people mostly use bundler though.<br></div><div><div><div class=3D"gm=
ail_extra"><br><div class=3D"gmail_quote">On Fri, Apr 10, 2015 at 4:24 PM, =
Cloudrck Tech <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]"=
 target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex">Forgive my ignorance, but I&#39;m new to JRuby. What i=
s the reason for<br>
requiring &quot;rubygems&quot;, I don&#39;t see any specific code that uses=
 a gem.<br>
<div><div><br>
--<br>
Posted via <a href=3D"http://www.ruby-forum.com/" target=3D"_blank">http://=
www.ruby-forum.com/</a>.<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe from this list, please visit:<br>
<br>
=C2=A0 =C2=A0 <a href=3D"http://xircles.codehaus.org/manage_email" target=
=3D"_blank">http://xircles.codehaus.org/manage_email</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div></div><=
/div><span class=3D"HOEnZb"><font color=3D"#888888">-- <br><div>Christian<b=
r></div>
</font></span></div>
</blockquote></div><br></div>

--047d7b41cd34f97b1a051358a1a0--