adding rubocop
Merge pull request #138 from mockdeep/rubocop

Let RuboCop inspect code style
Test on Ruby 1.8

People still use it in production (see #150 for example)