1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
# encoding: utf-8
require 'rubygems'
require 'bundler'
ENV['RUBYOPT'] = nil # Necessary to prevent Bundler from *&^%$#ing up rake-compiler.
require 'rake/clean'
if File.directory? "ragel"
Bundler.setup
Bundler::GemHelper.install_tasks
Dir['tasks/**/*.rake'].each { |rake| load File.expand_path(rake) }
else
# Omit generation/compile tasks and dependencies. In a gem package
# we only need tasks and dependencies required for running specs.
Bundler.settings.without = [:compilation]
Bundler.setup(:default, :development)
load 'tasks/rspec.rake'
end
|