Upgraded to Ruby 2.0.0.
Dropped Rails 3.0.x support.
Refactored the code into smaller methods.