Sha256: 285a4af4b8502e8abd4a748b4ba07c389342f91b380c842abf4f0fb2b87a6957
Contents?: true
Size: 831 Bytes
Versions: 3
Compression:
Stored size: 831 Bytes
Contents
=begin OpenTok Ruby Library http://www.tokbox.com/ Copyright 2010 - 2011, 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opentok-0.0.72 | lib/monkey_patches.rb |
opentok-0.0.7 | lib/monkey_patches.rb |
opentok-0.0.6 | lib/monkey_patches.rb |