Sha256: 985df2f4663596f638322ca5246316f11d1c00942ec00a63e0f4440f77b0303c

Contents?: true

Size: 565 Bytes

Versions: 44

Compression:

Stored size: 565 Bytes

Contents

# figure out what platform we're on
# this way there's no ambiguity about which file to include
# or which class we're subclassing.

if defined?(::JRUBY_VERSION)
  require_relative('../../java/java_base')
else
  require_relative('../../ext/zookeeper_base')
end


module Zookeeper
  if defined?(::JRUBY_VERSION)
    class Client < Zookeeper::JavaBase
    end
  else
    class Client < Zookeeper::ZookeeperBase
    end
  end

  def self.new(*a, &b)
    Zookeeper::Client.new(*a, &b)
  end
end


Zookeeper::Client.class_eval do
  include Zookeeper::ClientMethods
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
zookeeper-1.2.10 lib/zookeeper/client.rb
zookeeper-1.2.10-java lib/zookeeper/client.rb
zookeeper-1.2.9 lib/zookeeper/client.rb
zookeeper-1.2.9-java lib/zookeeper/client.rb
zookeeper-1.2.8 lib/zookeeper/client.rb
zookeeper-1.2.8-java lib/zookeeper/client.rb
zookeeper-1.2.7 lib/zookeeper/client.rb
zookeeper-1.2.7-java lib/zookeeper/client.rb
zookeeper-1.2.6 lib/zookeeper/client.rb
zookeeper-1.2.6-java lib/zookeeper/client.rb
zookeeper-1.2.5 lib/zookeeper/client.rb
zookeeper-1.2.5-java lib/zookeeper/client.rb
zookeeper-1.2.4 lib/zookeeper/client.rb
zookeeper-1.2.4-java lib/zookeeper/client.rb
zookeeper-1.2.3 lib/zookeeper/client.rb
zookeeper-1.2.3-java lib/zookeeper/client.rb
zookeeper-1.2.2 lib/zookeeper/client.rb
zookeeper-1.2.2-java lib/zookeeper/client.rb
zookeeper-1.2.1 lib/zookeeper/client.rb
zookeeper-1.2.1-java lib/zookeeper/client.rb