Sha256: 7857478acecc10594c20c41ed9c99f9a5c52880fc6083d65455f05f1f621883c

Contents?: true

Size: 1.58 KB

Versions: 1

Compression:

Stored size: 1.58 KB

Contents

require "highline"
# returning(obj)
require "facet/kernel/with"
# &:symbol goodness.
require "facet/symbol/to_proc"
# blank? on string and nil
require "facet/string/blank"
require "facet/nilclass/blank"
# x.in?(y) is better than y.include?(x)
require "facet/kernel/in"
# Allows binding[]
require "facet/binding"
# What it says.
require "facet/kernel/__DIR__"
require "facet/kernel/instance_exec"
require "facet/module/alias_method_chain"
require "facet/module/memoize"
require "facet/array/head"
require "facet/string/starts_with"
require "facet/openobject"
require "facets/core/kernel/tap"


module Kernel #:nodoc:
  def warn_with_color(message)
    warn_without_color HighLine.new.color(message.to_s, :red)
  end
  alias_method_chain :warn, :color
end


module Buildr
  VERSION = "0.20.0"
end


File.expand_path(__DIR__).tap do |here|
  $LOAD_PATH.unshift here
  Dir[File.expand_path("*/*.rb", __DIR__)].each { |file| require file.sub("#{here}/", "") }
end

include Buildr

# The greate method_missing/Object extend bug requires us to load
# XMLBuilder after we're done enhancing Object.
require "builder"

module Buildr
  @loaded_features_to_ignore = $LOADED_FEATURES +
    [Pathname.new(File.expand_path(__FILE__)).relative_path_from(Pathname.new(Dir.pwd)).to_s]
end

# Load the settings files.
[ File.expand_path("buildr.rb", ENV["HOME"]), File.expand_path("buildr.rb") ].each { |file| require file if File.exist?(file) }

#Load local tasks that can be used in the Rakefile.
Dir["#{Dir.pwd}/tasks/*.rake"].each do |file|
  unless $LOADED_FEATURES.include?(file)
    load file
    $LOADED_FEATURES << file
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buildr-0.20.0 lib/buildr.rb