зеркало из https://github.com/mislav/hub.git
the gem
This commit is contained in:
Родитель
f2719eb5c1
Коммит
e433ea4542
37
Rakefile
37
Rakefile
|
@ -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
|
||||
|
||||
|
|
5
bin/hub
5
bin/hub
|
@ -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
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче