From: Daniel Moore Date: 2009-01-23T15:42:11+09:00 Subject: [QUIZ] Gathering Ruby Quiz 2 Data (#189) Greetings! Welcome to the inaugural Ruby Quiz 3! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Quiz: 1. Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this message was sent. 2. Support Ruby Quiz by submitting ideas and responses as often as you can! Visit: 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. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ## Gathering Ruby Quiz 2 Data I'm building the new Ruby Quiz website and I need your help... This week's quiz involves gathering the existing Ruby Quiz 2 data from the Ruby Quiz website: Each quiz entry contains the following information: * id * title * description * summary There are also many quiz solutions that belong to each quiz. The quiz solutions have the following: * quiz_id * author * ruby_talk_reference * text Matthew has some advice for getting at the data: > If you start at , you'll see > the quiz list on the left are all links to the same quiz.rhtml file > (embedded Ruby), but with different id parameters. Those > parameters are the name of a subdirectory. So, for example, > take quiz #184, which has a link like this: > > > > So there is a subdirectory called "184_Befunge". There > are basically three files in every directory: > > * quiz.txt -- the quiz description > * sols.txt -- a list of author names and the ruby-talk message # of the submission > * summ.txt -- the quiz summary > > Examples: > * > * > * > Your program will collect and output this data as yaml (or your favorite data serialization standard; xml, json, etc.). -- -Daniel