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.8.0 examples/issues/issue_93.rb
amqp-1.7.0 examples/issues/issue_93.rb
amqp-1.6.0 examples/issues/issue_93.rb
amqp-1.5.3 examples/issues/issue_93.rb
amqp-1.5.2 examples/issues/issue_93.rb
amqp-1.5.1 examples/issues/issue_93.rb
amqp-1.5.0 examples/issues/issue_93.rb
amqp-1.4.2 examples/issues/issue_93.rb
amqp-1.4.1 examples/issues/issue_93.rb
amqp-1.4.0 examples/issues/issue_93.rb
amqp-1.3.0 examples/issues/issue_93.rb
amqp-1.2.1 examples/issues/issue_93.rb
amqp-1.2.0 examples/issues/issue_93.rb
amqp-1.1.8 examples/issues/issue_93.rb
amqp-1.1.7 examples/issues/issue_93.rb
amqp-1.1.6 examples/issues/issue_93.rb
amqp-1.1.5 examples/issues/issue_93.rb
amqp-1.1.4 examples/issues/issue_93.rb
amqp-1.1.3 examples/issues/issue_93.rb
amqp-1.0.4 examples/issues/issue_93.rb