title: Ruby - parsing a text file
body: <p>I am pretty new to Ruby and have been trying some really basic text parsing. I am now however trying to parse a little bit more of a complicated file and then push it out into a csv file (which I havent done before) and am getting quite stuck.</p>
  
  <p>The file looks as follows,</p>
  
  <pre><code>Title
  some text
  some different text
  Publisher: name
  Published Date: date
  Number1: number
  Number2: number
  Number3: number
  Category: category
  ----------------------
  Title
  some text
  some different text
  Publisher: name
  Published Date: date
  Number1: number
  Number2: number
  Number3: number
  Category: category
  ----------------------
  </code></pre>
  
  <p>etc.</p>
  
  <p>Each line would represent a new "column" in the csv.</p>
  
  <p>Would anyone please be able to lend a hand?</p>
  
  <p>Thank you so much!</p>