Sha256: 484d6e1eec0884aa5a9738a5e2cfa470d9ed026b5d868261d2513a1bd0c7b6aa

Contents?: true

Size: 757 Bytes

Versions: 4

Compression:

Stored size: 757 Bytes

Contents

require "danger/version"
require "danger/dangerfile"
require "danger/environment_manager"
require "danger/commands/runner"
require "danger/available_values"
require "danger/plugin"
require "danger/core_ext/string"

require "claide"
require "colored"
require "pathname"
require "terminal-table"

# 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

4 entries across 4 versions & 1 rubygems

Version Path
danger-0.7.4 lib/danger.rb
danger-0.7.3 lib/danger.rb
danger-0.7.2 lib/danger.rb
danger-0.7.1 lib/danger.rb