Sha256: 00124d0cf4433e654232c1d3afb4ad6fcb23b8bce5649be1753442ce8de70cd5
Contents?: true
Size: 645 Bytes
Versions: 3
Compression:
Stored size: 645 Bytes
Contents
require "xmpp4r" # bugfix. support UTF-8 # patch from https://github.com/ln/xmpp4r/issues/3#issuecomment-1739952 if RUBY_VERSION < "1.9" # ... else # Encoding patch require 'socket' class TCPSocket def external_encoding Encoding::BINARY end end require 'rexml/source' class REXML::IOSource alias_method :encoding_assign, :encoding= def encoding=(value) encoding_assign(value) if value end end begin # OpenSSL is optional and can be missing require 'openssl' class OpenSSL::SSL::SSLSocket def external_encoding Encoding::BINARY end end rescue end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tagen-2.0.2 | lib/tagen/xmpp4r.rb |
tagen-2.0.1 | lib/tagen/xmpp4r.rb |
tagen-2.0.0 | lib/tagen/xmpp4r.rb |