Sha256: 3ffd8f748c0e9f581341fad488e52f782bdf56a0a3b7b113f037c728a2615a59

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

require 'logger'
require "ipaddr"
require "actionhook/version"
require "actionhook/core/configuration"
require "actionhook/security/authentication"
require "actionhook/core/request"
require "actionhook/core/json_request"
require "actionhook/core/net_http_sender"

module ActionHook
  class Error < StandardError; end

  DEFAULT_CONFIGURATION = ActionHook::Core::Configuration.new

  def self.logger=(logger)
    @logger = logger
  end

  def self.logger
    @logger ||= Logger.new(STDOUT)
  end

  def self.configuration=(configuration)
    @configuration = configuration
  end

  def self.configuration
    @configuration || DEFAULT_CONFIGURATION
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
actionhook-1.0.2 lib/actionhook.rb
actionhook-1.0.1 lib/actionhook.rb
actionhook-1.0.0 lib/actionhook.rb