Sha256: 866b5bb64638e5b3d18c467c6131efe5fd681dd8e8c22a4743253784827f9d2f

Contents?: true

Size: 631 Bytes

Versions: 14

Compression:

Stored size: 631 Bytes

Contents

require 'json'
require 'base64'
require 'zlib'
require 'open-uri'
require 'openssl'

require 'timers'
require 'httpclient'
require 'logger'
require 'dry-validation'
require 'cgi'

require 'concurrent'
require 'concurrent-edge'

require 'pubnub/version'
require 'pubnub/client'
require 'pubnub/uuid'

# Adding blank? and present? methods to Object.
class Object
  def blank?
    respond_to?(:empty?) ? empty? : !self
  end

  def present?
    !blank?
  end
end

# Toplevel Pubnub module.
module Pubnub
  class << self
    attr_accessor :logger, :client

    def new(options = {})
      Pubnub::Client.new(options)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
pubnub-5.4.0 lib/pubnub.rb
pubnub-5.3.5 lib/pubnub.rb
pubnub-5.3.4 lib/pubnub.rb
pubnub-5.3.3 lib/pubnub.rb
pubnub-5.3.2 lib/pubnub.rb
pubnub-5.3.1 lib/pubnub.rb
pubnub-5.3.0 lib/pubnub.rb
pubnub-5.2.2 lib/pubnub.rb
pubnub-5.2.1 lib/pubnub.rb
pubnub-5.2.0 lib/pubnub.rb
pubnub-5.1.2 lib/pubnub.rb
pubnub-5.1.1 lib/pubnub.rb
pubnub-5.1.0 lib/pubnub.rb
pubnub-5.0.0 lib/pubnub.rb