D
Daniel Moore
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: <http://rubyquiz.strd6.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.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
## 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: <http://splatbang.com/rubyquiz/>
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:
Your program will collect and output this data as yaml (or your favorite data
serialization standard; xml, json, etc.).
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: <http://rubyquiz.strd6.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.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
## 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: <http://splatbang.com/rubyquiz/>
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 <http://splatbang.com/rubyquiz/>, 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:
<http://splatbang.com/rubyquiz/quiz.rhtml?id=184_Befunge>
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:
* <http://splatbang.com/rubyquiz/184_Befunge/quiz.txt>
* <http://splatbang.com/rubyquiz/184_Befunge/sols.txt>
* <http://splatbang.com/rubyquiz/184_Befunge/summ.txt>
Your program will collect and output this data as yaml (or your favorite data
serialization standard; xml, json, etc.).