Sha256: d75b7ef3c9ce8f75751133fb2ae141494682aef7ede951e189a5c56a49903ee4

Contents?: true

Size: 899 Bytes

Versions: 1

Compression:

Stored size: 899 Bytes

Contents

#:nopkg:
ENV["RUBYLIB"] = "#{File.dirname(__FILE__)}/lib"
ENV["RUBYOPT"] = "-rubygems"
#:

require "git/webby"

def spec
  @spec ||= Gem::Specification.load("git-webby.gemspec")
end

desc "Run tests"
task :test, [:file] do |spec, args|
  Dir["test/#{args.file}*_test.rb"].each do |file|
    sh "ruby #{file}"
  end
end

desc "API Documentation (RDoc)"
task :doc do
  sh "rdoc -o doc/api -H -f hanna -m README.rdoc"
end

desc "Build #{spec.file_name}"
task :build => "#{spec.name}.gemspec" do
  sh "gem build #{spec.name}.gemspec"
end

desc "Release #{spec.file_name}"
task :release => :build do
  sh "gem push #{spec.file_name}"
end

desc "Install gem file #{spec.file_name}"
task :install => :build do
  sh "gem install -l #{spec.file_name}"
end

desc "Uninstall gem #{spec.name} v#{spec.version}"
task :uninstall do
  sh "gem uninstall #{spec.name} -v #{spec.version}"
end

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git-webby-0.2.0 Rakefile