Use secure rubygems url
Set rspec version to 2.12
Refactor specs
Merge remote-tracking branch 'upstream/master'