Sha256: e60c7fd2b8a86518b01a889c0a749a36532b25b55a098e5917a2dd6e1a4fb806
Contents?: true
Size: 824 Bytes
Versions: 4
Compression:
Stored size: 824 Bytes
Contents
=begin OpenTok Ruby Library http://www.tokbox.com/ Copyright 2010, TokBox, Inc. Last modified: 2011-02-17 =end class Hash # Adding a urlencode method to the hash class for easy querstring generation def urlencode to_a.map do |name_value| if name_value[1].is_a? Array name_value[0] = CGI.escape name_value[0].to_s name_value[1].map { |e| CGI.escape e.to_s } name_value[1] = name_value[1].join "&" + name_value[0] + "=" name_value.join '=' else name_value.map { |e| CGI.escape e.to_s }.join '=' end end.join '&' end end class Net::HTTP alias_method :old_initialize, :initialize def initialize(*args) old_initialize(*args) @ssl_context = OpenSSL::SSL::SSLContext.new @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
opentok-0.0.5 | lib/monkey_patches.rb |
opentok-0.0.4 | lib/monkey_patches.rb |
opentok-0.0.3 | lib/monkey_patches.rb |
opentok-0.0.2 | lib/monkey_patches.rb |