On 4/28/06, Ruby Quiz <james / grayproductions.net> wrote: > The three rules of Ruby Quiz: > > 1. Please do not post any solutions or spoiler discussion for this quiz until > 48 hours have passed from the time on this message. > > 2. Support Ruby Quiz by submitting ideas as often as you can: > > http://www.rubyquiz.com/ > > 3. Enjoy! > > Suggestion: A [QUIZ] in the subject of emails about the problem helps everyone > on Ruby Talk follow the discussion. Please reply to the original quiz message, > if you can. > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > by Sean Carley > > The goal of cat2rafb is to implement a command line utility that will allow you > to submit arbitrary text to http://rafb.net/paste/ and get the URL for the text > back. Bonus points for pushing the URL through http://rubyurl.com/ to make it > more manageable. > > cat2rafb could work like cat, taking files as input or text until ^D after > entering the command. > > I decided I didn't like rafb's Ruby highlighting, so I set up an alternate server that uses the "syntax" gem to handle it. It uses the simply_restful plugin to expose a REST API for creating pastes. Here's a quiz submission that posts to rpaste, instead of rafb.net: http://rpaste.com/paste/7 Feature requests and better CSS submissions welcome. :) --Wilson.