Replace tabs with 2 spaces in Ruby files

We also added rubocop to the test suite to enforce this change over time.
This conforms to the [ruby style guide](https://github.com/bbatsov/ruby-style-guide) and makes the code base more consistent. We may be applying more ruby style guide recommendations in the future. :gem: :cop: