Skip to content

Instantly share code, notes, and snippets.

@mort
Created November 16, 2009 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mort/235866 to your computer and use it in GitHub Desktop.
Save mort/235866 to your computer and use it in GitHub Desktop.
class RoresDownloader
MONTHS = %w(january february march april may june july august september october november december)
YEARS = 2004..2009
def self.download
YEARS.each do |year|
MONTHS.each do |month|
m = month.capitalize
url = "http://lists.simplelogica.net/pipermail/ror-es/#{year}-#{m}.txt.gz"
puts "Y: #{year}; M: #{m}; URL: #{url}"
system("curl -O #{url}")
end
end
end
end
RoresDownloader.download
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment