Class: Net::HTTP

Inherits:
Object show all
Defined in:
lib/amp/repository/repositories/http_repository.rb

Overview

to shut up those fucking warnings! taken from www.5dollarwhitebox.org/drupal/node/64

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ HTTP

Returns a new instance of HTTP.



7
8
9
10
11
12
# File 'lib/amp/repository/repositories/http_repository.rb', line 7

def initialize(*args)
  old_initialize(*args)
  require 'openssl' unless defined? OpenSSL
  @ssl_context = OpenSSL::SSL::SSLContext.new
  @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
end

Instance Method Details

#old_initializeObject



6
# File 'lib/amp/repository/repositories/http_repository.rb', line 6

alias_method :old_initialize, :initialize