Upgrade to Ruby 2.2 and Rails 4.2.

Current spec status: 1158 examples, 0 failures in 9.42 seconds.