title: Writing a ruby script that parses xml to distribute to non-coders
body: <p>I am creating an open source workflow that will tie an OS X application Devonthink to Zotero in the following manner:</p>
  
  <ol>
  <li>An AppleScript called inside the OS X app devonthink will run a Ruby script via the shell</li>
  <li>This Ruby script (which I find much faster, better for these sorts of things than old applescript) will make an API call and download response data in Atom format
  <a href="https://api.zotero.org/users/475425/collections/9KH9TNSJ/items?format=atom" rel="nofollow">Example Data</a></li>
  <li>The ruby script will then <strong>parse the Atom file</strong> and extract a subset of this data and output it</li>
  <li>The Applescript will capture the output of the Ruby script and interact with devonthink in various ways, synching data.</li>
  </ol>
  
  <p>What I would like to get help for here is the <strong>parse the Atom file</strong> portion of this workflow. </p>
  
  <p>I know there are some great libraries out there for parsing Atom in Ruby, such as Feedzirra etc. but they require the installation of a Gem. I will be distributing the applescript+ruby combo to users who will likely have little or even absolutely no familiarity with the command line or installing gems etc. I would like to make this as easy as possible for the end user to simply drop my script into their applescript folder and the ruby script along with it without any further action on their part.</p>
  
  <p>Given this: what are your recommendations for the best solution to parse the Atom file in ruby <strong>without</strong> the need to install any gems or other tasks for the end user of the script (is there parsing code that can be simple included within the body of the script itself for example?).</p>
  
  <p>Some possible solutions I imagine that answers might suggest:</p>
  
  <p>a) use native ruby abilities to parse xml</p>
  
  <p>b) use some methods out there that can be copy/pasted directly into my ruby script</p>
  
  <p>My thanks in advance.</p>