Sha256: 75a688d98b5ffb03037e89a01bab0f804454b5498d820a70ab06969a144b4b8c

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 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.fetch('KLUE_DEBUG', 'false').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.10 lib/k_ext/github.rb