-
Notifications
You must be signed in to change notification settings - Fork 23
/
Rakefile
38 lines (32 loc) · 1.15 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "git-pair"
gem.version = File.read("lib/git-pair/VERSION").strip
gem.summary = "Configure git to commit as more than one author"
gem.description = "A git porcelain for pair programming. Changes " +
"git-config's user.name and user.email settings so you " +
"can commit as more than one author."
gem.email = "[email protected]"
gem.homepage = "http://github.com/chrisk/git-pair"
gem.authors = ["Chris Kampmeier"]
gem.add_development_dependency "cucumber", ">= 0"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)
task :features => :check_dependencies
rescue LoadError
task :features do
abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
end
end
task :default => :features
# Don't print commands when shelling out (for example, running Cucumber)
RakeFileUtils.verbose(false)