Handle dependency isolation in Gemfile