forked from mislav/hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhub.gemspec
66 lines (47 loc) · 1.81 KB
/
hub.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# encoding: utf-8
require File.expand_path('../lib/hub/version', __FILE__)
Gem::Specification.new do |s|
s.name = "hub"
s.version = Hub::VERSION
s.summary = "Command-line wrapper for git and GitHub"
s.homepage = "http://hub.github.com/"
s.email = "[email protected]"
s.authors = [ "Chris Wanstrath", "Mislav Marohnić" ]
s.license = "MIT"
s.files = %w( README.md Rakefile LICENSE )
s.files += Dir.glob("lib/**/*")
s.files += Dir.glob("bin/**/*")
s.files += Dir.glob("man/**/*")
# include only files in version control
git_dir = File.expand_path('../.git', __FILE__)
if File.directory?(git_dir)
s.files &= `git --git-dir='#{git_dir}' ls-files -z`.split("\0")
end
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
https://github.com/github/hub#readme under the
"Standalone" section.
Cheers,
defunkt
------------------------------------------------------------
message
end