My Octopress Blog

A blogging framework for hackers.

How Much Has ModRails Made in Donations?

So, after totally falling in love with ModRails (Phusion Passenger) a few months back, I was looking at their “Enterprise Edition” and began wondering how much they had made so far with their free software…

Luckily, I had Ruby and Hpricot handy. I opened up IRB and ran the following code:

require 'hpricot'
require 'open-uri'
doc = Hpricot(open('http://www.modrails.com/enterprise.html'))
(doc/"tr/td").collect { |td| td.inner_html.scan('USD').empty? ? nil : td.inner_html.sub('USD ','').to_i }.compact.inject { |s,n| s + n }

To date, they have made $20,700 in donations! Not bad for two guys and some “free” software.