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.

Rails Templates commands fail if used in JRuby only environments

#2752

As shown during my session about Rails templates at RailsWayCon 2009. Environments that are JRuby only can have problems calling the right rake, gem etc. commands.

As discussed with Yehuda and "Koz" I open this ticket, apply the attached patch and hopefully everything is fine. :)

Reported by Michael Johann · June 3rd, 2009 @ 03:14 PM

State: resolved
Milestone: 3.0.2
Assigned to: Yehuda Katz (wycats) Yehuda Katz (wycats)
Importance: none

Activity

  1. Michael Johann
    Michael Johann

    I found another issue and am also integrating support for mercurial. Pleas ignore the first patch as it will be substituted soon. Sorry, for the inconveinience.

    June 3rd, 2009 @ 07:34 PM

  2. Michael Johann
    Michael Johann

    Finally I fixed it and tested it with git and mercurial and it works just like a charm.

    June 4th, 2009 @ 08:49 AM

  3. Michael Koziarski
    Michael Koziarski
    • Assigned user changed from Michael Koziarski to Yehuda Katz (wycats)
    • Milestone cleared.

    Can we have this with only the ruby_command changes? The hg stuff should be in another ticket

    also, assigning to yehuda as he mentioned a nice way to figure out the 'current ruby command' when we were in berlin

    June 10th, 2009 @ 04:37 AM

  4. Yehuda Katz
    Yehuda Katz

    The easiest way to get the current Ruby, if gems are installed, is Gem.ruby'.

    June 10th, 2009 @ 07:27 AM

  5. Michael Johann
  6. Michael Johann
    Michael Johann
    • Tag changed from 2-3-stable, jruby to 3.0, jruby

    I removed the mercurial stuff and will open a new ticket.
    Attached is a patch that uses Yehuda's "Gem.ruby" call to get the current ruby command.
    Works with jruby and ruby 1.9 on my machine.

    June 10th, 2009 @ 08:35 AM

  7. Yehuda Katz (wycats)
    Yehuda Katz (wycats)
    • State changed from new to resolved

    All of this stuff was modified, and the basic logic for this stuff was moved into Thor (which has better code for running Ruby commands). Can you see if these problems still exist on master?

    February 24th, 2010 @ 06:53 AM

  8. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to

    October 15th, 2010 @ 11:01 PM