insults 0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc ADDED
@@ -0,0 +1,11 @@
1
+ = Insults
2
+
3
+ A module that insults you when it feels you deserve it.
4
+
5
+ == Installation
6
+
7
+ $ sudo gem install insults
8
+
9
+ == Usage
10
+
11
+ require 'insults'
data/Rakefile ADDED
@@ -0,0 +1,54 @@
1
+ require 'rubygems'
2
+ require 'rake/clean'
3
+ require 'rake/gempackagetask'
4
+ require 'hanna/rdoctask'
5
+ require 'fileutils'
6
+ include FileUtils
7
+
8
+ task :default => [ :rdoc, :package ]
9
+
10
+ # PACKAGE =============================================================
11
+
12
+ spec = Gem::Specification.new do |s|
13
+ s.name = "insults"
14
+ s.version = "0.1"
15
+ s.summary = "Insults will insult you when it feels you deserve it."
16
+ s.description = "Insults will insult you when it feels you deserve it."
17
+ s.author = "Delano Mandelbaum"
18
+ s.email = "delano@solutious.com"
19
+ s.homepage = "http://insults.rubyforge.org/"
20
+ s.rubyforge_project = "insults"
21
+ s.extra_rdoc_files = ['README.rdoc']
22
+
23
+ s.platform = Gem::Platform::RUBY
24
+ s.has_rdoc = true
25
+
26
+ s.files = %w(Rakefile) + Dir.glob("{bin,doc,lib}/**/**/*")
27
+ end
28
+
29
+ Rake::GemPackageTask.new(spec) do |p|
30
+ p.need_tar = true if RUBY_PLATFORM !~ /mswin/
31
+ end
32
+
33
+ task :install => [ :rdoc, :package ] do
34
+ sh %{sudo gem install pkg/#{name}-#{version}.gem}
35
+ end
36
+
37
+ task :uninstall => [ :clean ] do
38
+ sh %{sudo gem uninstall #{name}}
39
+ end
40
+
41
+ Rake::RDocTask.new do |t|
42
+ t.rdoc_dir = 'doc'
43
+ t.title = "Insults will insult you when it feels you deserve it."
44
+ t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
45
+ t.options << '--charset' << 'utf-8'
46
+ t.rdoc_files.include('LICENSE.txt')
47
+ t.rdoc_files.include('README.rdoc')
48
+ t.rdoc_files.include('lib/*.rb')
49
+ end
50
+
51
+ CLEAN.include [ 'pkg', '*.gem', 'doc' ]
52
+
53
+
54
+
data/bin/example ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/ruby
2
+
3
+ INSULTS_HOME = File.expand_path(File.join(File.dirname(__FILE__), '..'))
4
+ $:.unshift(File.join(INSULTS_HOME, 'lib')) # Make sure our local lib is first in line
5
+
6
+ require 'rubygems'
7
+ require 'insults'
8
+ require 'try'
9
+ include Insults
10
+
11
+ nothing
12
+ Nothing
13
+ Try.nothing
data/bin/example.bat ADDED
@@ -0,0 +1,12 @@
1
+ @echo off
2
+
3
+ rem Check for funkiness when called from another batch script.
4
+ rem We want FULL_PATH to contain the full path to the stella bin directory.
5
+ IF EXIST "%~dp0example.bat" (set FULL_PATH=%~dp0) ELSE (set FULL_PATH=%~dp$PATH:0)
6
+
7
+ rem Check for JRuby, otherwise use Ruby.
8
+ rem We want EXECUTABLE to contain either "jruby" or "ruby"
9
+ IF EXIST "%JRUBY_HOME%" (set EXECUTABLE=jruby) ELSE (set EXECUTABLE=ruby)
10
+
11
+ rem Call the Ruby script, passing it all the arguments.
12
+ @%EXECUTABLE% %FULL_PATH%example %*
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>Module: Insults [Insults will insult you when it feels you deserve it.]</title>
5
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
+ <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='class' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>
29
+ <span class='type'>Module</span>
30
+ Insults
31
+ </h1>
32
+ <ol class='paths'>
33
+ <li>
34
+ <a href="../files/lib/insults_rb.html">lib/insults.rb</a>
35
+ </li>
36
+ </ol>
37
+ </div>
38
+ <div id='content'>
39
+ <div id='text'>
40
+ <div id='description'>
41
+ <p>
42
+ There are no methods or constants. All you have to do is require insults
43
+ and it will insult you when it thinks you deserve it. <p>TODO: add more
44
+ insults.</p>
45
+ </p>
46
+ </div>
47
+ <div id='section'>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ <div id='footer-push'></div>
52
+ </div>
53
+ <div id='footer'>
54
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
55
+ </div>
56
+ </body>
57
+ </html>
@@ -0,0 +1,87 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>Class: Try [Insults will insult you when it feels you deserve it.]</title>
5
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
+ <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='class' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>
29
+ <span class='type'>Class</span>
30
+ Try
31
+ </h1>
32
+ <ol class='paths'>
33
+ <li>
34
+ <a href="../files/lib/try_rb.html">lib/try.rb</a>
35
+ </li>
36
+ </ol>
37
+ <div class='parent'>
38
+ Parent:
39
+ <strong>C</strong>
40
+ </div>
41
+ </div>
42
+ <div id='content'>
43
+ <div id='text'>
44
+ <div id='description'>
45
+ <p>
46
+ A demonstration of the magic of <a href="Insults.html">Insults</a>.
47
+ </p>
48
+ </div>
49
+ <div id='method-list'>
50
+ <h2>Methods</h2>
51
+ <h3>public class</h3>
52
+ <ol>
53
+ <li><a href="#M000001">broken</a></li>
54
+ </ol>
55
+ </div>
56
+ <div id='section'>
57
+ <div id='methods'>
58
+ <h2>Public class methods</h2>
59
+ <div class='public-class method' id='method-M000001'>
60
+ <a name='M000001'> </a>
61
+ <div class='synopsis'>
62
+ <span class='name'>broken</span>
63
+ <span class='arguments'>()</span>
64
+ </div>
65
+ <div class='description'>
66
+ <p>
67
+ This broken method calls a method that doesn&#8217;t exist.
68
+ </p>
69
+ </div>
70
+ <div class='source'>
71
+ <a class='source-toggle' href='#' onclick="toggleCode('M000001-source'); return false">
72
+ [show source]
73
+ </a>
74
+ <pre id='M000001-source'> <span class="ruby-comment cmt"># File lib/try.rb, line 13</span>&#x000A;13: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">broken</span>&#x000A;14: </pre>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ <div id='footer-push'></div>
82
+ </div>
83
+ <div id='footer'>
84
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
85
+ </div>
86
+ </body>
87
+ </html>
data/doc/created.rid ADDED
@@ -0,0 +1 @@
1
+ Thu, 15 Jan 2009 07:59:09 -0500
@@ -0,0 +1,76 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>File: LICENSE.txt [Insults will insult you when it feels you deserve it.]</title>
5
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
+ <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='file' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>LICENSE.txt</h1>
29
+ <div class='paths'>
30
+ LICENSE.txt
31
+ </div>
32
+ <div class='last-update'>
33
+ Last Update:
34
+ <span class='datetime'>Thu Jan 15 07:33:22 -0500 2009</span>
35
+ </div>
36
+ </div>
37
+ <div id='content'>
38
+ <div id='text'>
39
+ <div id='description'>
40
+ <p>
41
+ Copyright &#169; 2009 Delano Mandelbaum
42
+ </p>
43
+ <p>
44
+ Permission is hereby granted, free of charge, to any person obtaining a
45
+ copy of this software and associated documentation files (the
46
+ &#8220;Software&#8221;), to deal in the Software without restriction,
47
+ including without limitation the rights to use, copy, modify, merge,
48
+ publish, distribute, sublicense, and/or sell copies of the Software, and to
49
+ permit persons to whom the Software is furnished to do so, subject to the
50
+ following conditions:
51
+ </p>
52
+ <p>
53
+ The above copyright notice and this permission notice shall be included in
54
+ all copies or substantial portions of the Software.
55
+ </p>
56
+ <p>
57
+ THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND,
58
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
59
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
60
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
61
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
62
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
63
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
64
+ </p>
65
+ </div>
66
+ <div id='section'>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ <div id='footer-push'></div>
71
+ </div>
72
+ <div id='footer'>
73
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
74
+ </div>
75
+ </body>
76
+ </html>
@@ -0,0 +1,59 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>File: README.rdoc [Insults will insult you when it feels you deserve it.]</title>
5
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
+ <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='file' id='wrapper'>
27
+ <div class='header'>
28
+ <div class='name'>README.rdoc</div>
29
+ <div class='paths'>
30
+ README.rdoc
31
+ </div>
32
+ <div class='last-update'>
33
+ Last Update:
34
+ <span class='datetime'>Thu Jan 15 07:57:59 -0500 2009</span>
35
+ </div>
36
+ </div>
37
+ <div id='content'>
38
+ <div id='text'>
39
+ <div id='description'>
40
+ <h1><a href="../classes/Insults.html">Insults</a></h1>
41
+ <p>
42
+ A module that insults you when it feels you deserve it.
43
+ </p>
44
+ <h2>Installation</h2>
45
+ <pre>$ sudo gem install insults</pre>
46
+ <h2>Usage</h2>
47
+ <pre>require 'insults'</pre>
48
+ </div>
49
+ <div id='section'>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <div id='footer-push'></div>
54
+ </div>
55
+ <div id='footer'>
56
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
57
+ </div>
58
+ </body>
59
+ </html>
@@ -0,0 +1,84 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>File: insults.rb [Insults will insult you when it feels you deserve it.]</title>
5
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
+ <link href='../.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='file' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>insults.rb</h1>
29
+ <div class='paths'>
30
+ lib/insults.rb
31
+ </div>
32
+ <div class='last-update'>
33
+ Last Update:
34
+ <span class='datetime'>Thu Jan 15 07:33:36 -0500 2009</span>
35
+ </div>
36
+ </div>
37
+ <div id='content'>
38
+ <div id='text'>
39
+ <div id='description'>
40
+ <p>
41
+ Copyright &#169; 2009 Delano Mandelbaum
42
+ </p>
43
+ <p>
44
+ Permission is hereby granted, free of charge, to any person obtaining a
45
+ copy of this software and associated documentation files (the
46
+ &#8220;Software&#8221;), to deal in the Software without restriction,
47
+ including without limitation the rights to use, copy, modify, merge,
48
+ publish, distribute, sublicense, and/or sell copies of the Software, and to
49
+ permit persons to whom the Software is furnished to do so, subject to the
50
+ following conditions:
51
+ </p>
52
+ <p>
53
+ The above copyright notice and this permission notice shall be included in
54
+ all copies or substantial portions of the Software.
55
+ </p>
56
+ <p>
57
+ THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND,
58
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
59
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
60
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
61
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
62
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
63
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
64
+ </p>
65
+ </div>
66
+ <div id='context'>
67
+ <div id='requires'>
68
+ <h2>Required files</h2>
69
+ <ol>
70
+ <li>yaml</li>
71
+ </ol>
72
+ </div>
73
+ </div>
74
+ <div id='section'>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ <div id='footer-push'></div>
79
+ </div>
80
+ <div id='footer'>
81
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
82
+ </div>
83
+ </body>
84
+ </html>
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>File: try.rb [Insults will insult you when it feels you deserve it.]</title>
5
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
+ <link href='../.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='file' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>try.rb</h1>
29
+ <div class='paths'>
30
+ lib/try.rb
31
+ </div>
32
+ <div class='last-update'>
33
+ Last Update:
34
+ <span class='datetime'>Thu Jan 15 07:34:57 -0500 2009</span>
35
+ </div>
36
+ </div>
37
+ <div id='content'>
38
+ <div id='text'>
39
+ <div id='section'>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ <div id='footer-push'></div>
44
+ </div>
45
+ <div id='footer'>
46
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
47
+ </div>
48
+ </body>
49
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>Classes [Insults will insult you when it feels you deserve it.]</title>
5
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
+ <link href='rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <base target='docwin'>
8
+ </head>
9
+ <body class='list'>
10
+ <div id='index'>
11
+ <h1>Classes</h1>
12
+ <ol class='classes' id='index-entries'>
13
+ <li><a href="classes/Insults.html">Insults</a></li><li><a href="classes/Try.html">Try</a></li>
14
+ </ol>
15
+ </div>
16
+ </body>
17
+ </html>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>Files [Insults will insult you when it feels you deserve it.]</title>
5
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
+ <link href='rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <base target='docwin'>
8
+ </head>
9
+ <body class='list'>
10
+ <div id='index'>
11
+ <h1>Files</h1>
12
+ <ol class='files' id='index-entries'>
13
+ <li><a href="files/LICENSE_txt.html">LICENSE.txt</a></li>
14
+ <li><a href="files/README_rdoc.html">README.rdoc</a></li>
15
+ <li class='other'><a href="files/lib/insults_rb.html">lib/insults.rb</a></li>
16
+ <li class='other'><a href="files/lib/try_rb.html">lib/try.rb</a></li>
17
+ <li>
18
+ <a class='show' href='#' onclick='this.parentNode.parentNode.className += " expanded"; this.parentNode.removeChild(this); return false'>show all</a>
19
+ </li>
20
+ </ol>
21
+ </div>
22
+ </body>
23
+ </html>