Sha256: 7fd496cfa2ea5f423dd3e6ab747a95db5c117eb60eef939e657e150e0f8bbf57

Contents?: true

Size: 623 Bytes

Versions: 53

Compression:

Stored size: 623 Bytes

Contents

#!/usr/bin/env ruby
# encoding: utf-8

require "rubygems"
require 'amqp'

puts "Running amqp gem #{AMQP::VERSION}"


AMQP.start("amqp://guest:guest@localhost:5672") do |connection, open_ok|
  ch = AMQP::Channel.new(connection)
  ch.direct("amqpgem.issues.93.1")
  ch.direct("amqpgem.issues.93.2", :auto_delete => false)
  ch.direct("amqpgem.issues.93.3") do |ex, declare_ok|
  end
  ch.direct("amqpgem.issues.93.4", :auto_delete => false) do |ex, declare_ok|
  end
  ch.direct("amqpgem.issues.93.5", :auto_delete => true)
  ch.direct("amqpgem.issues.93.6", :auto_delete => true) do |ex, declare_ok|
  end

  puts "Done"
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
amqp-1.1.2 examples/issues/issue_93.rb
amqp-1.1.1 examples/issues/issue_93.rb
amqp-1.1.0 examples/issues/issue_93.rb
amqp-1.0.3 examples/issues/issue_93.rb
amqp-1.1.0.rc1 examples/issues/issue_93.rb
amqp-1.1.0.pre2 examples/issues/issue_93.rb
amqp-1.1.0.pre1 examples/issues/issue_93.rb
amqp-1.0.2 examples/issues/issue_93.rb
amqp-1.0.1 examples/issues/issue_93.rb
amqp-1.0.0 examples/issues/issue_93.rb
amqp-0.9.10 examples/issues/issue_93.rb
amqp-0.9.9 examples/issues/issue_93.rb
amqp-0.9.8 examples/issues/issue_93.rb
amqp-1.0.0.pre2 examples/issues/issue_93.rb
amqp-0.9.7 examples/issues/issue_93.rb
amqp-0.9.6 examples/issues/issue_93.rb
amqp-1.0.0.pre1 examples/issues/issue_93.rb
amqp-0.9.5 examples/issues/issue_93.rb
amqp-0.9.4 examples/issues/issue_93.rb
amqp-0.9.3 examples/issues/issue_93.rb