Sha256: 18cf5393c68ff0de99b6cbe8972f5a11a80fedd58183c554ce1d7a152879432a

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

require "danger/version"
require "danger/dangerfile"
require "danger/environment_manager"
require "danger/commands/runner"
require "danger/available_values"

require "claide"
require "colored"
require "pathname"

# Import all the Sources (CI, Request and SCM)
Dir[File.expand_path('danger/*source/*.rb', File.dirname(__FILE__))].each do |file|
  require file
end

module Danger
  # @return [String] The path to the local gem directory
  def self.gem_path
    gem_name = "danger"
    unless Gem::Specification.find_all_by_name(gem_name).any?
      raise "Couldn't find gem directory for 'danger'"
    end
    return Gem::Specification.find_by_name(gem_name).gem_dir
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
danger-0.3.0 lib/danger.rb