Ruby instance inside Textmate bundle

This is probably a pretty unusual request, but I’d like to create a
Textmate bundle which comes with Ruby embedded in it. This is because I
would like to use the latest Ruby (currently 1.9.3) in the bundle even
though Lion currently comes with 1.8.7. The bundle would not add Ruby
functionality, but this embedded Ruby would be used to implement
features of the bundle.

Can anyone here offer thoughts on whether this is totally crazy or
whether it should work? Can you offer any pointers on how I might go
about doing this? If it has been done by others can you point me to
bundles that have done this?

Thanks!

http://beginrescueend.com/rvm/install/

But any ruby you package with the bundle is still going to need to be
compiled for whichever architecture/OS combo it’s ultimately run on.
If that’s likely to be vary, using a package manager is usually the
better way to handle dependencies. Consider Homebrew, Macports, or
Fink.

C. Zona wrote in post #1030343:

http://beginrescueend.com/rvm/install/

But any ruby you package with the bundle is still going to need to be
compiled for whichever architecture/OS combo it’s ultimately run on.
If that’s likely to be vary, using a package manager is usually the
better way to handle dependencies. Consider Homebrew, Macports, or
Fink.

I have seen that, but I don’t understand how that helps me embed ruby
within a bundle. It seems like something every user of the bundle would
need to use to set up a version of ruby, which is what I am trying to
avoid. Can you elaborate?

Maybe I’m missing something here, but since your users will be strictly
TextMate users (I presume), I’m not sure that they would appreciate a
bundled Ruby version, as they probably already have a couple of Ruby
versions installed anyway. Or does your bundle target a completely
different audience which, in all likelihood, doesn’t work with Ruby at
all?

RVM places rubies, gems, et al within ~/.rvm. In that respect, it is
physically portable.

User installation of RVM itself amounts to a three line snippet for
them to copy/paste into Terminal. If you want to take even that small
step out of the user’s hands, visit RVM’s irc channel. The author and
several of the maintainers generously make themselves available nearly
every day. They can better advise you on the issues you’ll need to
consider.

Sylvester K. wrote in post #1030483:

Maybe I’m missing something here, but since your users will be strictly
TextMate users (I presume), I’m not sure that they would appreciate a
bundled Ruby version, as they probably already have a couple of Ruby
versions installed anyway. Or does your bundle target a completely
different audience which, in all likelihood, doesn’t work with Ruby at
all?

Well, the idea here was to package the build inside the bundle and not
affect the rest of their Ruby environment. The reason I was thinking
about this is so I could use Ruby 1.9.x without forcing users of the
bundle to install it. I would really like to use Ruby 1.9.x for this
project but am reluctant to tell users they would have to install it
themselves as the use of the bundle will be unrelated to anything Ruby
and many of them may never use Ruby at all.

C. Zona wrote in post #1030477:

RVM places rubies, gems, et al within ~/.rvm. In that respect, it is
physically portable.

User installation of RVM itself amounts to a three line snippet for
them to copy/paste into Terminal. If you want to take even that small
step out of the user’s hands, visit RVM’s irc channel. The author and
several of the maintainers generously make themselves available nearly
every day. They can better advise you on the issues you’ll need to
consider.

Thanks, I may need to try that. I’m not a regular irc user, but it
sounds like the RVM people might be able to help figure this out so I’ll
try to contact them…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs