Sha256: c98997778f55442ed2e106a24259ca1139294a49c008a097f7ea4860621264b5

Contents?: true

Size: 932 Bytes

Versions: 2

Compression:

Stored size: 932 Bytes

Contents

# frozen_string_literal: true

require "open-uri"
require "active_support/message_verifier"
require "cable_ready/identifiable"
require "cable_ready/operation_builder"
require "cable_ready/config"
require "cable_ready/broadcaster"
require "cable_ready/engine"
require "cable_ready/sanity_checker"
require "cable_ready/compoundable"
require "cable_ready/channel"
require "cable_ready/channels"
require "cable_ready/cable_car"
require "cable_ready/stream_identifier"
require "cable_ready/version"
require "cable_ready_helper"

module CableReady
  autoload :MemoryCacheDebounceAdapter, "cable_ready/updatable/memory_cache_debounce_adapter"

  class << self
    def config
      CableReady::Config.instance
    end

    def configure
      yield config
    end

    def signed_stream_verifier
      @signed_stream_verifier ||= ActiveSupport::MessageVerifier.new(config.verifier_key, digest: "SHA256", serializer: JSON)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cable_ready-5.0.0.rc2 lib/cable_ready.rb
cable_ready-5.0.0.rc1 lib/cable_ready.rb