This commit is contained in:
Chris Wanstrath 2009-12-08 00:26:59 -08:00
Родитель f2719eb5c1
Коммит e433ea4542
2 изменённых файлов: 38 добавлений и 4 удалений

Просмотреть файл

@ -13,3 +13,40 @@ task :kicker do
puts "Kicking... (ctrl+c to cancel)"
exec "kicker -e rake test bin"
end
desc "Build a gem"
task :gem => [ :gemspec, :build ]
begin
require 'jeweler'
$LOAD_PATH.unshift 'lib'
load 'bin/hub'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "hub"
gemspec.summary = gemspec.description = "hub introduces git to GitHub"
gemspec.homepage = "http://github.com/defunkt/hub"
gemspec.version = Hub::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
begin
require 'sdoc_helpers'
rescue LoadError
puts "sdoc support not enabled. Please gem install sdoc-helpers."
end
desc "Push a new version to Gemcutter"
task :publish => [ :test, :gemspec, :build ] do
system "git tag v#{Hub::Version}"
system "git push origin v#{Hub::Version}"
system "git push origin master"
system "gem push pkg/hub-#{Hub::Version}.gem"
system "git clean -fd"
exec "rake pages"
end

Просмотреть файл

@ -4,10 +4,7 @@
# alias git=hub
class Hub
VERSION = '0.1.0'
AUTHOR = "Chris Wanstrath"
EMAIL = "chris@ozmm.org"
SOURCE = "http://github.com/defunkt/hub"
Version = '0.1.0'
end