Fix rake spec and gemfile