Upgrade rspec, Rakefile. Add Gemfile.
Fix handling of repeated whitespace.