De.linque.nt 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/README +148 -0
  2. data/bin/delinquent +90 -0
  3. data/doc/classes/Delinquent.html +250 -0
  4. data/doc/classes/Delinquent.src/M000001.html +18 -0
  5. data/doc/classes/Delinquent.src/M000002.html +18 -0
  6. data/doc/classes/Delinquent.src/M000003.html +25 -0
  7. data/doc/classes/Delinquent.src/M000004.html +29 -0
  8. data/doc/classes/Delinquent.src/M000005.html +29 -0
  9. data/doc/classes/Delinquent.src/M000006.html +18 -0
  10. data/doc/classes/Delinquent.src/M000007.html +18 -0
  11. data/doc/classes/Delinquent.src/M000008.html +19 -0
  12. data/doc/classes/Delinquent.src/M000009.html +18 -0
  13. data/doc/classes/Delinquent.src/M000010.html +19 -0
  14. data/doc/classes/Delinquent.src/M000011.html +18 -0
  15. data/doc/classes/Delinquent.src/M000012.html +18 -0
  16. data/doc/classes/Delinquent.src/M000013.html +18 -0
  17. data/doc/classes/Delinquent.src/M000014.html +25 -0
  18. data/doc/classes/Delinquent.src/M000015.html +29 -0
  19. data/doc/classes/Delinquent.src/M000016.html +29 -0
  20. data/doc/classes/Delinquent.src/M000017.html +18 -0
  21. data/doc/classes/Delinquent.src/M000018.html +18 -0
  22. data/doc/created.rid +1 -0
  23. data/doc/files/README.html +298 -0
  24. data/doc/files/examples/deform_rb.html +101 -0
  25. data/doc/files/lib/de_linque_nt_rb.html +110 -0
  26. data/doc/files/pkg/De_linque_nt-0_0_1/examples/deform_rb.html +101 -0
  27. data/doc/files/pkg/De_linque_nt-0_0_1/lib/de_linque_nt_rb.html +110 -0
  28. data/doc/fr_class_index.html +27 -0
  29. data/doc/fr_file_index.html +28 -0
  30. data/doc/fr_method_index.html +33 -0
  31. data/doc/index.html +24 -0
  32. data/doc/rdoc-style.css +208 -0
  33. data/examples/deform.rb +13 -0
  34. data/js/bloglines.delinquent.user.js +119 -0
  35. data/js/delinquent.user.js +117 -0
  36. data/lib/de.linque.nt.rb +117 -0
  37. metadata +95 -0
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>deform_title (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 12</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deform_title</span>( <span class="ruby-identifier">title_str</span> )
15
+ <span class="ruby-identifier">title_str</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>deform_content (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 16</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deform_content</span>( <span class="ruby-identifier">content_str</span> )
15
+ <span class="ruby-identifier">content_str</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,25 @@
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>
7
+ <head>
8
+ <title>new (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 20</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">opts</span> = { } )
15
+ <span class="ruby-ivar">@user_name</span> = <span class="ruby-identifier">opts</span>[ <span class="ruby-identifier">:user_name</span> ]
16
+ <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">opts</span>[ <span class="ruby-identifier">:password</span> ]
17
+ <span class="ruby-ivar">@config_file</span> = <span class="ruby-identifier">opts</span>[ <span class="ruby-identifier">:config_file</span> ]
18
+ <span class="ruby-ivar">@base_tag</span> = <span class="ruby-identifier">opts</span>[ <span class="ruby-identifier">:base_tag</span> ] <span class="ruby-operator">||</span> <span class="ruby-value str">'De.linque.nt'</span>
19
+ <span class="ruby-identifier">adjust_params</span>
20
+ <span class="ruby-identifier">warn</span> <span class="ruby-node">&quot;Creating object for '#{@user_name}', '#{@password}'&quot;</span>
21
+ <span class="ruby-ivar">@r</span> = <span class="ruby-constant">Rubilicious</span>.<span class="ruby-identifier">new</span>( <span class="ruby-ivar">@user_name</span>, <span class="ruby-ivar">@password</span> )
22
+
23
+ <span class="ruby-keyword kw">end</span></pre>
24
+ </body>
25
+ </html>
@@ -0,0 +1,29 @@
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>
7
+ <head>
8
+ <title>post_from_cli (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 37</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post_from_cli</span>
15
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">ARGV</span>[<span class="ruby-value">0</span>]
16
+ <span class="ruby-identifier">puts</span> <span class="ruby-value str">'You must enter some description text, fool!'</span>
17
+ <span class="ruby-keyword kw">return</span>
18
+ <span class="ruby-keyword kw">end</span>
19
+ <span class="ruby-identifier">text</span> = <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">join</span>( <span class="ruby-value str">' '</span> )
20
+ <span class="ruby-identifier">ary</span> = <span class="ruby-identifier">text</span>.<span class="ruby-identifier">split</span>( <span class="ruby-value str">'.'</span> )
21
+ <span class="ruby-identifier">desc</span> = <span class="ruby-identifier">ary</span>.<span class="ruby-identifier">shift</span>
22
+ <span class="ruby-identifier">ext</span> = <span class="ruby-identifier">ary</span>.<span class="ruby-identifier">join</span>( <span class="ruby-value str">'.'</span> )
23
+ <span class="ruby-identifier">add</span>( <span class="ruby-identifier">desc</span>, <span class="ruby-identifier">ext</span> )
24
+ <span class="ruby-identifier">recent</span>( <span class="ruby-identifier">count</span> = <span class="ruby-value">10</span> ).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">post</span><span class="ruby-operator">|</span>
25
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">post</span>.<span class="ruby-identifier">inspect</span>
26
+ <span class="ruby-keyword kw">end</span>
27
+ <span class="ruby-keyword kw">end</span></pre>
28
+ </body>
29
+ </html>
@@ -0,0 +1,29 @@
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>
7
+ <head>
8
+ <title>add (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 56</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>( <span class="ruby-identifier">title</span>, <span class="ruby-identifier">content</span> )
15
+ <span class="ruby-identifier">key_tag</span> = <span class="ruby-identifier">tag</span>
16
+ <span class="ruby-identifier">tags</span> = <span class="ruby-value str">''</span>
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">content</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(\[)(.+)(\])/</span>
18
+ <span class="ruby-identifier">tags</span> = <span class="ruby-identifier">$2</span>
19
+ <span class="ruby-identifier">m</span> = <span class="ruby-identifier">$1</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">$2</span> <span class="ruby-operator">+</span><span class="ruby-identifier">$3</span>
20
+ <span class="ruby-identifier">content</span>.<span class="ruby-identifier">gsub!</span>( <span class="ruby-identifier">m</span>, <span class="ruby-value str">''</span> )
21
+ <span class="ruby-keyword kw">end</span>
22
+ <span class="ruby-ivar">@r</span>.<span class="ruby-identifier">add</span>( <span class="ruby-node">&quot;#{base_url}#{key_tag}&quot;</span>,
23
+ <span class="ruby-identifier">deform_title</span>( <span class="ruby-identifier">title</span> ),
24
+ <span class="ruby-identifier">deform_content</span>( <span class="ruby-identifier">content</span> ),
25
+ <span class="ruby-node">&quot;#{key_tag} #{@base_tag} #{tags}&quot;</span>
26
+ )
27
+ <span class="ruby-keyword kw">end</span></pre>
28
+ </body>
29
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>recent (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 71</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recent</span>( <span class="ruby-identifier">count</span> = <span class="ruby-value">10</span> )
15
+ <span class="ruby-ivar">@r</span>.<span class="ruby-identifier">recent</span>( <span class="ruby-ivar">@base_tag</span>, <span class="ruby-identifier">count</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>where_i_live (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 75</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">where_i_live</span>
15
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>( <span class="ruby-keyword kw">__FILE__</span> )
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,19 @@
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>
7
+ <head>
8
+ <title>deform_title (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/De.linque.nt-0.0.1/examples/deform.rb, line 3</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deform_title</span>( <span class="ruby-identifier">t</span> )
15
+ <span class="ruby-identifier">warn</span> <span class="ruby-value str">&quot;Calling deform_title &quot;</span>
16
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">tr</span> <span class="ruby-value str">&quot;A-Za-z&quot;</span>, <span class="ruby-value str">&quot;N-ZA-Mn-za-m&quot;</span>;
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>deform_content (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/De.linque.nt-0.0.1/examples/deform.rb, line 8</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deform_content</span>( <span class="ruby-identifier">c</span> )
15
+ <span class="ruby-identifier">c</span>.<span class="ruby-identifier">tr</span> <span class="ruby-value str">&quot;A-Za-z&quot;</span>, <span class="ruby-value str">&quot;N-ZA-Mn-za-m&quot;</span>;
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,19 @@
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>
7
+ <head>
8
+ <title>deform_title (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File examples/deform.rb, line 3</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deform_title</span>( <span class="ruby-identifier">t</span> )
15
+ <span class="ruby-identifier">warn</span> <span class="ruby-value str">&quot;Calling deform_title &quot;</span>
16
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">tr</span> <span class="ruby-value str">&quot;A-Za-z&quot;</span>, <span class="ruby-value str">&quot;N-ZA-Mn-za-m&quot;</span>;
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>deform_content (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File examples/deform.rb, line 8</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deform_content</span>( <span class="ruby-identifier">c</span> )
15
+ <span class="ruby-identifier">c</span>.<span class="ruby-identifier">tr</span> <span class="ruby-value str">&quot;A-Za-z&quot;</span>, <span class="ruby-value str">&quot;N-ZA-Mn-za-m&quot;</span>;
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>deform_title (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 12</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deform_title</span>( <span class="ruby-identifier">title_str</span> )
15
+ <span class="ruby-identifier">title_str</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>deform_content (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 16</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deform_content</span>( <span class="ruby-identifier">content_str</span> )
15
+ <span class="ruby-identifier">content_str</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,25 @@
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>
7
+ <head>
8
+ <title>new (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 20</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">opts</span> = { } )
15
+ <span class="ruby-ivar">@user_name</span> = <span class="ruby-identifier">opts</span>[ <span class="ruby-identifier">:user_name</span> ]
16
+ <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">opts</span>[ <span class="ruby-identifier">:password</span> ]
17
+ <span class="ruby-ivar">@config_file</span> = <span class="ruby-identifier">opts</span>[ <span class="ruby-identifier">:config_file</span> ]
18
+ <span class="ruby-ivar">@base_tag</span> = <span class="ruby-identifier">opts</span>[ <span class="ruby-identifier">:base_tag</span> ] <span class="ruby-operator">||</span> <span class="ruby-value str">'De.linque.nt'</span>
19
+ <span class="ruby-identifier">adjust_params</span>
20
+ <span class="ruby-identifier">warn</span> <span class="ruby-node">&quot;Creating object for '#{@user_name}', '#{@password}'&quot;</span>
21
+ <span class="ruby-ivar">@r</span> = <span class="ruby-constant">Rubilicious</span>.<span class="ruby-identifier">new</span>( <span class="ruby-ivar">@user_name</span>, <span class="ruby-ivar">@password</span> )
22
+
23
+ <span class="ruby-keyword kw">end</span></pre>
24
+ </body>
25
+ </html>
@@ -0,0 +1,29 @@
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>
7
+ <head>
8
+ <title>post_from_cli (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 37</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post_from_cli</span>
15
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">ARGV</span>[<span class="ruby-value">0</span>]
16
+ <span class="ruby-identifier">puts</span> <span class="ruby-value str">'You must enter some description text, fool!'</span>
17
+ <span class="ruby-keyword kw">return</span>
18
+ <span class="ruby-keyword kw">end</span>
19
+ <span class="ruby-identifier">text</span> = <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">join</span>( <span class="ruby-value str">' '</span> )
20
+ <span class="ruby-identifier">ary</span> = <span class="ruby-identifier">text</span>.<span class="ruby-identifier">split</span>( <span class="ruby-value str">'.'</span> )
21
+ <span class="ruby-identifier">desc</span> = <span class="ruby-identifier">ary</span>.<span class="ruby-identifier">shift</span>
22
+ <span class="ruby-identifier">ext</span> = <span class="ruby-identifier">ary</span>.<span class="ruby-identifier">join</span>( <span class="ruby-value str">'.'</span> )
23
+ <span class="ruby-identifier">add</span>( <span class="ruby-identifier">desc</span>, <span class="ruby-identifier">ext</span> )
24
+ <span class="ruby-identifier">recent</span>( <span class="ruby-identifier">count</span> = <span class="ruby-value">10</span> ).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">post</span><span class="ruby-operator">|</span>
25
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">post</span>.<span class="ruby-identifier">inspect</span>
26
+ <span class="ruby-keyword kw">end</span>
27
+ <span class="ruby-keyword kw">end</span></pre>
28
+ </body>
29
+ </html>
@@ -0,0 +1,29 @@
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>
7
+ <head>
8
+ <title>add (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 56</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>( <span class="ruby-identifier">title</span>, <span class="ruby-identifier">content</span> )
15
+ <span class="ruby-identifier">key_tag</span> = <span class="ruby-identifier">tag</span>
16
+ <span class="ruby-identifier">tags</span> = <span class="ruby-value str">''</span>
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">content</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(\[)(.+)(\])/</span>
18
+ <span class="ruby-identifier">tags</span> = <span class="ruby-identifier">$2</span>
19
+ <span class="ruby-identifier">m</span> = <span class="ruby-identifier">$1</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">$2</span> <span class="ruby-operator">+</span><span class="ruby-identifier">$3</span>
20
+ <span class="ruby-identifier">content</span>.<span class="ruby-identifier">gsub!</span>( <span class="ruby-identifier">m</span>, <span class="ruby-value str">''</span> )
21
+ <span class="ruby-keyword kw">end</span>
22
+ <span class="ruby-ivar">@r</span>.<span class="ruby-identifier">add</span>( <span class="ruby-node">&quot;#{base_url}#{key_tag}&quot;</span>,
23
+ <span class="ruby-identifier">deform_title</span>( <span class="ruby-identifier">title</span> ),
24
+ <span class="ruby-identifier">deform_content</span>( <span class="ruby-identifier">content</span> ),
25
+ <span class="ruby-node">&quot;#{key_tag} #{@base_tag} #{tags}&quot;</span>
26
+ )
27
+ <span class="ruby-keyword kw">end</span></pre>
28
+ </body>
29
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>recent (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 71</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recent</span>( <span class="ruby-identifier">count</span> = <span class="ruby-value">10</span> )
15
+ <span class="ruby-ivar">@r</span>.<span class="ruby-identifier">recent</span>( <span class="ruby-ivar">@base_tag</span>, <span class="ruby-identifier">count</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>where_i_live (Delinquent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/de.linque.nt.rb, line 75</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">where_i_live</span>
15
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>( <span class="ruby-keyword kw">__FILE__</span> )
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1 @@
1
+ Fri Jun 17 19:39:11 US Mountain Standard Time 2005
@@ -0,0 +1,298 @@
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: README</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>README</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>README
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Fri Jun 17 19:38:18 US Mountain Standard Time 2005</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <h1>De.linque.nt: An irresponsible metaweb posting tool.</h1>
73
+ <h3>The Future is Here and it&#8217;s Right Behind You!(tm)</h3>
74
+ <p>
75
+ Here&#8217;s the premise: Del.icio.us, the social bookmarking site, lets
76
+ you create posts that assign a set of tags to a URL. The post also provides
77
+ a description field as well as an area for extended information.
78
+ </p>
79
+ <p>
80
+ Usually, Del.icio.us posts refer to some other Web resource, but the act of
81
+ creating a Del.icio.us post also creates a new Web resource: the
82
+ Del.icio.us URL for the new post.
83
+ </p>
84
+ <p>
85
+ Since this Del.icio.us post is a Web resource it can itself be the target
86
+ of a Del.icio.us post. In fact, one can create posts for Del.icio.us
87
+ resources that do not exist <b>until</b> the post is created, i.e., the
88
+ post URL you bookmark is the one that will refer to the bookmark you are
89
+ creating. And that is what De.linque.nt does.
90
+ </p>
91
+ <p>
92
+ When you install the De.linque.nt gem, it creates a helper app to generate
93
+ a posting script named &#8216;delinquentry&#8217;. You need to provide a
94
+ Del.icio.us user name and password, and optionally define the base tag for
95
+ your De.linque.nt posts. You can then call delinquentry, passing in the
96
+ text for the post description and extended info fields.
97
+ </p>
98
+ <p>
99
+ The De.linque.nt class will create an as-yet nonexistent URL based off the
100
+ main Del.icious URL, your base tag, and a time stamp. This URL is then
101
+ becomes a Del.icio.us post, which is tagged with both this unique tag and
102
+ the plain base tag.
103
+ </p>
104
+ <p>
105
+ You can read any specific De.linque.nt post by referring to its unique tag,
106
+ or see all the posts by indexing on the base tag.
107
+ </p>
108
+ <p>
109
+ Requirements:
110
+ </p>
111
+ <ul>
112
+ <li>Rubilicious, a Ruby library for the Del.icio.us API
113
+
114
+ </li>
115
+ <li>A Del.icio.us account
116
+
117
+ </li>
118
+ <li>Too much free time
119
+
120
+ </li>
121
+ </ul>
122
+ <h2>Some Possible Usage</h2>
123
+ <h3>Low-rent Blogging: It&#8217;s like having a blog without bothering with the blog part.</h3>
124
+ <p>
125
+ Define some base tag (e.g. MyDelinquentBlog). Add Del.icio.us posts
126
+ expressing your profound, worldly insights. Be succinct: The description
127
+ field and extended text field only allow 256 characters each.
128
+ </p>
129
+ <p>
130
+ Presto! Instablog!
131
+ </p>
132
+ <p>
133
+ Since Del.icio.us offers RSS feeds based on users and tags, you can create
134
+ a simple message feed using Del.icio.us metaposts.
135
+ </p>
136
+ <p>
137
+ Tell all your hip friends to subscribe to the RSS feed for your base tag
138
+ and revel in your Web 2.0 hiptitude.
139
+ </p>
140
+ <h3>Cheesy IM: OMG! This is /so/ 1337!</h3>
141
+ <p>
142
+ Create a Del.icio.us account and share it with your friends. Have them all
143
+ install De.linque.nt using the same Del.icio.us account and base tag. Make
144
+ sure everyone subscribes to the RSS feed for the base tag. Now you and your
145
+ De.linque.nt pals can exchange messages by posting through Del.icio.us!
146
+ </p>
147
+ <h3>Doo Dah Lists</h3>
148
+ <p>
149
+ Be antisocial and *don&#8217;t* tell anyone about your sweet De.linque.nt
150
+ postings. Just use it to post random notes from the command line. All
151
+ De.linque.nt posts are given two tags by default: the base tag (either the
152
+ default &#8216;De.linque.nt&#8217; or the tag you&#8217;ve chosen when
153
+ installing the posting script ), plus a GUID tag formed by glomming a
154
+ time-stamp onto the base tag. But you can add more tags to your post by
155
+ including text inside of square brackets, like this:
156
+ </p>
157
+ <p>
158
+ % deliquentry.rb This is my title. This is the body [each word in here is a
159
+ tag]
160
+ </p>
161
+ <p>
162
+ (So be careful when adding text: all words inside of square brackets are
163
+ assumed to be tags.)
164
+ </p>
165
+ <p>
166
+ Using your own tags, you can create a set of categorized posts to act as
167
+ your super-bad Doo Dah list! You&#8216;ll be Getting Real and Getting
168
+ Things Done in no time!
169
+ </p>
170
+ <p>
171
+ Zippity Doo Dah, Zippity F***in&#8217; A!
172
+ </p>
173
+ <h3>Get Creative. Or Something. It&#8217;s a Greasemonkey World!*</h3>
174
+ <p>
175
+ De.linque.nt also includes two Greasemonkey scripts designed to work with
176
+ Del.icio.us and Bloglines.
177
+ </p>
178
+ <p>
179
+ Each looks for feeds that contain your base tag in the URL. So, for
180
+ example, if you have the base tag &quot;SquibbleNod&quot;, your
181
+ De.linque.nt posts will have URLs similar to <a
182
+ href="http://del.icio.us/username/SquibbleNod2005661232">del.icio.us/username/SquibbleNod2005661232</a>.
183
+ </p>
184
+ <p>
185
+ The Greasemonkey scripts find De.linque.nt items and pass the title and
186
+ content through &quot;reform&quot; methods. By default, these don&#8217;t
187
+ do anything, but there is simple code in place to do some trivial rot13
188
+ decoding to demo the madness.
189
+ </p>
190
+ <p>
191
+ The De.linque.nt distro also includes simple Ruby code for rot13 encoding.
192
+ </p>
193
+ <p>
194
+ When De.linque.nt makes a post, it first calls deform_title and
195
+ deform_content before sending the text off to Del.icio.us. The class has
196
+ stub methods in place for this.
197
+ </p>
198
+ <p>
199
+ There are two ways (at least) to make these useful. One is to create a file
200
+ named &#8216;deform.rb&#8217; and place it in the same directory as the
201
+ auto-generated delinquentry.rb script. In the file you need to redefine
202
+ those two <a href="../classes/Delinquent.html">Delinquent</a> methods, as
203
+ in this example:
204
+ </p>
205
+ <pre>
206
+ class Delinquent
207
+
208
+ # rot13 encoding. Very DMCA!
209
+ def deform_title( t )
210
+ t.tr &quot;A-Za-z&quot;, &quot;N-ZA-Mn-za-m&quot;;
211
+ end
212
+
213
+ def deform_content( c )
214
+ c.tr &quot;A-Za-z&quot;, &quot;N-ZA-Mn-za-m&quot;;
215
+ end
216
+ end
217
+ </pre>
218
+ <p>
219
+ You can also just add this code directly to delinquentry.rb, after the call
220
+ to &quot;require &#8216;delinquent&#8217;&quot;
221
+ </p>
222
+ <p>
223
+ So, with this example, all posts will have the title (i.e., the description
224
+ text) and content (i.e., extended text) encoded. To read the posts once it
225
+ is on Delicio.us, then, you&#8217;ll need to reverse the process (or work
226
+ it out in your head).
227
+ </p>
228
+ <p>
229
+ That&#8217;s where Greasemonkey comes in. After locating a De.linque.nt
230
+ post, each Greasemonkey script rewrites the title and content by calling
231
+ reform_title and reform_content. By default these methods do nothing, but
232
+ if you look at the code you&#8217;ll see some code commented out to do the
233
+ decryption.
234
+ </p>
235
+ <p>
236
+ In Real Life(tm), though, you might want to use something a bit more
237
+ secure. There is a JavaScript block TEA (Tine Encryption Algorithm) library
238
+ available at <a
239
+ href="http://www.movable-type.co.uk/scripts/TEAblock.html">www.movable-type.co.uk/scripts/TEAblock.html</a>
240
+ </p>
241
+ <p>
242
+ Of course, you&#8217;ll need to encrypt the source using the same
243
+ algorithm, and you&#8217;ll need to use the same password and such at both
244
+ ends. And share this with you bestest friends if you want to pass messages
245
+ around. Oh, and such encryption methods tend to increase the size of the
246
+ transmitted message; make sure the results still fit into the alloted 256
247
+ character. But after that you&#8217;re golden.
248
+ </p>
249
+ <p>
250
+ Have fun!
251
+ </p>
252
+ <p>
253
+ James Britt jamesgb AT neurogami DOT com
254
+ </p>
255
+ <h4>Credits:</h4>
256
+ <p>
257
+ Thanks to Paul Duncan for <a
258
+ href="http://www.pablotron.org/software/rubilicious/">Rubilicious</a>
259
+ </p>
260
+ <p>
261
+ Thanks to joshua and crew for <a href="http://del.icio.us/">Del.icio.us</a>
262
+ </p>
263
+ <p>
264
+ Special thanks to K. G�del and D. Hofstadter
265
+ </p>
266
+
267
+ </div>
268
+
269
+
270
+ </div>
271
+
272
+
273
+ </div>
274
+
275
+
276
+ <!-- if includes -->
277
+
278
+ <div id="section">
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+ <!-- if method_list -->
288
+
289
+
290
+ </div>
291
+
292
+
293
+ <div id="validator-badges">
294
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
295
+ </div>
296
+
297
+ </body>
298
+ </html>