Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d442c86ac5
Fetching contributors…

Cannot retrieve contributors at this time

file 47 lines (38 sloc) 0.977 kb
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 38 39 40 41 42 43 44 45 46 47
gemspec = eval(File.read('beginning_of_fortnight.gemspec'))

desc "Validate the gemspec"
task :gemspec do
  gemspec.validate
end

desc "Build gem locally"
task :build => :gemspec do
  system "gem build #{gemspec.name}.gemspec"
  FileUtils.mkdir_p "pkg"
  FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", "pkg"
end

desc "Install gem locally"
task :install => :build do
  system "sudo gem install pkg/#{gemspec.name}-#{gemspec.version}"
end

desc "Create rdoc"
task :rdoc => :build do
  system "rm -rf doc"
  system "rdoc lib"
end

desc "Run tests"
task :spec do
  system "spec -c -fp spec/*"
end

desc "Run tests"
task :rspec do
  system "rspec -c -fp spec/*"
end

desc "Install then run tests"
task :install_test => [:gemspec, :install, :spec] do
end

desc "Install then run tests then build docs"
task :all => [:gemspec, :install, :spec, :rdoc] do
end

desc "Publish to rubygems.org"
task :publish do
  system "gem push pkg/#{gemspec.name}-#{gemspec.version}.gem"
end
Something went wrong with that request. Please try again.