Fix Gemfile and Rakefile by removing lexical markers and extraneous gems.