Skip to content

Commit

Permalink
Let's require nothing other than rake to build.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Oct 7, 2011
1 parent 1475d31 commit ea6b158
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Rakefile
@@ -1,7 +1,6 @@
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rspec/core/rake_task'
# require_relative 'platform/skel'
require 'fileutils'
require 'find'
Expand All @@ -28,16 +27,29 @@ Cucumber::Rake::Task.new(:features) do |t|
end

rescue LoadError
vputs("Cukes is not loaded")
vputs("Cukes is not loaded -- please `bundle install`")
end

begin

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ["--color"]
end

rescue LoadError
vputs("RSpec is not loaded -- please `bundle install`")
end

begin

require 'bundler'
Bundler::GemHelper.install_tasks

rescue LoadError
vputs("Bundler is not loaded -- please `gem install bundler && bundle install`")
end

GIT = ENV['GIT'] || "git"
REVISION = (`#{GIT} rev-list HEAD`.split.length + 1).to_s
VERS = ENV['VERSION'] || "0.r#{REVISION}"
Expand Down

0 comments on commit ea6b158

Please sign in to comment.