Description: block "phone call" to check if latest release (closes: #882361)

 This is not the ideal solution yet, as it does not let the user unset
 disable_version_check to force-check. Should be fixed
Author: Samuel Henrique <samueloph@gmail.com>
Index: bundler/lib/bundler/cli.rb
===================================================================
--- bundler.orig/lib/bundler/cli.rb
+++ bundler/lib/bundler/cli.rb
@@ -712,33 +712,33 @@ module Bundler
     end
 
     def warn_on_outdated_bundler
-      return if Bundler.settings[:disable_version_check]
-
-      command_name = current_command.name
-      return if PARSEABLE_COMMANDS.include?(command_name)
-
-      latest = Fetcher::CompactIndex.
-               new(nil, Source::Rubygems::Remote.new(URI("https://rubygems.org")), nil).
-               send(:compact_index_client).
-               instance_variable_get(:@cache).
-               dependencies("bundler").
-               map {|d| Gem::Version.new(d.first) }.
-               max
-      return unless latest
-
-      current = Gem::Version.new(VERSION)
-      return if current >= latest
-      latest_installed = Bundler.rubygems.find_name("bundler").map(&:version).max
-
-      installation = "To install the latest version, run `gem install bundler#{" --pre" if latest.prerelease?}`"
-      if latest_installed && latest_installed > current
-        suggestion = "To update to the most recent installed version (#{latest_installed}), run `bundle update --bundler`"
-        suggestion = "#{installation}\n#{suggestion}" if latest_installed < latest
-      else
-        suggestion = installation
-      end
-
-      Bundler.ui.warn "The latest bundler is #{latest}, but you are currently running #{current}.\n#{suggestion}"
+#      return if Bundler.settings[:disable_version_check]
+#
+#      command_name = current_command.name
+#      return if PARSEABLE_COMMANDS.include?(command_name)
+#
+#      latest = Fetcher::CompactIndex.
+#               new(nil, Source::Rubygems::Remote.new(URI("https://rubygems.org")), nil).
+#               send(:compact_index_client).
+#               instance_variable_get(:@cache).
+#               dependencies("bundler").
+#               map {|d| Gem::Version.new(d.first) }.
+#               max
+#      return unless latest
+#
+#      current = Gem::Version.new(VERSION)
+#      return if current >= latest
+#      latest_installed = Bundler.rubygems.find_name("bundler").map(&:version).max
+#
+#      installation = "To install the latest version, run `gem install bundler#{" --pre" if latest.prerelease?}`"
+#      if latest_installed && latest_installed > current
+#        suggestion = "To update to the most recent installed version (#{latest_installed}), run `bundle update --bundler`"
+#        suggestion = "#{installation}\n#{suggestion}" if latest_installed < latest
+#      else
+#        suggestion = installation
+#      end
+#
+#      Bundler.ui.warn "The latest bundler is #{latest}, but you are currently running #{current}.\n#{suggestion}"
     rescue
       nil
     end
