Add Ruby 2.1.0 to Travis config

1. Added Ruby 2.1.0 to the Travis config
2. Updated the Gemfile.lock
3. Minor code changes in the specs to eliminate deprecation warnings.