git-hub 1.5.1 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-hub
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease:
4
+ hash: 15
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 5
9
- - 1
10
- version: 1.5.1
8
+ - 6
9
+ - 0
10
+ version: 1.6.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Wanstrath
@@ -15,64 +15,38 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-18 00:00:00 +01:00
18
+ date: 2011-03-24 00:00:00 -07:00
19
19
  default_executable:
20
- dependencies: []
21
-
22
- description: " `hub` is a command line utility which adds GitHub knowledge to `git`.\n\n It can used on its own or as a `git` wrapper.\n\n Normal:\n\n $ hub clone rtomayko/tilt\n\n Expands to:\n $ git clone git://github.com/rtomayko/tilt.git\n\n Wrapping `git`:\n\n $ git clone rack/rack\n\n Expands to:\n $ git clone git://github.com/rack/rack.git\n"
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: hub
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ description:
23
36
  email: chris@ozmm.org
24
- executables:
25
- - hub
37
+ executables: []
38
+
26
39
  extensions: []
27
40
 
28
41
  extra_rdoc_files: []
29
42
 
30
- files:
31
- - README.md
32
- - Rakefile
33
- - LICENSE
34
- - lib/hub/args.rb
35
- - lib/hub/commands.rb
36
- - lib/hub/context.rb
37
- - lib/hub/runner.rb
38
- - lib/hub/standalone.rb
39
- - lib/hub/version.rb
40
- - lib/hub.rb
41
- - bin/hub
42
- - man/hub.1
43
- - man/hub.1.html
44
- - man/hub.1.ronn
45
- - test/alias_test.rb
46
- - test/deps.rip
47
- - test/fakebin/git
48
- - test/fakebin/open
49
- - test/helper.rb
50
- - test/hub_test.rb
51
- - test/standalone_test.rb
43
+ files: []
44
+
52
45
  has_rdoc: true
53
46
  homepage: http://github.com/defunkt/hub
54
47
  licenses: []
55
48
 
56
- post_install_message: |+
57
-
58
- ------------------------------------------------------------
59
-
60
- You there! Wait, I say!
61
- =======================
62
-
63
- If you are a heavy user of `git` on the command
64
- line you may want to install `hub` the old
65
- fashioned way. Faster startup time, you see.
66
-
67
- Check out the installation instructions at
68
- http://github.com/defunkt/hub#readme under the
69
- "Standalone" section.
70
-
71
- Cheers,
72
- defunkt
73
-
74
- ------------------------------------------------------------
75
-
49
+ post_install_message:
76
50
  rdoc_options: []
77
51
 
78
52
  require_paths:
@@ -98,9 +72,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
72
  requirements: []
99
73
 
100
74
  rubyforge_project:
101
- rubygems_version: 1.5.3
75
+ rubygems_version: 1.3.7
102
76
  signing_key:
103
77
  specification_version: 3
104
- summary: hub introduces git to GitHub
78
+ summary: The `git-hub' gem has been renamed `hub'.
105
79
  test_files: []
106
80
 
data/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2009 Chris Wanstrath
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md DELETED
@@ -1,339 +0,0 @@
1
- hub: git + hub = github
2
- =======================
3
-
4
- `hub` is a command line utility which adds GitHub knowledge to `git`.
5
-
6
- It can used on its own or as a `git` wrapper.
7
-
8
- Normal:
9
-
10
- $ hub clone rtomayko/tilt
11
-
12
- Expands to:
13
- $ git clone git://github.com/rtomayko/tilt.git
14
-
15
- Wrapping `git`:
16
-
17
- $ git clone rack/rack
18
-
19
- Expands to:
20
- $ git clone git://github.com/rack/rack.git
21
-
22
- hub requires you have `git` installed and in your `$PATH`. It also
23
- requires Ruby 1.8.6+ or Ruby 1.9.1+. No other libraries necessary.
24
-
25
-
26
- Install
27
- -------
28
-
29
- ### Standalone
30
-
31
- `hub` is most easily installed as a standalone script:
32
-
33
- curl http://chriswanstrath.com/hub/standalone -sLo ~/bin/hub &&
34
- chmod 755 ~/bin/hub
35
-
36
- Assuming `~/bin/` is in your `$PATH`, you're ready to roll:
37
-
38
- $ hub version
39
- git version 1.7.0.4
40
- hub version 1.1.0
41
-
42
- ### Homebrew
43
-
44
- $ brew install hub
45
- $ which hub
46
- /usr/local/bin/hub
47
- $ hub version
48
- ...
49
-
50
- ### RubyGems
51
-
52
- Though not recommended, `hub` can also be installed as a RubyGem:
53
-
54
- $ gem install git-hub
55
-
56
- Yes, the gem name is "git-hub".
57
-
58
- (It's not recommended for casual use because of the RubyGems startup
59
- time. See [this gist][speed] for information.)
60
-
61
- ### Standalone via RubyGems
62
-
63
- Yes, the gem name is still "git-hub":
64
-
65
- $ gem install git-hub
66
- $ hub hub standalone > ~/bin/hub && chmod 755 ~/bin/hub
67
-
68
- This installs a standalone version which doesn't require RubyGems to
69
- run.
70
-
71
- ### Source
72
-
73
- You can also install from source:
74
-
75
- $ git clone git://github.com/defunkt/hub.git
76
- $ cd hub
77
- $ rake install prefix=/usr/local
78
-
79
-
80
- Aliasing
81
- --------
82
-
83
- `hub` works best when it wraps `git`. This is not dangerous - your
84
- normal git commands should all work. hub merely adds some sugar.
85
-
86
- Typing `hub alias <shell>` will display alias instructions for
87
- your shell. `hub alias` alone will show the known shells.
88
-
89
- For example:
90
-
91
- $ hub alias bash
92
- Run this in your shell to start using `hub` as `git`:
93
- alias git=hub
94
-
95
- You should place this command in your `.bash_profile` or other startup
96
- script to ensure runs on login.
97
-
98
- The alias command can also be eval'd directly using the `-s` flag:
99
-
100
- $ eval `hub alias -s bash`
101
-
102
-
103
- Commands
104
- --------
105
-
106
- Assuming you've aliased `hub` to `git` the following commands now have
107
- superpowers:
108
-
109
- ### git clone
110
-
111
- $ git clone schacon/ticgit
112
- > git clone git://github.com/schacon/ticgit.git
113
-
114
- $ git clone -p schacon/ticgit
115
- > git clone git@github.com:schacon/ticgit.git
116
-
117
- $ git clone resque
118
- > git clone git://github.com/YOUR_USER/resque.git
119
-
120
- $ git clone -p resque
121
- > git clone git@github.com:YOUR_USER/resque.git
122
-
123
- ### git remote add
124
-
125
- $ git remote add rtomayko
126
- > git remote add rtomayko git://github.com/rtomayko/CURRENT_REPO.git
127
-
128
- $ git remote add -p rtomayko
129
- > git remote add rtomayko git@github.com:rtomayko/CURRENT_REPO.git
130
-
131
- $ git remote add origin
132
- > git remote add origin git://github.com/YOUR_USER/CURRENT_REPO.git
133
-
134
- ### git fetch
135
-
136
- $ git fetch mislav
137
- > git remote add mislav git://github.com/mislav/REPO.git
138
- > git fetch mislav
139
-
140
- $ git fetch mislav,xoebus
141
- > git remote add mislav ...
142
- > git remote add xoebus ...
143
- > git fetch --multiple mislav xoebus
144
-
145
- ### git cherry-pick
146
-
147
- $ git cherry-pick http://github.com/mislav/REPO/commit/SHA
148
- > git remote add -f mislav git://github.com/mislav/REPO.git
149
- > git cherry-pick SHA
150
-
151
- $ git cherry-pick mislav@SHA
152
- > git remote add -f mislav git://github.com/mislav/CURRENT_REPO.git
153
- > git cherry-pick SHA
154
-
155
- $ git cherry-pick mislav@SHA
156
- > git fetch mislav
157
- > git cherry-pick SHA
158
-
159
- ### git fork
160
-
161
- $ git fork
162
- ... hardcore forking action ...
163
- > git remote add -f YOUR_USER git@github.com:YOUR_USER/CURRENT_REPO.git
164
-
165
- Forks the original repo on GitHub and adds the new remote under your
166
- username. It requires your GitHub token to be present; see "GitHub
167
- login" below for details.
168
-
169
- ### git create
170
-
171
- $ git create
172
- ... hardcore creating action ...
173
- > git remote add origin git@github.com:YOUR_USER/CURRENT_REPO.git
174
-
175
- Creates a new public github repository and adds the remote `origin` at
176
- "git@github.com:<USER>/<REPOSITORY>.git"
177
-
178
- ### git init
179
-
180
- $ git init -g
181
- > git init
182
- > git remote add origin git@github.com:YOUR_USER/REPO.git
183
-
184
- ### git push
185
-
186
- $ git push origin,staging,qa bert_timeout
187
- > git push origin bert_timeout
188
- > git push staging bert_timeout
189
- > git push qa bert_timeout
190
-
191
- ### git browse
192
-
193
- $ git browse
194
- > open https://github.com/CURRENT_REPO
195
-
196
- $ git browse -- issues
197
- > open https://github.com/CURRENT_REPO/issues
198
-
199
- $ git browse schacon/ticgit
200
- > open https://github.com/schacon/ticgit
201
-
202
- $ git browse resque
203
- > open https://github.com/YOUR_USER/resque
204
-
205
- $ git browse resque network
206
- > open https://github.com/YOUR_USER/resque/network
207
-
208
- ### git compare
209
-
210
- $ git compare refactor
211
- > open https://github.com/CURRENT_REPO/compare/refactor
212
-
213
- $ git compare 1.0...1.1
214
- > open https://github.com/CURRENT_REPO/compare/1.0...1.1
215
-
216
- $ git compare -u fix
217
- > (https://github.com/CURRENT_REPO/compare/fix)
218
-
219
- $ git compare other-user patch
220
- > open https://github.com/other-user/REPO/compare/patch
221
-
222
- ### git submodule
223
-
224
- $ hub submodule add wycats/bundler vendor/bundler
225
- > git submodule add git://github.com/wycats/bundler.git vendor/bundler
226
-
227
- $ hub submodule add -p wycats/bundler vendor/bundler
228
- > git submodule add git@github.com:wycats/bundler.git vendor/bundler
229
-
230
- $ hub submodule add -b ryppl ryppl/pip vendor/pip
231
- > git submodule add -b ryppl git://github.com/ryppl/pip.git vendor/pip
232
-
233
-
234
- ### git help
235
-
236
- $ git help
237
- > (improved git help)
238
- $ git help hub
239
- > (hub man page)
240
-
241
-
242
- GitHub Login
243
- ------------
244
-
245
- To get the most out of `hub`, you'll want to ensure your GitHub login
246
- is stored locally in your Git config or environment variables.
247
-
248
- To test it run this:
249
-
250
- $ git config --global github.user
251
-
252
- If you see nothing, you need to set the config setting:
253
-
254
- $ git config --global github.user YOUR_USER
255
-
256
- For commands that require write access to GitHub (such as `fork`), you'll want to
257
- setup "github.token" as well. See [local GitHub config guide][2] for more information.
258
-
259
- Want to use environment variables instead of a local gitconfig?
260
-
261
- * `GITHUB_USER` - If set, this will be used instead of the `github.user` config
262
- value to determine your GitHub username.
263
- * `GITHUB_TOKEN` - If set, this will be used instead of the `github.token` config
264
- value to determine your GitHub API token.
265
-
266
- Configuration
267
- -------------
268
-
269
- If you prefer `http://` clones to `git://` clones, you can set the
270
- `hub.http-clone` option to true using `git-config`.
271
-
272
- For example:
273
-
274
- $ git clone defunkt/repl
275
- < git clone >
276
- $ git config --global --bool hub.http-clone true
277
- $ git clone defunkt/repl
278
- < http clone >
279
-
280
- Or you can enter this manually into your `~/.gitconfig` file:
281
-
282
- $ cat ~/.gitconfig
283
- [hub]
284
- http-clone = yes
285
-
286
-
287
- Prior Art
288
- ---------
289
-
290
- These projects also aim to either improve git or make interacting with
291
- GitHub simpler:
292
-
293
- * [eg](http://www.gnome.org/~newren/eg/)
294
- * [github-gem](http://github.com/defunkt/github-gem)
295
- * [gh](http://github.com/visionmedia/gh)
296
-
297
-
298
- Contributing
299
- ------------
300
-
301
- Once you've made your great commits:
302
-
303
- 1. [Fork][0] hub
304
- 2. Create a topic branch - `git checkout -b my_branch`
305
- 3. Push to your branch - `git push origin my_branch`
306
- 4. Create an [Issue][1] with a link to your branch
307
- 5. That's it!
308
-
309
- ### Development Gems
310
- You will need the following gems (and their dependencies) to
311
- contribute to `hub`:
312
-
313
- * `rake` (`gem install rake`)
314
- * `kicker` (`gem install kicker`)
315
- * `turn` (`gem install turn`)
316
- * `mg` (`gem install mg`)
317
- * `ronn` (`gem install ronn`)
318
- * `webmock` (`gem install webmock`)
319
-
320
- Meta
321
- ----
322
-
323
- * Code: `git clone git://github.com/defunkt/hub.git`
324
- * Home: <http://github.com/defunkt/hub>
325
- * Bugs: <http://github.com/defunkt/hub/issues>
326
- * List: <http://groups.google.com/group/github>
327
- * Test: <http://runcoderun.com/defunkt/hub>
328
- * Gems: <http://gemcutter.org/gems/git-hub>
329
-
330
-
331
- Authors
332
- -------
333
-
334
- <https://github.com/defunkt/hub/contributors>
335
-
336
- [0]: http://help.github.com/forking/
337
- [1]: http://github.com/defunkt/hub/issues
338
- [speed]: http://gist.github.com/284823
339
- [2]: http://github.com/guides/local-github-config