Sha256: 4b30b8ad3c64d8f41d6bc24455b6b4bb4e0690a8b59b92be3de6964d6ab77b20

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

require 'virtus'
require 'k_config'
require 'k_log'
require 'k_util'

require 'k_ext/github/version'
require 'k_ext/github/configuration'
require 'k_ext/github/github_configuration'
require 'k_ext/github/models/hook'
require 'k_ext/github/models/owner'
require 'k_ext/github/models/repository'
require 'k_ext/github/printer'
require 'k_ext/github/api'

module KExt
  module Github
    # raise KExt::Github::Error, 'Sample message'
    class Error < StandardError; end

    class << self
      def configuration
        @configuration ||= KExt::Github::Configuration.new
      end

      def reset
        @configuration = KExt::Github::Configuration.new
      end

      def configure
        yield(configuration)
      end
    end
  end
end

if ENV['KLUE_DEBUG']&.to_s&.downcase == 'true'
  namespace = 'KExt::Github::Version'
  file_path = $LOADED_FEATURES.find { |f| f.include?('k_ext/github/version') }
  version = KExt::Github::VERSION.ljust(9)
  puts "#{namespace.ljust(35)} : #{version.ljust(9)} : #{file_path}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
k_ext-github-0.0.8 lib/k_ext/github.rb