word_counter 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.
- checksums.yaml +4 -4
- data/README.md +23 -0
- data/lib/word_counter/version.rb +1 -1
- data/lib/word_counter.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5ce85b61fc478bd3370f801801bbe0b10cf2dd1
|
4
|
+
data.tar.gz: 706ede944d9e83028e26a324814130e7ce7483df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aca7fc10e5b601a37cd7219ba93aa6f3b8283ec8e06ce1bf479dba51e0392923be32bd76373978d287d15be676e76258296f121fdabf0f592a5a04a31e403270
|
7
|
+
data.tar.gz: a61e8068686b4132b2023e171b14c5b508ad6f94d42c7348fd2b514bf137b1d23abaa7916c99801fb97cf5fc1316e85b0272c69c846ee7b6cb9c1c030f8771e0
|
data/README.md
CHANGED
@@ -24,6 +24,18 @@ Or install it yourself as:
|
|
24
24
|
To count a website's words:
|
25
25
|
|
26
26
|
$ word_counter www.example.com
|
27
|
+
Results:
|
28
|
+
2 Domain
|
29
|
+
2 Example
|
30
|
+
2 domain
|
31
|
+
2 examples
|
32
|
+
2 for
|
33
|
+
2 in
|
34
|
+
1 More
|
35
|
+
1 This
|
36
|
+
1 You
|
37
|
+
1 asking
|
38
|
+
1 be
|
27
39
|
|
28
40
|
To count a file's words:
|
29
41
|
|
@@ -32,6 +44,17 @@ To count a file's words:
|
|
32
44
|
Use the `-s` switch to also report which lines contained the counted word (can result in lot of text output, so you might want to pipe it to `less`):
|
33
45
|
|
34
46
|
$ word_counter www.example.com -s | less
|
47
|
+
Results:
|
48
|
+
2 Domain
|
49
|
+
1: Example Domain
|
50
|
+
2 Example
|
51
|
+
1: Example Domain
|
52
|
+
2 domain
|
53
|
+
1: This domain is established to be used for illustrative examples in documents. You may use this
|
54
|
+
2: domain in examples without prior coordination or asking for permission.
|
55
|
+
2 examples
|
56
|
+
1: This domain is established to be used for illustrative examples in documents. You may use this
|
57
|
+
2: domain in examples without prior coordination or asking for permission.
|
35
58
|
|
36
59
|
## Roadmap
|
37
60
|
|
data/lib/word_counter/version.rb
CHANGED
data/lib/word_counter.rb
CHANGED