Forum: Radiant CMS trouble running rake for custom extension

Posted by Tobi (Guest)
on 2010-10-30 20:40
(Received via mailing list)
Hi all,

I've been trying the Adding-Custom-Radius-Tags example at
http://github.com/radiant/radiant/wiki/Adding-Cust....
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
Posted by Lenteo com (Guest)
on 2010-11-02 21:02
(Received via mailing list)
Hi all,

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

Thank you,
ion
Posted by Guilherme Costa (guilherme_c)
on 2010-11-07 13:15
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
Posted by Tobi (Guest)
on 2010-11-07 19:34
(Received via mailing list)
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
Posted by John Muhl (johnmuhl)
on 2010-11-07 19:58
(Received via mailing list)
On Sun, Nov 7, 2010 at 10:06 AM, Tobi
<tobold.hornblaeser@kaffeeschluerfer.com> 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?
Posted by Guilherme Costa (guilherme_c)
on 2010-11-08 11:20
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
Posted by Guilherme Costa (guilherme_c)
on 2010-11-09 01:26
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
Posted by ReK2GnuLinux (Guest)
on 2010-11-09 01:45
(Received via mailing list)
is there any extension to have articles/post with voting? like digg or
similar?

Thanks
Posted by Jim Gay (Guest)
on 2010-11-10 14:03
(Received via mailing list)
Posted by Tobi (Guest)
on 2010-11-12 07:04
(Received via mailing list)
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 ;-)

Greets, Tobi
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.