This project is archived and is in readonly mode.

#5786 ✓invalid
activestylus

Bundler / RVM silently fail from application template

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

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

Comments and changes to this ticket

  • Aditya Sanghi

    Aditya Sanghi October 12th, 2010 @ 08:07 AM

    • 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.

  • activestylus

    activestylus October 12th, 2010 @ 11:07 AM

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages