Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (54 sloc) 1.759 kb
require 'rake'
$LOAD_PATH.unshift('lib')
begin
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 = FileList["[A-Z]*", "{bin,generators,lib,test}/**/*", 'lib/jeweler/templates/.gitignore']
gem.add_dependency 'schacon-git'
end
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.pattern = 'test/**/test_*.rb'
test.libs << 'test'
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'jeweler'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.markdown')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new(:rcov) do |rcov|
rcov.libs << 'test'
rcov.pattern = 'test/**/test_*.rb'
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end
begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)
rescue LoadError
task :features do
abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
end
end
if ENV["RUN_CODE_RUN"] == "true"
task :default => [:test, :features]
else
task :default => :test
end
Jump to Line
Something went wrong with that request. Please try again.