Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 41 lines (32 sloc) 0.801 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
require 'rubygems'
require 'rubygems/package_task'

begin
  require 'yard'
  require 'yard/rake/yardoc_task'
  YARD::Rake::YardocTask.new do |doc|
    doc.files = Dir["lib/**/*.rb"] + ['README.md']
    doc.options = ["-m", "markdown"]
  end
rescue LoadError
end

def gemspec
  $webmachine_gemspec ||= Gem::Specification.load("webmachine.gemspec")
end

Gem::PackageTask.new(gemspec) do |pkg|
  pkg.need_zip = false
  pkg.need_tar = false
end

task :gem => :gemspec

desc %{Validate the gemspec file.}
task :gemspec do
  gemspec.validate
end

desc %{Release the gem to RubyGems.org}
task :release => :gem do
  system "gem push pkg/#{gemspec.name}-#{gemspec.version}.gem"
end

require 'rspec/core'
require 'rspec/core/rake_task'

desc "Run specs"
RSpec::Core::RakeTask.new(:spec)

task :default => :spec
Something went wrong with that request. Please try again.