wc 0.98.2 → 0.99.0

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.
@@ -0,0 +1,107 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Documentation by YARD 0.6.8</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="_index.html" title="Index">Index</a> &raquo;
27
+ <span class="title">File: README</span>
28
+
29
+
30
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
31
+ </div>
32
+
33
+ <div id="search">
34
+ <a id="class_list_link" href="#">Class List</a>
35
+ <a id="method_list_link" href="#">Method List</a>
36
+ <a id ="file_list_link" href="#">File List</a>
37
+ </div>
38
+
39
+ <div class="clear"></div>
40
+ </div>
41
+
42
+ <iframe id="search_frame"></iframe>
43
+
44
+ <div id="content"><div id='filecontents'><h1>wc</h1>
45
+ <p>
46
+ wc is a rubygem to count word occurrences in a given text.
47
+ </p>
48
+ <p>
49
+ <b>NEWS</b> This is a major rewrite since version 0.98.2 and the API is
50
+ completely rewritten from scratch. The expected behavior is to let wc gem
51
+ to extend a plain ruby String object and use it to retrieve tag cloud.
52
+ Please note that reading words from a file will be removed in further
53
+ releases.
54
+ </p>
55
+ <h2>Usage</h2>
56
+ <p>
57
+ Using wc is easy. Just require the gem and use the to_tag_cloud method to
58
+ the string containing the text you want to transform in a tag cloud
59
+ </p>
60
+ <pre class="code">
61
+ require 'wc'
62
+
63
+ &quot;A text longer is here&quot;.to_tag_cloud ~&gt; &quot;&lt;ul id=\&quot;cloud\&quot;&gt;&lt;li&gt;&lt;a href=\&quot;#\&quot; class=\&quot;tag0\&quot;&gt;text&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=\&quot;#\&quot; class=\&quot;tag0\&quot;&gt;longer&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=\&quot;#\&quot; class=\&quot;tag0\&quot;&gt;here&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&quot;
64
+ </pre>
65
+ <h2>Note on Patches/Pull Requests</h2>
66
+ <pre class="code">
67
+
68
+ </pre>
69
+ <ul>
70
+ <li><p>
71
+ Fork the project.
72
+ </p>
73
+ </li>
74
+ <li><p>
75
+ Make your feature addition or bug fix.
76
+ </p>
77
+ </li>
78
+ <li><p>
79
+ Add tests for it. This is important so I don&#8217;t break it in a future
80
+ version unintentionally.
81
+ </p>
82
+ </li>
83
+ <li><p>
84
+ Commit, do not mess with rakefile, version, or history. (if you want to
85
+ have your own version, that is fine but bump version in a commit by itself
86
+ I can ignore when I pull)
87
+ </p>
88
+ </li>
89
+ <li><p>
90
+ Send me a pull request. Bonus points for topic branches.
91
+ </p>
92
+ </li>
93
+ </ul>
94
+ <h2>Copyright</h2>
95
+ <p>
96
+ Copyright &#169; 2011 Paolo Perego. See LICENSE for details.
97
+ </p>
98
+ </div></div>
99
+
100
+ <div id="footer">
101
+ Generated on Tue Jul 5 09:22:52 2011 by
102
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
103
+ 0.6.8 (ruby-1.9.2).
104
+ </div>
105
+
106
+ </body>
107
+ </html>
@@ -0,0 +1,38 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html>
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
7
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
8
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
9
+ <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
10
+ <base id="base_target" target="_parent" />
11
+ </head>
12
+ <body>
13
+ <script type="text/javascript" charset="utf-8">
14
+ if (window.top.frames.main) {
15
+ document.getElementById('base_target').target = 'main';
16
+ document.body.className = 'frames';
17
+ }
18
+ </script>
19
+ <div id="content">
20
+ <h1 id="full_list_header">File List</h1>
21
+ <div id="nav">
22
+ <a target="_self" href="class_list.html">Classes</a> |
23
+ <a target="_self" href="method_list.html">Methods</a> |
24
+ <a target="_self" href="file_list.html">Files</a>
25
+ </div>
26
+ <div id="search">Search: <input type="text" /></div>
27
+
28
+ <ul id="full_list" class="files">
29
+
30
+
31
+ <li class="r1"><a href="index.html" title="README">README</a></li>
32
+
33
+
34
+ </ul>
35
+ </div>
36
+ </body>
37
+ </html>
38
+
@@ -0,0 +1,101 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>File: wc.rb</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="fileHeader">
50
+ <h1>wc.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>lib/wc.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Mon Sep 20 11:45:26 +0200 2010</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+
72
+
73
+ </div>
74
+
75
+
76
+ </div>
77
+
78
+
79
+ <!-- if includes -->
80
+
81
+ <div id="section">
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+ <!-- if method_list -->
91
+
92
+
93
+ </div>
94
+
95
+
96
+ <div id="validator-badges">
97
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
98
+ </div>
99
+
100
+ </body>
101
+ </html>
@@ -0,0 +1,27 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Classes
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Classes</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Classes</h1>
22
+ <div id="index-entries">
23
+ <a href="classes/Wc.html">Wc</a><br />
24
+ </div>
25
+ </div>
26
+ </body>
27
+ </html>
@@ -0,0 +1,27 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Files
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Files</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Files</h1>
22
+ <div id="index-entries">
23
+ <a href="files/lib/wc_rb.html">lib/wc.rb</a><br />
24
+ </div>
25
+ </div>
26
+ </body>
27
+ </html>
@@ -0,0 +1,32 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Methods
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Methods</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Methods</h1>
22
+ <div id="index-entries">
23
+ <a href="classes/Wc.html#M000005">feed (Wc)</a><br />
24
+ <a href="classes/Wc.html#M000006">get (Wc)</a><br />
25
+ <a href="classes/Wc.html#M000001">new (Wc)</a><br />
26
+ <a href="classes/Wc.html#M000004">read (Wc)</a><br />
27
+ <a href="classes/Wc.html#M000003">to_cloud (Wc)</a><br />
28
+ <a href="classes/Wc.html#M000002">to_text (Wc)</a><br />
29
+ </div>
30
+ </div>
31
+ </body>
32
+ </html>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
+ <title>Documentation by YARD 0.6.8</title>
8
+ </head>
9
+ <frameset cols="20%,*">
10
+ <frame name="list" src="class_list.html" />
11
+ <frame name="main" src="index.html" />
12
+ </frameset>
13
+ </html>
@@ -0,0 +1,107 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Documentation by YARD 0.6.8</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="_index.html" title="Index">Index</a> &raquo;
27
+ <span class="title">File: README</span>
28
+
29
+
30
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
31
+ </div>
32
+
33
+ <div id="search">
34
+ <a id="class_list_link" href="#">Class List</a>
35
+ <a id="method_list_link" href="#">Method List</a>
36
+ <a id ="file_list_link" href="#">File List</a>
37
+ </div>
38
+
39
+ <div class="clear"></div>
40
+ </div>
41
+
42
+ <iframe id="search_frame"></iframe>
43
+
44
+ <div id="content"><div id='filecontents'><h1>wc</h1>
45
+ <p>
46
+ wc is a rubygem to count word occurrences in a given text.
47
+ </p>
48
+ <p>
49
+ <b>NEWS</b> This is a major rewrite since version 0.98.2 and the API is
50
+ completely rewritten from scratch. The expected behavior is to let wc gem
51
+ to extend a plain ruby String object and use it to retrieve tag cloud.
52
+ Please note that reading words from a file will be removed in further
53
+ releases.
54
+ </p>
55
+ <h2>Usage</h2>
56
+ <p>
57
+ Using wc is easy. Just require the gem and use the to_tag_cloud method to
58
+ the string containing the text you want to transform in a tag cloud
59
+ </p>
60
+ <pre class="code">
61
+ require 'wc'
62
+
63
+ &quot;A text longer is here&quot;.to_tag_cloud ~&gt; &quot;&lt;ul id=\&quot;cloud\&quot;&gt;&lt;li&gt;&lt;a href=\&quot;#\&quot; class=\&quot;tag0\&quot;&gt;text&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=\&quot;#\&quot; class=\&quot;tag0\&quot;&gt;longer&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=\&quot;#\&quot; class=\&quot;tag0\&quot;&gt;here&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&quot;
64
+ </pre>
65
+ <h2>Note on Patches/Pull Requests</h2>
66
+ <pre class="code">
67
+
68
+ </pre>
69
+ <ul>
70
+ <li><p>
71
+ Fork the project.
72
+ </p>
73
+ </li>
74
+ <li><p>
75
+ Make your feature addition or bug fix.
76
+ </p>
77
+ </li>
78
+ <li><p>
79
+ Add tests for it. This is important so I don&#8217;t break it in a future
80
+ version unintentionally.
81
+ </p>
82
+ </li>
83
+ <li><p>
84
+ Commit, do not mess with rakefile, version, or history. (if you want to
85
+ have your own version, that is fine but bump version in a commit by itself
86
+ I can ignore when I pull)
87
+ </p>
88
+ </li>
89
+ <li><p>
90
+ Send me a pull request. Bonus points for topic branches.
91
+ </p>
92
+ </li>
93
+ </ul>
94
+ <h2>Copyright</h2>
95
+ <p>
96
+ Copyright &#169; 2011 Paolo Perego. See LICENSE for details.
97
+ </p>
98
+ </div></div>
99
+
100
+ <div id="footer">
101
+ Generated on Tue Jul 5 09:22:52 2011 by
102
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
103
+ 0.6.8 (ruby-1.9.2).
104
+ </div>
105
+
106
+ </body>
107
+ </html>