Sha256: a1d3bfc17854b47e828b691c3a9f3fe186d6da01a0c5159cea50e0bebbdea661
Contents?: true
Size: 712 Bytes
Versions: 9
Compression:
Stored size: 712 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
9 entries across 9 versions & 1 rubygems