Sha256: 19ec42a5a6426d3772579bd5bdd9dfb7f9827bfd4792bcebd56a04f38881fffb
Contents?: true
Size: 713 Bytes
Versions: 23
Compression:
Stored size: 713 Bytes
Contents
begin require "amq/client/adapters/coolio" rescue LoadError => e if RUBY_PLATFORM =~ /java/ puts "WARNING: Cool.io specs will not run on jruby" else # reraise, cause unknown raise e end end require "amq/client/queue" require "amq/client/exchange" require "evented-spec" case RUBY_VERSION when "1.8.7" then class Array alias sample choice end when /^1.9/ then Encoding.default_internal = Encoding::UTF_8 Encoding.default_external = Encoding::UTF_8 end def coolio_amqp_connect(&block) coolio do AMQ::Client::CoolioClient.connect(:port => 5672, :vhost => "/amq_client_testbed", :frame_max => 2**16-1, :heartbeat_interval => 1) do |client| yield client end end end
Version data entries
23 entries across 23 versions & 1 rubygems