Flowdock
method

check_rubygems_https

Importance_0
v2_6_3 - Show latest stable - 0 notes - Class: SourcesCommand
check_rubygems_https(source_uri) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/commands/sources_command.rb, line 65
  def check_rubygems_https(source_uri) # :nodoc:
    uri = URI source_uri

    if uri.scheme and uri.scheme.downcase == 'http' and
       uri.host.downcase == 'rubygems.org'
      question = https://rubygems.org is recommended for security over #{uri}Do you want to add this insecure source?.chomp

      terminate_interaction 1 unless ask_yes_no question
    end
  end
Register or log in to add new notes.