gist 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/gist/version.rb +1 -1
  2. data/man/gist.1 +27 -10
  3. data/man/gist.1.html +183 -81
  4. metadata +2 -2
@@ -1,3 +1,3 @@
1
1
  module Gist
2
- VERSION = Version = '1.2.0'
2
+ VERSION = Version = '1.2.1'
3
3
  end
data/man/gist.1 CHANGED
@@ -1,10 +1,10 @@
1
1
  .\" generated with Ronn/v0.5
2
2
  .\" http://github.com/rtomayko/ronn/
3
3
  .
4
- .TH "GIST" "1" "May 2010" "GITHUB" "Gist Manual"
4
+ .TH "GIST" "1" "June 2010" "GITHUB" "Gist Manual"
5
5
  .
6
6
  .SH "NAME"
7
- \fBgist\fR \-\- gist on the command line
7
+ \fBgist\fR \- gist on the command line
8
8
  .
9
9
  .SH "SYNOPSIS"
10
10
  \fBgist\fR [\fB\-p\fR] [\fB\-t extension\fR] \fIFILE\fR
@@ -40,6 +40,11 @@ Create a private gist instead of a public gist.
40
40
  Set the file extension explicitly. Passing a type of \fBrb\fR ensure
41
41
  the gist is created as a Ruby file.
42
42
  .
43
+ .TP
44
+ \fB\-o\fR, \fB\-\-[no\-]open\fR
45
+ Open the gist in your browser after creation. Or don't. Defaults
46
+ to \-\-open
47
+ .
43
48
  .P
44
49
  You may additionally ask for help:
45
50
  .
@@ -51,7 +56,7 @@ Print help.
51
56
  \fB\-m\fR, \fB\-\-man\fR
52
57
  Display this man page.
53
58
  .
54
- .SH "CONFIGURATION"
59
+ .SH "AUTHENTICATION"
55
60
  There are two ways to set GitHub user and token info:
56
61
  .
57
62
  .IP "\(bu" 4
@@ -97,16 +102,28 @@ $ git config \-\-global github.user <username>
97
102
  See \fIhttp://github.com/guides/local\-github\-config\fR for more
98
103
  information.
99
104
  .
100
- .P
101
- \fBgist\fR will check the \fBHTTP_PROXY\fR env variable if supplied:
105
+ .SH "CONFIGURATION"
106
+ You can set a few options in your git config (using git\-config(1)) to
107
+ control the default behavior of gist(1).
102
108
  .
103
- .IP "" 4
109
+ .IP "\(bu" 4
110
+ gist.private \- boolean (yes or no) \- Determines whether to make a gist
111
+ private by default
104
112
  .
105
- .nf
106
-
107
- $ HTTP_PROXY=http://host:port/ gist script.py
113
+ .IP "\(bu" 4
114
+ gist.extension \- string \- Default extension for gists you create.
108
115
  .
109
- .fi
116
+ .IP "\(bu" 4
117
+ gist.browse \- boolean (yes or no) \- Whether to open the gist in your
118
+ browser after creation. Default: yes
119
+ .
120
+ .IP "" 0
121
+ .
122
+ .SH "ENVIRONMENT"
123
+ The following environment variables affect the execution of \fBgist\fR:
124
+ .
125
+ .IP "\(bu" 4
126
+ HTTP_PROXY \- Proxy to use when Gisting. Should be "http://host:port/"
110
127
  .
111
128
  .IP "" 0
112
129
  .
@@ -2,74 +2,156 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv='content-type' value='text/html;charset=utf8'>
5
- <meta name='generator' value='Ronn/v0.5'>
6
- <title>gist(1) -- gist on the command line</title>
7
- <style type='text/css'>
8
- body {margin:0}
9
- #man, #man code, #man pre, #man tt, #man kbd, #man samp {
10
- font-family:consolas,monospace;
11
- font-size:16px;
12
- line-height:1.3;
13
- color:#343331;
14
- background:#fff; }
15
- #man { max-width:89ex; text-align:justify; margin:0 25px 25px 25px }
16
- #man h1, #man h2, #man h3 { color:#232221;clear:left }
17
- #man h1 { font-size:28px; margin:15px 0 30px 0; text-align:center }
18
- #man h2 { font-size:18px; margin-bottom:0; margin-top:10px; line-height:1.3; }
19
- #man h3 { font-size:16px; margin:0 0 0 4ex; }
20
- #man p, #man ul, #man ol, #man dl, #man pre { margin:0 0 18px 0; }
21
- #man pre {
22
- color:#333231;
5
+ <meta name='generator' value='Ronn/v0.5 (http://github.com/rtomayko/ronn)'>
6
+ <title>gist(1) - gist on the command line</title>
7
+ <style type='text/css' media='all'>
8
+ /* STRUCTURE, INDENT, MARGINS */
9
+
10
+ body { margin:0}
11
+ #man { max-width:92ex; padding:0 2ex 1ex 2ex}
12
+
13
+ #man p, #man pre,
14
+ #man ul, #man ol, #man dl { margin:0 0 20px 0}
15
+ #man h2 { margin:10px 0 0 0}
16
+
17
+ #man > p, #man > pre,
18
+ #man > ul, #man > ol, #man > dl { margin-left:8ex}
19
+ #man h3 { margin:0 0 0 4ex}
20
+
21
+ #man dt { margin:0; clear:left}
22
+ #man dt.flush { float:left; width:8ex}
23
+ #man dd { margin:0 0 0 9ex}
24
+ #man h1, #man h2, #man h3, #man h4 { clear:left}
25
+
26
+ #man pre { margin-bottom:20px}
27
+ #man pre+h2, #man pre+h3 { margin-top:22px}
28
+ #man h2+pre, #man h3+pre { margin-top:5px}
29
+
30
+ #man img { display:block;margin:auto}
31
+ #man h1.man-title { display:none}
32
+
33
+ /* FONTS */
34
+
35
+ #man, #man code, #man pre,
36
+ #man tt, #man kbd, #man samp,
37
+ #man h3, #man h4 {
38
+ font-family:monospace;
39
+ font-size:14px;
40
+ line-height:1.42857142857143;
41
+ }
42
+ #man h2, #man ol.man, #man .man-navigation a {
43
+ font-size:16px;
44
+ line-height:1.25
45
+ }
46
+ #man h1 {
47
+ font-size:20px;
48
+ line-height:2;
49
+ }
50
+
51
+ /* TEXT STYLES */
52
+
53
+ #man {
54
+ text-align:justify;
55
+ background:#fff;
56
+ }
57
+ #man, #man code, #man pre, #man pre code,
58
+ #man tt, #man kbd, #man samp { color:#131211}
59
+ #man h1, #man h2, #man h3, #man h4 { color:#030201}
60
+ #man ol.man, #man ol.man li { color:#636261}
61
+
62
+ #man code, #man strong, #man b {
63
+ font-weight:bold;
64
+ color:#131211;
65
+ }
66
+
67
+ #man em, #man var, #man u {
68
+ font-style:italic;
69
+ color:#434241;
70
+ text-decoration:none;
71
+ }
72
+
73
+ #man pre {
23
74
  background:#edeceb;
24
- padding:5px 7px;
25
- margin:0px 0 20px 0;
26
- border-left:2ex solid #ddd}
27
- #man pre + h2, #man pre + h3 {
28
- margin-top:22px;
29
- }
30
- #man h2 + pre, #man h3 + pre {
31
- margin-top:5px;
32
- }
33
- #man > p, #man > ul, #man > ol, #man > dl, #man > pre { margin-left:8ex; }
34
- #man dt { margin:0; clear:left }
35
- #man dt.flush { float:left; width:8ex }
36
- #man dd { margin:0 0 0 9ex }
37
- #man code, #man strong, #man b { font-weight:bold; color:#131211; }
38
- #man pre code { font-weight:normal; color:#232221; background:inherit }
39
- #man em, var, u {
40
- font-style:normal; color:#333231; border-bottom:1px solid #999; }
41
- #man h1.man-title { display:none; }
42
- #man ol.man, #man ol.man li { margin:2px 0 10px 0; padding:0;
43
- float:left; width:33%; list-style-type:none;
44
- text-transform:uppercase; font-size:18px; color:#999;
45
- letter-spacing:1px;}
46
- #man ol.man { width:100%; }
47
- #man ol.man li.tl { text-align:left }
48
- #man ol.man li.tc { text-align:center;letter-spacing:4px }
49
- #man ol.man li.tr { text-align:right }
50
- #man ol.man a { color:#999 }
51
- #man ol.man a:hover { color:#333231 }
75
+ padding:5px 1ex;
76
+ border-left:1ex solid #ddd;
77
+ }
78
+ #man pre code {
79
+ font-weight:normal;
80
+ background:inherit;
81
+ }
82
+
83
+ /* DOCUMENT HEADER AND FOOTER AREAS */
84
+
85
+ #man ol.man, #man ol.man li {
86
+ margin:3px 0 10px 0;
87
+ padding:0;
88
+ float:left;
89
+ width:33%;
90
+ list-style-type:none;
91
+ text-transform:uppercase;
92
+ color:#999;
93
+ letter-spacing:1px;
94
+ }
95
+ #man ol.man { width:100%}
96
+ #man ol.man li.tl { text-align:left}
97
+ #man ol.man li.tc { text-align:center; letter-spacing:4px}
98
+ #man ol.man li.tr { text-align:right; float:right}
99
+
100
+ /* SECTION TOC NAVIGATION */
101
+
102
+ #man div.man-navigation {
103
+ position:fixed;
104
+ top:0;
105
+ left:106ex;
106
+ height:100%;
107
+ width:100%;
108
+ padding:1ex 0 0 2ex;
109
+ border-left:0.25ex solid #DCDCDC;
110
+ background-color: #F5F5F5;
111
+ }
112
+ #man div.man-navigation a { display:block; margin-bottom:1.5ex}
113
+ </style>
114
+ <style type='text/css' media='print'>
115
+ #man { max-width:none}
116
+ #man div.man-navigation { display:none}
117
+ #man a[href]:not([href^="#"]):not([data-bare-link]):after {
118
+ content:" " attr(href);
119
+ }
52
120
  </style>
53
121
  </head>
54
- <body>
55
- <div id='man'>
56
-
57
- <h1 class='man-title'>gist(1)</h1>
58
-
59
- <ol class='head man'>
60
- <li class='tl'>gist(1)</li>
61
- <li class='tc'>Gist Manual</li>
62
- <li class='tr'>gist(1)</li>
63
- </ol>
64
-
65
- <h2 id='NAME'>NAME</h2>
66
- <p><code>gist</code> -- gist on the command line</p>
67
-
68
- <h2>SYNOPSIS</h2>
122
+ <body id='manpage'>
123
+ <div id='man'>
124
+
125
+ <div class='man-navigation'>
126
+ <a href="#NAME">NAME</a>
127
+ <a href="#SYNOPSIS">SYNOPSIS</a>
128
+ <a href="#DESCRIPTION">DESCRIPTION</a>
129
+ <a href="#OPTIONS">OPTIONS</a>
130
+ <a href="#AUTHENTICATION">AUTHENTICATION</a>
131
+ <a href="#CONFIGURATION">CONFIGURATION</a>
132
+ <a href="#ENVIRONMENT">ENVIRONMENT</a>
133
+ <a href="#EXAMPLES">EXAMPLES</a>
134
+ <a href="#BUGS">BUGS</a>
135
+ <a href="#AUTHOR">AUTHOR</a>
136
+ <a href="#SEE-ALSO">SEE ALSO</a>
137
+ </div>
138
+
139
+ <h1 class='man-title'>gist(1)</h1>
140
+
141
+ <ol class='man head'>
142
+ <li class='tl'>gist(1)</li>
143
+ <li class='tc'>Gist Manual</li>
144
+ <li class='tr'>gist(1)</li>
145
+ </ol>
146
+
147
+ <h2 id='NAME'>NAME</h2>
148
+ <p><code>gist</code> - gist on the command line</p>
149
+
150
+ <h2 id="SYNOPSIS">SYNOPSIS</h2>
69
151
 
70
152
  <p><code>gist</code> [<code>-p</code>] [<code>-t extension</code>] <var>FILE</var></p>
71
153
 
72
- <h2>DESCRIPTION</h2>
154
+ <h2 id="DESCRIPTION">DESCRIPTION</h2>
73
155
 
74
156
  <p><code>gist</code> can be used to create gists on gist.github.com from the command
75
157
  line. There are two primary methods of creating gists.</p>
@@ -82,7 +164,7 @@ to create the gist.</p>
82
164
  clipboard. If you are on OS X, <code>gist</code> will open the gist in your
83
165
  browser, too.</p>
84
166
 
85
- <h2>OPTIONS</h2>
167
+ <h2 id="OPTIONS">OPTIONS</h2>
86
168
 
87
169
  <p><code>gist</code>'s default mode of operation is to read content from standard
88
170
  input and create a public, text gist from it, tied to your GitHub
@@ -94,6 +176,8 @@ account if you user and token are provided (see <code>CONFIGURATION</code>).</p>
94
176
  <dt><code>-p</code>, <code>--private</code></dt><dd><p>Create a private gist instead of a public gist.</p></dd>
95
177
  <dt><code>-t</code>, <code>--type</code></dt><dd><p>Set the file extension explicitly. Passing a type of <code>rb</code> ensure
96
178
  the gist is created as a Ruby file.</p></dd>
179
+ <dt><code>-o</code>, <code>--[no-]open</code></dt><dd><p>Open the gist in your browser after creation. Or don't. Defaults
180
+ to --open</p></dd>
97
181
  </dl>
98
182
 
99
183
 
@@ -105,7 +189,7 @@ the gist is created as a Ruby file.</p></dd>
105
189
  </dl>
106
190
 
107
191
 
108
- <h2>CONFIGURATION</h2>
192
+ <h2 id="AUTHENTICATION">AUTHENTICATION</h2>
109
193
 
110
194
  <p>There are two ways to set GitHub user and token info:</p>
111
195
 
@@ -129,15 +213,33 @@ $ gist ~/example</p></li>
129
213
  <pre><code>$ git config --global github.user &lt;username>
130
214
  </code></pre>
131
215
 
132
- <p>See <a href="http://github.com/guides/local-github-config">http://github.com/guides/local-github-config</a> for more
216
+ <p>See <a href="http://github.com/guides/local-github-config" data-bare-link="true">http://github.com/guides/local-github-config</a> for more
133
217
  information.</p>
134
218
 
135
- <p><code>gist</code> will check the <code>HTTP_PROXY</code> env variable if supplied:</p>
219
+ <h2 id="CONFIGURATION">CONFIGURATION</h2>
220
+
221
+ <p>You can set a few options in your git config (using git-config(1)) to
222
+ control the default behavior of gist(1).</p>
223
+
224
+ <ul>
225
+ <li><p>gist.private - boolean (yes or no) - Determines whether to make a gist
226
+ private by default</p></li>
227
+ <li><p>gist.extension - string - Default extension for gists you create.</p></li>
228
+ <li><p>gist.browse - boolean (yes or no) - Whether to open the gist in your
229
+ browser after creation. Default: yes</p></li>
230
+ </ul>
231
+
232
+
233
+ <h2 id="ENVIRONMENT">ENVIRONMENT</h2>
234
+
235
+ <p>The following environment variables affect the execution of <code>gist</code>:</p>
236
+
237
+ <ul>
238
+ <li>HTTP_PROXY - Proxy to use when Gisting. Should be "http://host:port/"</li>
239
+ </ul>
136
240
 
137
- <pre><code>$ HTTP_PROXY=http://host:port/ gist script.py
138
- </code></pre>
139
241
 
140
- <h2>EXAMPLES</h2>
242
+ <h2 id="EXAMPLES">EXAMPLES</h2>
141
243
 
142
244
  <pre><code>$ gist &lt; file.txt
143
245
  $ echo secret | gist --private
@@ -145,27 +247,27 @@ $ echo "puts :hi" | gist -t rb
145
247
  $ gist script.py
146
248
  </code></pre>
147
249
 
148
- <h2>BUGS</h2>
250
+ <h2 id="BUGS">BUGS</h2>
149
251
 
150
- <p><a href="http://github.com/defunkt/gist/issues">http://github.com/defunkt/gist/issues</a></p>
252
+ <p><a href="http://github.com/defunkt/gist/issues" data-bare-link="true">http://github.com/defunkt/gist/issues</a></p>
151
253
 
152
- <h2>AUTHOR</h2>
254
+ <h2 id="AUTHOR">AUTHOR</h2>
153
255
 
154
256
  <p>Chris Wanstrath :: chris@ozmm.org</p>
155
257
 
156
- <h2>SEE ALSO</h2>
258
+ <h2 id="SEE-ALSO">SEE ALSO</h2>
157
259
 
158
260
  <p>hub(1), git(1), git-clone(1),
159
- <a href="http://github.com">http://github.com</a>,
160
- <a href="http://github.com/defunkt/gist">http://github.com/defunkt/gist</a></p>
261
+ <a href="http://github.com" data-bare-link="true">http://github.com</a>,
262
+ <a href="http://github.com/defunkt/gist" data-bare-link="true">http://github.com/defunkt/gist</a></p>
161
263
 
162
264
 
163
- <ol class='foot man'>
164
- <li class='tl'>GITHUB</li>
165
- <li class='tc'>May 2010</li>
166
- <li class='tr'>gist(1)</li>
167
- </ol>
265
+ <ol class='man foot'>
266
+ <li class='tl'>GITHUB</li>
267
+ <li class='tc'>June 2010</li>
268
+ <li class='tr'>gist(1)</li>
269
+ </ol>
168
270
 
169
- </div>
271
+ </div>
170
272
  </body>
171
273
  </html>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 0
9
- version: 1.2.0
8
+ - 1
9
+ version: 1.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chris Wanstrath