Add ruby version and gemset.
Update dependencies to Rails 4.
Fix deprecation warning.
Fix bug with Array.wrap not being defined.
Update rake require for rdoc tasks.