rubyserif 0.1

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,147 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Module: JavaScript</title>
9
+
10
+ <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="module">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="./index.html">Home</a>
25
+ <a href="./index.html#classes">Classes</a>
26
+ <a href="./index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="./lib/js_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/js.rb">lib/js.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+
50
+
51
+
52
+
53
+ <!-- Namespace Contents -->
54
+ <div id="namespace-list-section" class="section">
55
+ <h3 class="section-header">Namespace</h3>
56
+ <ul class="link-list">
57
+
58
+ <li><span class="type">CLASS</span> <a href="JavaScript/Function.html">JavaScript::Function</a></li>
59
+
60
+ <li><span class="type">CLASS</span> <a href="JavaScript/Object.html">JavaScript::Object</a></li>
61
+
62
+ </ul>
63
+ </div>
64
+
65
+
66
+
67
+
68
+
69
+ </div>
70
+
71
+ <div id="project-metadata">
72
+
73
+
74
+ <div id="fileindex-section" class="section project-section">
75
+ <h3 class="section-header">Files</h3>
76
+ <ul>
77
+
78
+ <li class="file"><a href="./Makefile.html">Makefile</a></li>
79
+
80
+ </ul>
81
+ </div>
82
+
83
+
84
+ <div id="classindex-section" class="section project-section">
85
+ <h3 class="section-header">Class/Module Index
86
+ <span class="search-toggle"><img src="./images/find.png"
87
+ height="16" width="16" alt="[+]"
88
+ title="show/hide quicksearch" /></span></h3>
89
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
90
+ <fieldset>
91
+ <legend>Quicksearch</legend>
92
+ <input type="text" name="quicksearch" value=""
93
+ class="quicksearch-field" />
94
+ </fieldset>
95
+ </form>
96
+
97
+ <ul class="link-list">
98
+
99
+ <li><a href="./JavaScript.html">JavaScript</a></li>
100
+
101
+ <li><a href="./JavaScript/Function.html">JavaScript::Function</a></li>
102
+
103
+ <li><a href="./JavaScript/Object.html">JavaScript::Object</a></li>
104
+
105
+ </ul>
106
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
107
+ </div>
108
+
109
+
110
+ </div>
111
+ </div>
112
+
113
+ <div id="documentation">
114
+ <h1 class="module">JavaScript</h1>
115
+
116
+ <div id="description" class="description">
117
+
118
+ </div><!-- description -->
119
+
120
+
121
+
122
+
123
+ <div id="5Buntitled-5D" class="documentation-section">
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+ <!-- Methods -->
133
+
134
+ </div><!-- 5Buntitled-5D -->
135
+
136
+
137
+ </div><!-- documentation -->
138
+
139
+ <div id="validator-badges">
140
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
141
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
142
+ Rdoc Generator</a> 2</small>.</p>
143
+ </div>
144
+
145
+ </body>
146
+ </html>
147
+
data/doc/Makefile.html ADDED
@@ -0,0 +1,107 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: Makefile [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="./js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="./js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="./js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file">
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="project-metadata">
36
+
37
+
38
+ <div id="fileindex-section" class="section project-section">
39
+ <h3 class="section-header">Files</h3>
40
+ <ul>
41
+
42
+ <li class="file"><a href="./Makefile.html">Makefile</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+
47
+
48
+ <div id="classindex-section" class="section project-section">
49
+ <h3 class="section-header">Class Index
50
+ <span class="search-toggle"><img src="./images/find.png"
51
+ height="16" width="16" alt="[+]"
52
+ title="show/hide quicksearch" /></span></h3>
53
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
54
+ <fieldset>
55
+ <legend>Quicksearch</legend>
56
+ <input type="text" name="quicksearch" value=""
57
+ class="quicksearch-field" />
58
+ </fieldset>
59
+ </form>
60
+
61
+ <ul class="link-list">
62
+
63
+ <li><a href="./JavaScript.html">JavaScript</a></li>
64
+
65
+ <li><a href="./JavaScript/Function.html">JavaScript::Function</a></li>
66
+
67
+ <li><a href="./JavaScript/Object.html">JavaScript::Object</a></li>
68
+
69
+ </ul>
70
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
71
+ </div>
72
+
73
+
74
+ </div>
75
+ </div>
76
+
77
+ <div id="documentation">
78
+
79
+ <p>GEM_FILE=js-0.1.gem SPEC_FILE=javascript.gemspec</p>
80
+
81
+ <p>all: gem</p>
82
+
83
+ <pre>@gem install $(GEM_FILE)
84
+ @ruby test/test.rb</pre>
85
+
86
+ <p>gem:</p>
87
+
88
+ <pre>@gem build $(SPEC_FILE)</pre>
89
+
90
+ <p>install:</p>
91
+
92
+ <pre>@gem install $(GEM_FILE)</pre>
93
+
94
+ <p>test:</p>
95
+
96
+ <pre>@ruby test/test.rb</pre>
97
+
98
+ </div>
99
+
100
+ <div id="validator-badges">
101
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
102
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
103
+ Rdoc Generator</a> 2</small>.</p>
104
+ </div>
105
+ </body>
106
+ </html>
107
+
data/doc/created.rid ADDED
@@ -0,0 +1,4 @@
1
+ Wed, 14 Mar 2012 17:46:57 -0400
2
+ ./lib/js.rb Wed, 14 Mar 2012 17:46:43 -0400
3
+ ./Makefile Wed, 14 Mar 2012 17:34:37 -0400
4
+ ./test/test.rb Wed, 14 Mar 2012 17:45:16 -0400
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/doc/index.html ADDED
@@ -0,0 +1,70 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
+
9
+ <title>RDoc Documentation</title>
10
+
11
+ <link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
16
+ <script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
17
+
18
+ </head>
19
+ <body class="indexpage">
20
+
21
+
22
+ <h1>RDoc Documentation</h1>
23
+
24
+
25
+ <p>This is the API documentation for 'RDoc Documentation'.</p>
26
+
27
+
28
+
29
+
30
+ <h2>Files</h2>
31
+ <ul>
32
+
33
+ <li class="file"><a href="Makefile.html">Makefile</a></li>
34
+
35
+ </ul>
36
+
37
+
38
+ <h2 id="classes">Classes/Modules</h2>
39
+ <ul>
40
+
41
+ <li class="module"><a href="JavaScript.html">JavaScript</a></li>
42
+
43
+ <li class="class"><a href="JavaScript/Function.html">JavaScript::Function</a></li>
44
+
45
+ <li class="class"><a href="JavaScript/Object.html">JavaScript::Object</a></li>
46
+
47
+ </ul>
48
+
49
+ <h2 id="methods">Methods</h2>
50
+ <ul>
51
+
52
+ <li><a href="JavaScript/Object.html#method-c-new">::new &mdash; JavaScript::Object</a></li>
53
+
54
+ <li><a href="JavaScript/Function.html#method-c-new">::new &mdash; JavaScript::Function</a></li>
55
+
56
+ <li><a href="JavaScript/Object.html#method-i-2F">#/ &mdash; JavaScript::Object</a></li>
57
+
58
+ <li><a href="JavaScript/Function.html#method-i-5B-5D">#[] &mdash; JavaScript::Function</a></li>
59
+
60
+ <li><a href="JavaScript/Object.html#method-i-method_missing">#method_missing &mdash; JavaScript::Object</a></li>
61
+
62
+ </ul>
63
+
64
+ <div id="validator-badges">
65
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
66
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
67
+ Rdoc Generator</a> 2</small>.</p>
68
+ </div>
69
+ </body>
70
+ </html>
@@ -0,0 +1,116 @@
1
+ /**
2
+ *
3
+ * Darkfish Page Functions
4
+ * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
5
+ *
6
+ * Author: Michael Granger <mgranger@laika.com>
7
+ *
8
+ */
9
+
10
+ /* Provide console simulation for firebug-less environments */
11
+ if (!("console" in window) || !("firebug" in console)) {
12
+ var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
13
+ "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
14
+
15
+ window.console = {};
16
+ for (var i = 0; i < names.length; ++i)
17
+ window.console[names[i]] = function() {};
18
+ };
19
+
20
+
21
+ /**
22
+ * Unwrap the first element that matches the given @expr@ from the targets and return them.
23
+ */
24
+ $.fn.unwrap = function( expr ) {
25
+ return this.each( function() {
26
+ $(this).parents( expr ).eq( 0 ).after( this ).remove();
27
+ });
28
+ };
29
+
30
+
31
+ function showSource( e ) {
32
+ var target = e.target;
33
+ var codeSections = $(target).
34
+ parents('.method-detail').
35
+ find('.method-source-code');
36
+
37
+ $(target).
38
+ parents('.method-detail').
39
+ find('.method-source-code').
40
+ slideToggle();
41
+ };
42
+
43
+ function hookSourceViews() {
44
+ $('.method-description,.method-heading').click( showSource );
45
+ };
46
+
47
+ function toggleDebuggingSection() {
48
+ $('.debugging-section').slideToggle();
49
+ };
50
+
51
+ function hookDebuggingToggle() {
52
+ $('#debugging-toggle img').click( toggleDebuggingSection );
53
+ };
54
+
55
+ function hookQuickSearch() {
56
+ $('.quicksearch-field').each( function() {
57
+ var searchElems = $(this).parents('.section').find( 'li' );
58
+ var toggle = $(this).parents('.section').find('h3 .search-toggle');
59
+ // console.debug( "Toggle is: %o", toggle );
60
+ var qsbox = $(this).parents('form').get( 0 );
61
+
62
+ $(this).quicksearch( this, searchElems, {
63
+ noSearchResultsIndicator: 'no-class-search-results',
64
+ focusOnLoad: false
65
+ });
66
+ $(toggle).click( function() {
67
+ // console.debug( "Toggling qsbox: %o", qsbox );
68
+ $(qsbox).toggle();
69
+ });
70
+ });
71
+ };
72
+
73
+ function highlightTarget( anchor ) {
74
+ console.debug( "Highlighting target '%s'.", anchor );
75
+
76
+ $("a[name=" + anchor + "]").each( function() {
77
+ if ( !$(this).parent().parent().hasClass('target-section') ) {
78
+ console.debug( "Wrapping the target-section" );
79
+ $('div.method-detail').unwrap( 'div.target-section' );
80
+ $(this).parent().wrap( '<div class="target-section"></div>' );
81
+ } else {
82
+ console.debug( "Already wrapped." );
83
+ }
84
+ });
85
+ };
86
+
87
+ function highlightLocationTarget() {
88
+ console.debug( "Location hash: %s", window.location.hash );
89
+ if ( ! window.location.hash || window.location.hash.length == 0 ) return;
90
+
91
+ var anchor = window.location.hash.substring(1);
92
+ console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
93
+
94
+ highlightTarget( anchor );
95
+ };
96
+
97
+ function highlightClickTarget( event ) {
98
+ console.debug( "Highlighting click target for event %o", event.target );
99
+ try {
100
+ var anchor = $(event.target).attr( 'href' ).substring(1);
101
+ console.debug( "Found target anchor: %s", anchor );
102
+ highlightTarget( anchor );
103
+ } catch ( err ) {
104
+ console.error( "Exception while highlighting: %o", err );
105
+ };
106
+ };
107
+
108
+
109
+ $(document).ready( function() {
110
+ hookSourceViews();
111
+ hookDebuggingToggle();
112
+ hookQuickSearch();
113
+ highlightLocationTarget();
114
+
115
+ $('ul.link-list a').bind( "click", highlightClickTarget );
116
+ });