Trouble running rake for custom extension

Hi all,

I’ve been trying the Adding-Custom-Radius-Tags example at
Adding Custom Radius Tags · radiant/radiant Wiki · GitHub.
After generating ~/radiant/testCMS/vendor/extensions/custom_tags/spec/
lib/custom_tags_spec.rb as described running ‘rake spec --trace’
results in:

Jeweler (or a dependency) not available. This is only required if you
plan to package custom_tags as a gem.
rake aborted!
no such file to load – spec/rake/spectask
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in require’
/home/pipi/radiant/testCMS/vendor/extensions/custom_tags/Rakefile:39
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in load' /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in raw_load_rakefile’
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in load_rakefile' /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling’
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in load_rakefile' /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in run’
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run’
/usr/local/bin/rake:31

wich happens to be the same when I try ‘rake -T’ or plain rake.
Any idea what I’ve been missing?

I’m on debian squeeze running Radiant 0.9.1 with ruby 1.8.7
(2010-06-23 patchlevel 299).

Greets, Tobi

Hi all,

I have the same issue. Can someone give an advise?

Thank you,
ion

I had the same problem here, it worked after with “gem install jeweler”
(I’m running on RVM, so I don’t use ‘sudo’).

Regards,
Guilherme

Besides the complaint about missing jeweler it’s still the same, but
thanks for the reply.
Anyone else got an idea?
Where spec/rake/spectask is supposed to go. And what it should
contain? I didn’t find it anywhere at my system.

Regards, Tobi

On Sun, Nov 7, 2010 at 10:06 AM, Tobi
[email protected] wrote:

Besides the complaint about missing jeweler it’s still the same, but
thanks for the reply.
Anyone else got an idea?
Where spec/rake/spectask is supposed to go. And what it should
contain? I didn’t find it anywhere at my system.

seems like something up with rspec. do you have it installed? do you
have an appropriate version installed (e.g. something from the 1.3
series)? is that version being loaded or are you getting a newer (or
older) version in your environment?

Tobi,

Check the rspec version you are running. I have rspec2, and the issue
remains! Apparently spec/rake/spectask is from 1.3!

Regards,
Guilherme

Tobi,

This line did the trick here:

gem install rspec -v=1.3

It will install the version 1.3 of RSpec, the one needed by the
“spec/rake/spectask”!

Regards,
Guilherme Costa

Perhaps this GitHub - mikehale/radiant-ratings-extension: Ratings for radiant pages

is there any extension to have articles/post with voting? like digg or
similar?

Thanks

Wiping rspec2 did the trick. Thanks or your help.
Seems like I should get rvm running. These compatibility issues begin
to cause early hair loss :wink:

Greets, Tobi