Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
94 lines (76 sloc) 2.36 KB
require 'rake'
$LOAD_PATH.unshift('lib')
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "jeweler"
gem.summary = "Simple and opinionated helper for creating Rubygem projects on GitHub"
gem.email = "josh@technicalpickles.com"
gem.homepage = "http://github.com/technicalpickles/jeweler"
gem.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
gem.authors = ["Josh Nichols"]
gem.files.include %w(lib/jeweler/templates/.document lib/jeweler/templates/.gitignore)
gem.add_dependency "git", ">= 1.2.5"
gem.add_dependency "rubyforge", ">= 2.0.0"
gem.add_dependency "gemcutter", ">= 0.1.0"
gem.rubyforge_project = "pickles"
gem.add_development_dependency "thoughtbot-shoulda"
gem.add_development_dependency "mhennemeyer-output_catcher"
gem.add_development_dependency "rr"
gem.add_development_dependency "mocha"
gem.add_development_dependency "redgreen"
gem.add_development_dependency "devver-construct"
gem.add_development_dependency "yard"
gem.add_development_dependency "cucumber"
end
Jeweler::GemcutterTasks.new
Jeweler::RubyforgeTasks.new do |t|
t.doc_task = :yardoc
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.test_files = FileList.new('test/**/test_*.rb') do |list|
list.exclude 'test/test_helper.rb'
end
test.libs << 'test'
test.verbose = true
end
begin
require 'yard'
YARD::Rake::YardocTask.new(:yardoc) do |t|
t.files = FileList['lib/**/*.rb'].exclude('lib/jeweler/templates/**/*.rb')
end
rescue LoadError
task :yardoc => :check_dependencies
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new(:rcov => :check_dependencies) do |rcov|
rcov.libs << 'test'
rcov.pattern = 'test/**/test_*.rb'
end
rescue
task :rcov => :check_dependencies
end
begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |features|
features.cucumber_opts = "features --format progress"
end
namespace :features do
Cucumber::Rake::Task.new(:pretty) do |features|
features.cucumber_opts = "features --format progress"
end
end
rescue LoadError
task :features => :check_dependencies
namespace :features do
task :pretty => :check_dependencies
end
end
if ENV["RUN_CODE_RUN"] == "true"
task :default => [:test, :features]
else
task :default => :test
end
task :test => :check_dependencies
task :features => :check_dependencies
Jump to Line
Something went wrong with that request. Please try again.