word_wrap 0.1.1 → 0.1.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.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/lib/word_wrap/version.rb +1 -1
- data/word_wrap.gemspec +3 -4
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd20368f51ab97ab2130a5314dfef7110eeec1de
|
4
|
+
data.tar.gz: 2515235374c12afce9687ab692eafd1cb1d407ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f2c8e7ac8f3bae457a2097141c77e198131e1c649de5de10297f825ce2986968488f6b9e2d206f3bcf82f716f3c8545b300f2787314e5ffb9ce4188a6a13fe5
|
7
|
+
data.tar.gz: 77dc5abc16756f9480656227e0c220789670667169135fdb7f441e8e48dce7870a6e39e160ff25c401f04a8b0f2a7668aea3243ebb7559b23bd95a3b11b97b94
|
data/README.md
CHANGED
@@ -39,11 +39,12 @@ only two arguments:
|
|
39
39
|
predefined width, in addition to wrapping the lines that exceed
|
40
40
|
it. This option is generally better for plain text. For code,
|
41
41
|
however, it will mess up your indentation.
|
42
|
+
|
42
43
|
#### Examples
|
43
44
|
|
44
45
|
The example file looks like this:
|
45
46
|
```bash
|
46
|
-
cat hip.txt
|
47
|
+
$ cat hip.txt
|
47
48
|
Forage Shoreditch disrupt Pitchfork meh.
|
48
49
|
|
49
50
|
Mustache 3 wolf moon gluten-free whatever master burn
|
@@ -51,7 +52,7 @@ vinyl.
|
|
51
52
|
```
|
52
53
|
|
53
54
|
```bash
|
54
|
-
ww -w20 hip.txt
|
55
|
+
$ ww -w20 hip.txt
|
55
56
|
Forage Shoreditch
|
56
57
|
disrupt Pitchfork
|
57
58
|
meh.
|
@@ -64,7 +65,7 @@ vinyl.
|
|
64
65
|
|
65
66
|
But you can also use stdin:
|
66
67
|
```bash
|
67
|
-
cat hip | ww -w20
|
68
|
+
$ cat hip | ww -w20
|
68
69
|
Forage Shoreditch
|
69
70
|
disrupt Pitchfork
|
70
71
|
meh.
|
@@ -77,7 +78,7 @@ vinyl.
|
|
77
78
|
|
78
79
|
Note the difference at end of the second paragraph:
|
79
80
|
```bash
|
80
|
-
cat hip | ww -w20
|
81
|
+
$ cat hip | ww -w20 -f
|
81
82
|
Forage Shoreditch
|
82
83
|
disrupt Pitchfork
|
83
84
|
meh.
|
@@ -96,7 +97,7 @@ If you would like to use the library in Ruby, you have two options:
|
|
96
97
|
* Use the `String#wrap` and `String#fit` functions this module adds to the
|
97
98
|
standard `String` class.
|
98
99
|
|
99
|
-
####
|
100
|
+
#### Examples
|
100
101
|
|
101
102
|
```irb
|
102
103
|
irb(main):001:0> require 'word_wrap'
|
data/lib/word_wrap/version.rb
CHANGED
data/word_wrap.gemspec
CHANGED
@@ -9,10 +9,9 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Radek Pazdera"]
|
10
10
|
spec.email = ["radek@pazdera.co.uk"]
|
11
11
|
spec.summary = %q{Simple tool for word-wrapping text}
|
12
|
-
spec.description = %q{
|
13
|
-
|
14
|
-
|
15
|
-
scripts - check out the sources for help.}
|
12
|
+
spec.description = %q{As simple as it gets CLI tool for word-wrapping
|
13
|
+
plain-text. You can also use the library in your
|
14
|
+
Ruby scripts. Check out the sources for details.}
|
16
15
|
spec.homepage = "https://github.com/pazdera/word_wrap"
|
17
16
|
spec.license = "MIT"
|
18
17
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: word_wrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Radek Pazdera
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -53,10 +53,9 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: |-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
scripts - check out the sources for help.
|
56
|
+
As simple as it gets CLI tool for word-wrapping
|
57
|
+
plain-text. You can also use the library in your
|
58
|
+
Ruby scripts. Check out the sources for details.
|
60
59
|
email:
|
61
60
|
- radek@pazdera.co.uk
|
62
61
|
executables:
|