The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Rubygems Sidebar for Typo

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Florian Frank

Posts: 48
Nickname: ffrank
Registered: Dec, 2005

Florian Frank is a humanoid life-form, living on the third planet of the solar system.
Rubygems Sidebar for Typo Posted: Oct 11, 2006 2:58 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Florian Frank.
Original Post: Rubygems Sidebar for Typo
Feed Title: The Rubylution: Tag Ruby
Feed URL: http://rubylution.ping.de/xml/rss/tag/ruby/feed.xml
Feed Description: Starts… Now.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Florian Frank
Latest Posts From The Rubylution: Tag Ruby

Advertisement

I have just updated my blog's Rubygems sidebar a bit. I experienced some difficulties with my previous approach to let the blog application fetch the gem source index itself: It seemed to hang from time to time. I am not quite sure why that happened.

Now I just read the cached index from the $HOME/.gem/source_cache file, where $HOME is the home directory with correct permissions for the user under which my blog runs.

To update this cache I periodically execute

gem list --source=http://gems.rubyforge.org -r >/dev/null

in the cron of my blog user.

Here's a gzipped tar archive of the sidebar. It can just be extracted into the typo src dir.

After extraction a require dependecy has to be added to typo:

Index: config/environment.rb
===================================================================
--- config/environment.rb       (revision 1276)
+++ config/environment.rb       (working copy)
@@ -95,6 +95,7 @@
 require_dependency 'aggregations/fortythree'
 require_dependency 'aggregations/magnolia'
 require_dependency 'aggregations/upcoming'
+require_dependency 'aggregations/rubygems'
 require_dependency 'xmlrpc_fix'
 require_dependency 'transforms'
 require_dependency 'builder'

After restarting this should take care of loading the rubygems aggregation on demand. Now the sidebar can be configured through typo's admin interface with some AJAX magic. W00t!

Read: Rubygems Sidebar for Typo

Topic: How effective can automated refactoring really be? Previous Topic   Next Topic Topic: Ferret Creator on Judo and Text Indexing

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use