@@ -79,7 +79,7 @@ module Gist
79
79
end
80
80
end
81
81
module Gist
82
- VERSION = Version = '1.2.0 '
82
+ VERSION = Version = '1.2.1 '
83
83
end
84
84
require 'open-uri'
85
85
require 'net/http'
@@ -218,7 +218,7 @@ private
218
218
user = config ( "github.user" )
219
219
token = config ( "github.token" )
220
220
221
- user . empty? ? { } : { :login => user , :token => token }
221
+ user . to_s . empty? ? { } : { :login => user , :token => token }
222
222
end
223
223
224
224
def defaults
@@ -262,10 +262,10 @@ __END__
262
262
.\" generated with Ronn/v0.5
263
263
.\" http://github.com/rtomayko/ronn/
264
264
.
265
- .TH "GIST" "1" "May 2010" "GITHUB" "Gist Manual"
265
+ .TH "GIST" "1" "June 2010" "GITHUB" "Gist Manual"
266
266
.
267
267
.SH "NAME"
268
- \fBgist\fR \-\- gist on the command line
268
+ \fBgist\fR \- gist on the command line
269
269
.
270
270
.SH "SYNOPSIS"
271
271
\fBgist\fR [\fB\-p\fR] [\fB\-t extension\fR] \fIFILE\fR
@@ -301,6 +301,11 @@ Create a private gist instead of a public gist.
301
301
Set the file extension explicitly. Passing a type of \fBrb\fR ensure
302
302
the gist is created as a Ruby file.
303
303
.
304
+ .TP
305
+ \fB\-o\fR, \fB\-\-[no\-]open\fR
306
+ Open the gist in your browser after creation. Or don't. Defaults
307
+ to \-\-open
308
+ .
304
309
.P
305
310
You may additionally ask for help:
306
311
.
@@ -312,7 +317,7 @@ Print help.
312
317
\fB\-m\fR, \fB\-\-man\fR
313
318
Display this man page.
314
319
.
315
- .SH "CONFIGURATION "
320
+ .SH "AUTHENTICATION "
316
321
There are two ways to set GitHub user and token info:
317
322
.
318
323
.IP "\(bu" 4
@@ -358,16 +363,28 @@ $ git config \-\-global github.user <username>
358
363
See \fIhttp://github.com/guides/local\-github\-config\fR for more
359
364
information.
360
365
.
361
- .P
362
- \fBgist\fR will check the \fBHTTP_PROXY\fR env variable if supplied:
366
+ .SH "CONFIGURATION"
367
+ You can set a few options in your git config (using git\-config(1)) to
368
+ control the default behavior of gist(1).
363
369
.
364
- .IP "" 4
370
+ .IP "\(bu" 4
371
+ gist.private \- boolean (yes or no) \- Determines whether to make a gist
372
+ private by default
365
373
.
366
- .nf
367
-
368
- $ HTTP_PROXY=http://host:port/ gist script.py
374
+ .IP "\(bu" 4
375
+ gist.extension \- string \- Default extension for gists you create.
369
376
.
370
- .fi
377
+ .IP "\(bu" 4
378
+ gist.browse \- boolean (yes or no) \- Whether to open the gist in your
379
+ browser after creation. Default: yes
380
+ .
381
+ .IP "" 0
382
+ .
383
+ .SH "ENVIRONMENT"
384
+ The following environment variables affect the execution of \fBgist\fR:
385
+ .
386
+ .IP "\(bu" 4
387
+ HTTP_PROXY \- Proxy to use when Gisting. Should be "http://host:port/"
371
388
.
372
389
.IP "" 0
373
390
.
0 commit comments