Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v0.2.1
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (51 sloc) 1.273 kB
module Repl
Version = '0.2.1'
end
def version
Repl::Version
end
def git(command)
system("git #{command}")
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "repl"
gemspec.summary = gemspec.description = "repl tenderly wraps another program"
gemspec.homepage = "http://github.com/defunkt/repl"
gemspec.version = version
gemspec.authors = ["Chris Wanstrath"]
gemspec.email = "chris@ozmm.org"
end
rescue LoadError
puts "Jeweler not available."
puts "Install it with: gem install jeweler"
end
desc "Build manual"
task :build_man do
sh "ron -br5 --organization=DEFUNKT man/*.ron"
end
desc "Build and show manual"
task :man => :build_man do
exec "man man/repl.1"
end
desc "Push a new version to Gemcutter"
task :publish => [ :gemspec, :build ] do
git "tag v#{version}"
git "push origin v#{version}"
git "push origin master"
git "push origin master:latest"
system "gem push pkg/repl-#{version}.gem"
git "clean -fd"
exec "rake pages"
end
desc "Publish to GitHub Pages"
task :pages => [ :build_man ] do
cp "man/repl.1.html", "html"
git "checkout gh-pages"
mv "html", "index.html"
git "commit -a -m 'update docs'"
git "push origin gh-pages"
git "checkout master"
puts :done
end
Jump to Line
Something went wrong with that request. Please try again.