Sha256: 26926e8ac28721aaa315dfeea0d5d08bfe25c2a65d56c1996bdb13b053f1d9c1

Contents?: true

Size: 602 Bytes

Versions: 15

Compression:

Stored size: 602 Bytes

Contents

class Freddy
  module Adapters
    def self.determine
      if RUBY_PLATFORM == 'java'
        require_relative 'adapters/march_hare_adapter'
        MarchHareAdapter
      else
        require_relative 'adapters/bunny_adapter'
        BunnyAdapter
      end
    end

    module Shared
      class Queue
        def initialize(queue)
          @queue = queue
        end

        def bind(*args)
          @queue.bind(*args)
          self
        end

        def name
          @queue.name
        end

        def message_count
          @queue.message_count
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
freddy-1.4.1 lib/freddy/adapters.rb
freddy-1.4.0 lib/freddy/adapters.rb
freddy-1.3.3 lib/freddy/adapters.rb
freddy-jruby-1.3.2 lib/freddy/adapters.rb
freddy-1.3.2 lib/freddy/adapters.rb
freddy-1.3.1 lib/freddy/adapters.rb
freddy-1.3.0 lib/freddy/adapters.rb
freddy-1.2.0 lib/freddy/adapters.rb
freddy-1.1.0 lib/freddy/adapters.rb
freddy-1.0.1 lib/freddy/adapters.rb
freddy-jruby-1.0.0 lib/freddy/adapters.rb
freddy-1.0.0 lib/freddy/adapters.rb
freddy-jruby-0.7.2 lib/freddy/adapters.rb
freddy-0.7.2 lib/freddy/adapters.rb
freddy-0.7.1 lib/freddy/adapters.rb