title: Run a ruby script on Windows
body: <p>I have no idea about Ruby :)</p>
  
  <p>The thing is, I need a way to turn all CSS in an HTML e-mail into inline styles. And there's no better way to do that, than use <a href="https://github.com/alexdunae/premailer" rel="nofollow">Alex Dunae's Premailer</a>.</p>
  
  <p>But I want to run it on Windows. My goal is to be able to run the script from C#, and fetch the file created by the ruby script in C# and use the HTML for the e-mail.</p>
  
  <p>Anyway, running the ruby script is the hard part for me. I've downloaded and installed the <a href="http://rubyinstaller.org/downloads/" rel="nofollow">Ruby Installer</a>, and I've also downloaded the Premailer 1.6.2 package.</p>
  
  <p>I try to run it doing this:</p>
  
  <pre><code>C:\Ruby192\bin&gt;ruby.exe C:\Workspace\Premailer\bin\premailer C:\Workspace\index.htm &gt; C:\Workspace\index2.htm
  </code></pre>
  
  <p>And what it tells me is this:</p>
  
  <pre><code>C:\Ruby192\bin&gt;ruby.exe C:\Workspace\Premailer\bin\premailer C:\Workspace\index.htm &gt; C:\Workspace\index2.htm
  &lt;internal:lib/rubygems/custom_require&gt;:29:in `require': no such file to load -- hpricot (LoadError)
          from &lt;internal:lib/rubygems/custom_require&gt;:29:in `require'
          from C:/Workspace/Premailer/lib/premailer.rb:4:in `&lt;top (required)&gt;'
          from &lt;internal:lib/rubygems/custom_require&gt;:29:in `require'
          from &lt;internal:lib/rubygems/custom_require&gt;:29:in `require'
          from C:/Workspace/Premailer/bin/premailer:5:in `&lt;main&gt;'
  </code></pre>
  
  <p>I probably need some dependencies, or what?</p>