structure the project

i tried to give the project a little structure.

i could not validate if everything still works, because it looks like i need a whole import of the scraping from rubygems.

as far as i know rubygems also provides an API. did you consider using that instead of a web scraper?