samples.rb in flatulent-0.0.2 vs samples.rb in flatulent-0.0.3
- old
+ new
@@ -1,10 +1,55 @@
-require 'lib/flatulent'
+require './lib/flatulent'
-puts '<hr>'
+puts <<-html
+ <html><body background='white'>
+
+<p>
+The latest version (0.0.3) of the <em>flatulent</em> gem <code>(gem install
+flatulent)</code> has introduced a host of fine features. From the README:
+</p>
+
+<pre style="color:cyan;background:green;">
+...
+HISTORY
+ 0.0.3:
+ - following are now all equivalent when posting (thanks botp)
+
+ 0==o==O==Q (zero, oh's, and queue)
+ l==l (one and el)
+ 2==z==Z (two and z's)
+ 5==s==S (5 and s's)
+
+ - random horizontal and vertical displacement of each char
+
+ - vastly improved background noise based on figlet char shapes
+
+ - inputs are case sensitive (thanks john joyce, chris carter)
+
+ - expanded rails examples
+...
+</pre>
+
+
+<p> Get flatulent at <a href="http://codeforpeople.com/lib/ruby"> http://codeforpeople.com/lib/ruby</a> or
+<a href="http://rubyforge.org/projects/codeforpeople">http://rubyforge.org/projects/codeforpeople</a>.
+</p>
+
+<p>You can see flatulent ajax at <a href="http://fortytwo.merseine.nu:3000/flatulent/ajax">http://fortytwo.merseine.nu:3000/flatulent/ajax</a>.</p>
+
+<p> Finally, here are a few shots of the latest output: </p>
+<hr>
+html
+
+puts '<center>'
puts Flatulent.element('FOO')
-puts '<hr>'
+puts '<br><br>'
puts Flatulent.element('BAR')
-puts '<hr>'
-puts Flatulent.element('FOOBAR')
-puts '<hr>'
-puts Flatulent.element('BARFOO')
+puts '<br><br>'
+puts Flatulent.element('ABC')
+puts '<br><br>'
+puts Flatulent.element('123')
+puts '</center>'
+
+puts <<-html
+ </body></html>
+html