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.

Ruby 1.9 compat: plugin/install git://... always fails in Ruby 1.9

#2018

I found that


% script/plugin install git://...

always fails bacause FileUtils.mkdir_p does not return a string value in Ruby 1.9.

Attatched a patch to fix this problem.

Reported by Akira Matsuda · February 19th, 2009 @ 07:11 PM

State: committed
Milestone: 2.3.6
Assigned to: nobody
Importance: Medium

Activity

  1. Akira Matsuda
    Akira Matsuda
    • Tag changed from edge, git, plugin, ruby1.9, script to 2.3.2, edge, git, patch, plugin, ruby1.9, script

    Updated tags since I believe Rails 2.3 stable still needs this patch.

    March 17th, 2009 @ 06:41 AM

  2. alan
  3. Niels Ganser
    Niels Ganser
    • Tag changed from 2.3.2, edge, git, patch, plugin, ruby1.9, script to 2.3.2, edge, git, patch, plugin, ruby1.9, ruby19, script

    +1

    Patch applies cleanly on my system and works as advertised.

    ordimini% ./script/about
    About your application's environment
    Ruby version 1.9.1 (x86_64-linux)
    RubyGems version 1.3.1
    Rack version 1.0
    Rails version 2.3.2
    Active Record version 2.3.2
    Action Pack version 2.3.2
    Active Resource version 2.3.2
    Action Mailer version 2.3.2
    Active Support version 2.3.2

    July 16th, 2009 @ 10:34 AM

  4. Nick Quaranto
    Nick Quaranto

    +1 to this, definitely seeing it happen here.

    % rails1.9 -v
    Rails 2.3.3
    % rails1.9 plugintest
    % cd plugintest
    % ruby1.9 script/plugin install git://github.com/thoughtbot/hoptoad_notifier.git
    Plugin not found: ["git://github.com/thoughtbot/hoptoad_notifier.git"]
    

    July 27th, 2009 @ 03:36 PM

  5. Pratik
    Pratik
    • Milestone changed from 2.x to 2.3.4

    July 27th, 2009 @ 03:41 PM

  6. Taylor luk
    Taylor luk

    I can confirm the same problem with Ruby 1.9 + Rails2.3

    July 29th, 2009 @ 04:08 PM

  7. Peter Wagenet
    Peter Wagenet

    Looks like this got missed in the rush to 2.3.4 as it's still an issue. And yes, the patch works for me as well.

    September 9th, 2009 @ 01:54 AM

  8. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.3.4 to 2.3.6

    [milestone:id#50064 bulk edit command]

    September 11th, 2009 @ 11:04 PM

  9. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to committed

    2-3-stable: c5e3309bb4e63fafb363da8f7eb2364530f9f96f

    master: 3ce16b4c5fd3007d6b43364253506462e680b227

    September 12th, 2009 @ 11:02 AM

  10. Owen
    Owen

    When is 2.3.6 to be released? This is still a problem...

    March 7th, 2010 @ 08:04 PM