Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Bundler / RVM silently fail from application template

#5786

I'm not sure if this is a Thor issue or a Rails one, but apparently I can't do 2 things from an application template

Install gems into a specific RVM gemset (apparently it cant switch gemsets..)
run bundle install (silent failure, nothing is installed)
To reproduce just run:

rails new test_app -m http://github.com/activestylus/rails3_mongoid_template/raw/master/t...

I'm on ruby 1.9.2-p0 and the latest stable Rails

Reported by activestylus · October 11th, 2010 @ 05:49 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Aditya Sanghi
    Aditya Sanghi
    • State changed from new to invalid
    • Importance changed from to Low

    I would be inclined to mark this ticket invalid as this is not a problem with thor or rails but how rvm works. RVM changes environment settings which are not reflected within a running ruby process (such as the rails script or a even a thor script).

    Having said that, RVM is indeed very popular and supporting RVM by thor might be a considered by thor's maintainers (i saw your ticket over on thor's issue list).

    For what you want to achieve, i believe that the best solution would ideally come out of RVM itself, which could potentially provide a one command way to create a gemset in a particular ruby and install one or more gems in it. The use of rvm use which_ruby, followed by rvm gemset create app, followed by rvm use which_ruby@app, followed by gem install really depends on the shell changing with each execution.

    We would be happy to re-open this ticket if indeed a problem is found in Rails, but i'm fairly positive it's not actually a Rails issue at all.

    October 12th, 2010 @ 08:07 AM

  2. activestylus
    activestylus

    Thanks for clearing that up Aditya, I will talk to Wayne Seguin about this and report back once there is some progress

    October 12th, 2010 @ 11:07 AM