whiteout 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +10 -0
- data/lib/whiteout/version.rb +1 -1
- data/lib/whiteout.rb +1 -1
- data/man/whiteout.1 +53 -0
- data/man/whiteout.1.html +131 -0
- data/man/whiteout.1.ronn +48 -0
- data/whiteout.gemspec +2 -1
- metadata +18 -4
data/Rakefile
CHANGED
data/lib/whiteout/version.rb
CHANGED
data/lib/whiteout.rb
CHANGED
data/man/whiteout.1
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "WHITEOUT" "1" "February 2012" "" "Whiteout Manual"
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBwhiteout\fR \- remove trailing whitespace from files
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBwhiteout\fR [\fB\-hrv\fR] [\fBfile\fR \fB\.\.\.\fR]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
\fBwhiteout\fR strips the named \fIFILE\fRs (or standard input if no files are named, or the file name \fB\-\fR is given) of trailing whitespace characters\.
|
14
|
+
.
|
15
|
+
.SH "OPTIONS"
|
16
|
+
.
|
17
|
+
.TP
|
18
|
+
\fB\-h\fR, \fB\-\-help\fR
|
19
|
+
Print help\.
|
20
|
+
.
|
21
|
+
.TP
|
22
|
+
\fB\-r\fR, \fB\-\-recursive\fR
|
23
|
+
Process all files under each directory, recursively\.
|
24
|
+
.
|
25
|
+
.TP
|
26
|
+
\fB\-v\fR, \fB\-\-verbose\fR
|
27
|
+
Be verbose, naming files as they are being processed\.
|
28
|
+
.
|
29
|
+
.SH "EXAMPLES"
|
30
|
+
.
|
31
|
+
.nf
|
32
|
+
|
33
|
+
$ whiteout foo\.c
|
34
|
+
$ whiteout \-rv foo
|
35
|
+
foo/bar\.c
|
36
|
+
foo/baz\.c
|
37
|
+
$ whiteout \-
|
38
|
+
int foo() {
|
39
|
+
return 42;
|
40
|
+
}
|
41
|
+
^D
|
42
|
+
$ whiteout `git ls\-files \-c`
|
43
|
+
.
|
44
|
+
.fi
|
45
|
+
.
|
46
|
+
.SH "BUGS"
|
47
|
+
\fIhttp://github\.com/camdez/whiteout/issues\fR
|
48
|
+
.
|
49
|
+
.SH "AUTHOR"
|
50
|
+
Cameron Desautels <\fIcamdez@gmail\.com\fR>
|
51
|
+
.
|
52
|
+
.SH "SEE ALSO"
|
53
|
+
\fIhttp://github\.com/camdez/whiteout\fR
|
data/man/whiteout.1.html
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
+
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
+
<title>whiteout(1) - remove trailing whitespace from files</title>
|
7
|
+
<style type='text/css' media='all'>
|
8
|
+
/* style: man */
|
9
|
+
body#manpage {margin:0}
|
10
|
+
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
+
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
+
.mp h2 {margin:10px 0 0 0}
|
13
|
+
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
+
.mp h3 {margin:0 0 0 4ex}
|
15
|
+
.mp dt {margin:0;clear:left}
|
16
|
+
.mp dt.flush {float:left;width:8ex}
|
17
|
+
.mp dd {margin:0 0 0 9ex}
|
18
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
+
.mp pre {margin-bottom:20px}
|
20
|
+
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
+
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
+
.mp img {display:block;margin:auto}
|
23
|
+
.mp h1.man-title {display:none}
|
24
|
+
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
+
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
+
.mp h1 {font-size:20px;line-height:2}
|
27
|
+
.mp {text-align:justify;background:#fff}
|
28
|
+
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
+
.mp u {text-decoration:underline}
|
31
|
+
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
+
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
+
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
+
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
+
.mp pre {padding:0 4ex}
|
36
|
+
.mp pre code {font-weight:normal;color:#434241}
|
37
|
+
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
+
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
+
ol.man-decor {width:100%}
|
40
|
+
ol.man-decor li.tl {text-align:left}
|
41
|
+
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
+
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
+
</style>
|
44
|
+
</head>
|
45
|
+
<!--
|
46
|
+
The following styles are deprecated and will be removed at some point:
|
47
|
+
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
48
|
+
|
49
|
+
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
50
|
+
.man-navigation should be used instead.
|
51
|
+
-->
|
52
|
+
<body id='manpage'>
|
53
|
+
<div class='mp' id='man'>
|
54
|
+
|
55
|
+
<div class='man-navigation' style='display:none'>
|
56
|
+
<a href="#NAME">NAME</a>
|
57
|
+
<a href="#SYNOPSIS">SYNOPSIS</a>
|
58
|
+
<a href="#DESCRIPTION">DESCRIPTION</a>
|
59
|
+
<a href="#OPTIONS">OPTIONS</a>
|
60
|
+
<a href="#EXAMPLES">EXAMPLES</a>
|
61
|
+
<a href="#BUGS">BUGS</a>
|
62
|
+
<a href="#AUTHOR">AUTHOR</a>
|
63
|
+
<a href="#SEE-ALSO">SEE ALSO</a>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<ol class='man-decor man-head man head'>
|
67
|
+
<li class='tl'>whiteout(1)</li>
|
68
|
+
<li class='tc'>Whiteout Manual</li>
|
69
|
+
<li class='tr'>whiteout(1)</li>
|
70
|
+
</ol>
|
71
|
+
|
72
|
+
<h2 id="NAME">NAME</h2>
|
73
|
+
<p class="man-name">
|
74
|
+
<code>whiteout</code> - <span class="man-whatis">remove trailing whitespace from files</span>
|
75
|
+
</p>
|
76
|
+
|
77
|
+
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
78
|
+
|
79
|
+
<p><code>whiteout</code> [<code>-hrv</code>] [<code>file</code> <code>...</code>]</p>
|
80
|
+
|
81
|
+
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
82
|
+
|
83
|
+
<p><code>whiteout</code> strips the named <var>FILE</var>s (or standard input if
|
84
|
+
no files are named, or the file name <code>-</code> is given) of trailing
|
85
|
+
whitespace characters.</p>
|
86
|
+
|
87
|
+
<h2 id="OPTIONS">OPTIONS</h2>
|
88
|
+
|
89
|
+
<dl>
|
90
|
+
<dt><code>-h</code>, <code>--help</code></dt><dd><p>Print help.</p></dd>
|
91
|
+
<dt><code>-r</code>, <code>--recursive</code></dt><dd><p>Process all files under each directory, recursively.</p></dd>
|
92
|
+
<dt><code>-v</code>, <code>--verbose</code></dt><dd><p>Be verbose, naming files as they are being processed.</p></dd>
|
93
|
+
</dl>
|
94
|
+
|
95
|
+
|
96
|
+
<h2 id="EXAMPLES">EXAMPLES</h2>
|
97
|
+
|
98
|
+
<pre><code>$ whiteout foo.c
|
99
|
+
$ whiteout -rv foo
|
100
|
+
foo/bar.c
|
101
|
+
foo/baz.c
|
102
|
+
$ whiteout -
|
103
|
+
int foo() {
|
104
|
+
return 42;
|
105
|
+
}
|
106
|
+
^D
|
107
|
+
$ whiteout `git ls-files -c`
|
108
|
+
</code></pre>
|
109
|
+
|
110
|
+
<h2 id="BUGS">BUGS</h2>
|
111
|
+
|
112
|
+
<p><a href="http://github.com/camdez/whiteout/issues" data-bare-link="true">http://github.com/camdez/whiteout/issues</a></p>
|
113
|
+
|
114
|
+
<h2 id="AUTHOR">AUTHOR</h2>
|
115
|
+
|
116
|
+
<p>Cameron Desautels <<a href="mailto:camdez@gmail.com" data-bare-link="true">camdez@gmail.com</a>></p>
|
117
|
+
|
118
|
+
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
119
|
+
|
120
|
+
<p><a href="http://github.com/camdez/whiteout" data-bare-link="true">http://github.com/camdez/whiteout</a></p>
|
121
|
+
|
122
|
+
|
123
|
+
<ol class='man-decor man-foot man foot'>
|
124
|
+
<li class='tl'></li>
|
125
|
+
<li class='tc'>February 2012</li>
|
126
|
+
<li class='tr'>whiteout(1)</li>
|
127
|
+
</ol>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
</body>
|
131
|
+
</html>
|
data/man/whiteout.1.ronn
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
whiteout(1) -- remove trailing whitespace from files
|
2
|
+
====================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`whiteout` [`-hrv`] [`file` `...`]
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
|
10
|
+
`whiteout` strips the named <FILE>s (or standard input if
|
11
|
+
no files are named, or the file name `-` is given) of trailing
|
12
|
+
whitespace characters.
|
13
|
+
|
14
|
+
## OPTIONS
|
15
|
+
|
16
|
+
* `-h`, `--help`:
|
17
|
+
Print help.
|
18
|
+
|
19
|
+
* `-r`, `--recursive`:
|
20
|
+
Process all files under each directory, recursively.
|
21
|
+
|
22
|
+
* `-v`, `--verbose`:
|
23
|
+
Be verbose, naming files as they are being processed.
|
24
|
+
|
25
|
+
## EXAMPLES
|
26
|
+
|
27
|
+
$ whiteout foo.c
|
28
|
+
$ whiteout -rv foo
|
29
|
+
foo/bar.c
|
30
|
+
foo/baz.c
|
31
|
+
$ whiteout -
|
32
|
+
int foo() {
|
33
|
+
return 42;
|
34
|
+
}
|
35
|
+
^D
|
36
|
+
$ whiteout `git ls-files -c`
|
37
|
+
|
38
|
+
## BUGS
|
39
|
+
|
40
|
+
<http://github.com/camdez/whiteout/issues>
|
41
|
+
|
42
|
+
## AUTHOR
|
43
|
+
|
44
|
+
Cameron Desautels <<camdez@gmail.com>>
|
45
|
+
|
46
|
+
## SEE ALSO
|
47
|
+
|
48
|
+
<http://github.com/camdez/whiteout>
|
data/whiteout.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# -*- encoding: utf-8; mode: Ruby -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
3
|
require "whiteout/version"
|
4
4
|
|
@@ -22,5 +22,6 @@ desc
|
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
|
24
24
|
s.add_development_dependency "rspec"
|
25
|
+
s.add_development_dependency "ronn"
|
25
26
|
# s.add_runtime_dependency "rest-client"
|
26
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whiteout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-16 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70129326231540 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,18 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70129326231540
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: ronn
|
27
|
+
requirement: &70129326231080 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70129326231080
|
25
36
|
description: ! ' Removes trailing whitespace from standard input or from named files.
|
26
37
|
|
27
38
|
'
|
@@ -40,6 +51,9 @@ files:
|
|
40
51
|
- bin/whiteout
|
41
52
|
- lib/whiteout.rb
|
42
53
|
- lib/whiteout/version.rb
|
54
|
+
- man/whiteout.1
|
55
|
+
- man/whiteout.1.html
|
56
|
+
- man/whiteout.1.ronn
|
43
57
|
- spec/whiteout_spec.rb
|
44
58
|
- whiteout.gemspec
|
45
59
|
homepage: http://github.com/camdez/whiteout
|