Update to newer Gemfile, Rakefile, and spec_helper.
Fix spacing errors.
Fix license and unbounded ranges in metadata.json.