Update dependencies for Rails 4.2
fix tests for 4.2
Merge pull request #87 from Nikamura/master

Update dependencies for Rails 4.2