提交 0b49d56d 编写于 作者: C Chris Wanstrath

gem rename: git-hub => hub

上级 830edb0b
......@@ -51,18 +51,14 @@ Assuming `~/bin/` is in your `$PATH`, you're ready to roll:
Though not recommended, `hub` can also be installed as a RubyGem:
$ gem install git-hub
Yes, the gem name is "git-hub".
$ gem install hub
(It's not recommended for casual use because of the RubyGems startup
time. See [this gist][speed] for information.)
### Standalone via RubyGems
Yes, the gem name is still "git-hub":
$ gem install git-hub
$ gem install hub
$ hub hub standalone > ~/bin/hub && chmod 755 ~/bin/hub
This installs a standalone version which doesn't require RubyGems to
......@@ -340,7 +336,7 @@ Meta
* Bugs: <http://github.com/defunkt/hub/issues>
* List: <http://groups.google.com/group/github>
* Test: <http://runcoderun.com/defunkt/hub>
* Gems: <http://gemcutter.org/gems/git-hub>
* Gems: <http://gemcutter.org/gems/hub>
Authors
......
......@@ -5,58 +5,10 @@ Gem::Specification.new do |s|
s.name = "git-hub"
s.version = Hub::VERSION
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "hub introduces git to GitHub"
s.summary = "The `git-hub' gem has been renamed `hub'."
s.homepage = "http://github.com/defunkt/hub"
s.email = "chris@ozmm.org"
s.authors = [ "Chris Wanstrath" ]
s.has_rdoc = false
s.files = %w( README.md Rakefile LICENSE )
s.files += Dir.glob("lib/**/*")
s.files += Dir.glob("bin/**/*")
s.files += Dir.glob("man/**/*")
s.files += Dir.glob("test/**/*")
s.executables = %w( hub )
s.description = <<desc
`hub` is a command line utility which adds GitHub knowledge to `git`.
It can used on its own or as a `git` wrapper.
Normal:
$ hub clone rtomayko/tilt
Expands to:
$ git clone git://github.com/rtomayko/tilt.git
Wrapping `git`:
$ git clone rack/rack
Expands to:
$ git clone git://github.com/rack/rack.git
desc
s.post_install_message = <<-message
------------------------------------------------------------
You there! Wait, I say!
=======================
If you are a heavy user of `git` on the command
line you may want to install `hub` the old
fashioned way. Faster startup time, you see.
Check out the installation instructions at
http://github.com/defunkt/hub#readme under the
"Standalone" section.
Cheers,
defunkt
------------------------------------------------------------
message
s.add_dependency "hub"
end
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'hub/version'
Gem::Specification.new do |s|
s.name = "hub"
s.version = Hub::VERSION
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "hub introduces git to GitHub"
s.homepage = "http://github.com/defunkt/hub"
s.email = "chris@ozmm.org"
s.authors = [ "Chris Wanstrath" ]
s.has_rdoc = false
s.files = %w( README.md Rakefile LICENSE )
s.files += Dir.glob("lib/**/*")
s.files += Dir.glob("bin/**/*")
s.files += Dir.glob("man/**/*")
s.files += Dir.glob("test/**/*")
s.executables = %w( hub )
s.description = <<desc
`hub` is a command line utility which adds GitHub knowledge to `git`.
It can used on its own or as a `git` wrapper.
Normal:
$ hub clone rtomayko/tilt
Expands to:
$ git clone git://github.com/rtomayko/tilt.git
Wrapping `git`:
$ git clone rack/rack
Expands to:
$ git clone git://github.com/rack/rack.git
desc
s.post_install_message = <<-message
------------------------------------------------------------
You there! Wait, I say!
=======================
If you are a heavy user of `git` on the command
line you may want to install `hub` the old
fashioned way. Faster startup time, you see.
Check out the installation instructions at
http://github.com/defunkt/hub#readme under the
"Standalone" section.
Cheers,
defunkt
------------------------------------------------------------
message
end
......@@ -71,7 +71,7 @@ module Hub
def clone(args)
ssh = args.delete('-p')
has_values = /^(--(upload-pack|template|depth|origin|branch|reference)|-[ubo])$/
idx = 1
while idx < args.length
arg = args[idx]
......@@ -425,9 +425,9 @@ module Hub
# Prints the "standalone" version of hub for an easy, memorable
# installation sequence:
#
# $ gem install git-hub
# $ gem install hub
# $ hub hub standalone > ~/bin/hub && chmod 755 ~/bin/hub
# $ gem uninstall git-hub
# $ gem uninstall hub
def hub(args)
return help(args) unless args[1] == 'standalone'
require 'hub/standalone'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册