Re: [Radiant] Digg alike extension?

2010-11-10 Thread Jim Gay
Perhaps this https://github.com/mikehale/radiant-ratings-extension

On Mon, Nov 8, 2010 at 7:44 PM, ReK2GnuLinux r...@binaryfreedom.info wrote:
 is there any extension to have articles/post with voting? like digg or
 similar?

 Thanks




-- 
Jim Gay
Saturn Flyer LLC
http://www.saturnflyer.com
571-403-0338


Re: [Radiant] Test/unit-ing an extension

2010-11-10 Thread Jim Gay
On Mon, Nov 8, 2010 at 7:17 AM, Arthur Gunn art...@gunn.co.nz wrote:
 Hi,

 I'm using radiant 0.8.1 and trying to write some tests for an extension of 
 mine within a big project.
 I'm just writing with test/unit and have some very simple stuff in place.

 When it comes to running the tests though I can't figure out how. I've tried 
 the following commands:
        rake test
        rake test:integration
        rake test:extensions EXT=nzxt

 None of them work, and they all give a similar set of errors. Running 'rake 
 test:extensions EXT= nzxt --trace' gives the following output:

 ** Invoke test:extensions (first_time)
 ** Invoke db:test:prepare (first_time)
 ** Invoke db:abort_if_pending_migrations (first_time)
 ** Invoke environment (first_time)
 ** Execute environment
 ** Execute db:abort_if_pending_migrations
 ** Execute db:test:prepare
 ** Invoke db:test:load (first_time)
 ** Invoke db:test:purge (first_time)
 ** Invoke environment
 ** Execute db:test:purge
 ** Execute db:test:load
 ** Invoke db:schema:load (first_time)
 ** Invoke environment
 ** Execute db:schema:load
 ** Invoke db:schema:load
 ** Invoke db:test:load
 ** Execute test:extensions
 cd /Users/Arthur/Work/live/133/sitemaker/current/vendor/extensions/nzxt
 (in /Users/Arthur/Work/live/133/sitemaker/current)
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
 -Ilib:test 
 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
 -Ilib:/Users/Arthur/Work/live/133/sitemaker/current/vendor/radiant/test 
 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
 -Ilib:test 
 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
 -Ilib:/Users/Arthur/Work/live/133/sitemaker/current/vendor/radiant/test 
 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
 -Ilib:test 
 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
 -Ilib:/Users/Arthur/Work/live/133/sitemaker/current/vendor/radiant/test 
 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb
 cd -

 I've tried re-freezing the radiant gem and some other things to ensure the 
 install of radiant 0.8.1 is clean.
 Starting with a blank 0.8.1 app, running 'rake test:integration', gives this 
 output:

 (in /Users/Arthur/radiant_play)
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
 -Ilib:test 
 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
 -Ilib:/Users/Arthur/radiant_play/vendor/radiant/test 
 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb

 I do seem to be able to get rspecs running. Is it possible to use test/unit 
 though?


 -Arthur


It should be possible, but I personally haven't worked with a
test/unit extension in a long time so we might be missing something.
As far as I've seen many other authors use rspec. If you can
contribute a fix for this it would be wonderful to have it.
I'm sorry I don't have an answer for you off the top of my head.



-- 
Jim Gay
Saturn Flyer LLC
http://www.saturnflyer.com
571-403-0338


Re: [Radiant] Library and PaperClipped

2010-11-10 Thread Jim Gay
On Mon, Nov 8, 2010 at 9:45 AM, Anthony Bouch anthony.bo...@gmail.com wrote:
 Have been trying to get a gallery to work with Radiant.

 I've tried the 'Galleries' extension - but could see no way to add
 images from the asset list to the gallery.

 Am also now looking at the Library extension and their fork of
 Paperclipped - but after trying to run the rake development
 db:migrate:extensions task - I'm now getting an error which says..

 undefined method `is_taggable' for #Class:0xb6d096f0

 ..nor can I start the webserver.

 Any ideas? Help?

 Tony


I haven't tried, but you could run the task with --trace
rake db:migrate:extensions --trace

That will show you the stack trace and you can look for an error
coming from one of your extensions. It will tell you the line number
where the error occurs.

Also, you should be more specific here. You said that you are looking
at the Library extension and their fork of Paperclipped.
Pointing us to a specific repository would be helpful.

Are you sure you have the latest versions of these extensions? Or is
it possible that you have a version of Radiant that doesn't work with
a particular version of an extension? Often developers will tag
versions of their extensions on github.com for older versions of
Radiant.

Does the rake task work when your extensions are not in
vendor/extensions? (just move them out, try it, and move them back in)
Or is there some combination of extensions which causes the error? For
example, 1 extension might add features to another, but they are
loaded in the wrong order.
Extensions are loaded alphabetically (like plugins) but you can
specify their load order in config/environment.rb
If you have Library and Paperclipped, it's likely that Library is
loaded first and should not be.

Try setting config.extensions = [:paperclipped, :library, :all] and
adjust that as you need.



-- 
Jim Gay
Saturn Flyer LLC
http://www.saturnflyer.com
571-403-0338


Re: [Radiant] Library and PaperClipped

2010-11-10 Thread William Ross
On 10 Nov 2010, at 13:31, Jim Gay wrote:

 On Mon, Nov 8, 2010 at 9:45 AM, Anthony Bouch anthony.bo...@gmail.com wrote:
 Have been trying to get a gallery to work with Radiant.
 
 I've tried the 'Galleries' extension - but could see no way to add
 images from the asset list to the gallery.
 
 Am also now looking at the Library extension and their fork of
 Paperclipped - but after trying to run the rake development
 db:migrate:extensions task - I'm now getting an error which says..
 
 undefined method `is_taggable' for #Class:0xb6d096f0
 
 ..nor can I start the webserver.
 
 Any ideas? Help?
 
 Tony
 
 I haven't tried, but you could run the task with --trace
 rake db:migrate:extensions --trace
 
 That will show you the stack trace and you can look for an error
 coming from one of your extensions. It will tell you the line number
 where the error occurs.
 
 Also, you should be more specific here. You said that you are looking
 at the Library extension and their fork of Paperclipped.
 Pointing us to a specific repository would be helpful.

Ah sorry. That's my fault, I think. The library relies a variant of paperclip 
that I've been meaning for months to pull into the mainstream:

https://github.com/spanner/paperclipped 

However, in this case I think the problem is a missing 'taggable' extension:

https://github.com/spanner/radiant-taggable-extension

I've updated all these extensions to take out the (deprecated) config.extension 
hooks but right now that means dependencies aren't properly caught and it's 
easy to miss something. Sorry about the hassle: everything will work when we 
standardise on gems but until then it's a bit in-between.

(You could try installing all this from gems, but there are complications there 
too because at the moment most of my extensions are waiting in beta versions 
for the configuration interface to make it into radiant. The gems currently 
available are the beta versions and not compatible with radiant 0.9.1, or 
indeed with radiant edge. You would need the 'preconfiguration' branch.)

As it happens I've just been updating an image gallery that uses exactly this 
combination:

http://lordmayorshow.org/library/history/

So if there's anything I can do to help, do let me know.

best,

will



Re: [Radiant] Library and PaperClipped

2010-11-10 Thread William Ross

On 10 Nov 2010, at 13:45, William Ross wrote:

 On 10 Nov 2010, at 13:31, Jim Gay wrote:
 
 On Mon, Nov 8, 2010 at 9:45 AM, Anthony Bouch anthony.bo...@gmail.com 
 wrote:
 Have been trying to get a gallery to work with Radiant.
 
 I've tried the 'Galleries' extension - but could see no way to add
 images from the asset list to the gallery.
 
 Am also now looking at the Library extension and their fork of
 Paperclipped - but after trying to run the rake development
 db:migrate:extensions task - I'm now getting an error which says..
 
 undefined method `is_taggable' for #Class:0xb6d096f0
 
 
 Ah sorry. That's my fault, I think. The library relies a variant of paperclip 
 that I've been meaning for months to pull into the mainstream:
 
   https://github.com/spanner/paperclipped 
 
 However, in this case I think the problem is a missing 'taggable' extension:
 
   https://github.com/spanner/radiant-taggable-extension


... or possibly just load order. Taggable and paperclipped have to load before 
the library extension does.

will

[Radiant] [radiant] - wiki and stackoverflow-type extension

2010-11-10 Thread iamnot aids
Hi Everyone,

Do we these extensions?

Thanks!
Adrian