Sha256: ef9d198b55961799542497bfe57f2c012dbc15d1d2cef4446ca0a11c86625d2f

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

require 'active_support'
require 'active_support/core_ext'
require 'active_support/concern'
require 'chrono'
require 'forwardable'
require 'hashie'
require 'slack'
require 'termcolor'
require 'thor'
require 'logger'

module Slappy
  class << self
    extend Forwardable

    def_delegators :configuration, :logger
    def_delegators :client, :start, :hello, :hear, :say, :schedule, :monitor

    def configure
      @configuration = Configuration.new

      yield configuration if block_given?

      configuration
    end

    def configuration
      @configuration || configure
    end

    def client
      @client ||= Client.new
    end
  end
end

require 'slappy/slack_api/concerns/findable'
require 'slappy/slack_api/base'
require 'slappy/slack_api/channel'
require 'slappy/slack_api/direct'
require 'slappy/slack_api/group'
require 'slappy/slack_api/user'
require 'slappy/cli'
require 'slappy/client'
require 'slappy/configuration'
require 'slappy/configuration/robot'
require 'slappy/commands/generator.rb'
require 'slappy/commands/run.rb'
require 'slappy/event'
require 'slappy/listener'
require 'slappy/messanger'
require 'slappy/schedule'
require 'slappy/version'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slappy-0.5.1 lib/slappy.rb
slappy-0.5.0 lib/slappy.rb