Script/plugin discover errors

I would like to install The Ruby Engines plugin. So, I followed the
directions at:

When I run script/plugin discover, I get the following:

Add [Y/n]
(eval):3:in each': undefined method[]’ for nil:NilClass
58:in scrape' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/plugin.rb:6 32:inparse!’
31:in parse!' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/plugin.rb:4 47:inparse!’
63:in parse!' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/plugin.rb:8 71 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inre
rt/dependencies.rb:147:in `require’
from script/plugin:3

Am I missing something obvious? Does someone know how to get around

I am running on Windows XP, wiht Subversion installed, with Ruby 1.8.4
and Rails 1.1.2.

Thanks in advance,

Scott T.

Someone appears to have put some junk on the wiki page that
script/plugin uses. You can install from the direct URL anyway:

script/plugin install

  • james

The bottom of the WIKI
has a link ‘Edit’ that is defined as: Edit

The method scrape at line 654 of file
detects this and passes “/rails/pages/plugins/versions/new” to the
method below:

def extract_repository_uri(uri)

But “/rails/pages/plugins/versions/new” does not start with svn or http,
so there is no match and [0] has only nil to work with.

Changing line 659 to the following line factors in the http part and
eliminates the problem.

if line =~ /<a[^>]href=’"[’"]/ or line =~

Of course the href gets expanded by a browser to, but in
this case we would the wiki problems by trying to edit the page. The fix
above seems to be a better solution to me.

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