Skip to content

Commit

Permalink
gem rename: git-hub => hub
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Mar 24, 2011
1 parent 830edb0 commit 0b49d56
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 60 deletions.
10 changes: 3 additions & 7 deletions README.md
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
52 changes: 2 additions & 50 deletions git-hub.gemspec
Expand Up @@ -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
62 changes: 62 additions & 0 deletions hub.gemspec
@@ -0,0 +1,62 @@
$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
6 changes: 3 additions & 3 deletions lib/hub/commands.rb
Expand Up @@ -71,7 +71,7 @@ def run(args)
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]
Expand Down Expand Up @@ -425,9 +425,9 @@ def compare(args)
# 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'
Expand Down

0 comments on commit 0b49d56

Please sign in to comment.