netlinx-compile 1.0.0 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +122 -0
  3. data/doc/NetLinx.html +130 -151
  4. data/doc/NetLinx/Compile.html +130 -148
  5. data/doc/NetLinx/Compile/Extension.html +128 -145
  6. data/doc/NetLinx/Compile/Extension/AXS.html +218 -154
  7. data/doc/NetLinx/Compile/ExtensionDiscovery.html +524 -321
  8. data/doc/NetLinx/Compile/ExtensionHandler.html +755 -396
  9. data/doc/NetLinx/Compile/Script.html +431 -282
  10. data/doc/NetLinx/Compiler.html +496 -285
  11. data/doc/NetLinx/CompilerResult.html +1250 -498
  12. data/doc/NetLinx/NoCompilerError.html +142 -155
  13. data/doc/NetLinx/Rake.html +115 -0
  14. data/doc/NetLinx/Rake/Compile.html +358 -0
  15. data/doc/NetLinx/SourceFile.html +702 -423
  16. data/doc/_index.html +234 -0
  17. data/doc/class_list.html +51 -0
  18. data/doc/css/common.css +1 -0
  19. data/doc/css/full_list.css +58 -0
  20. data/doc/css/style.css +496 -0
  21. data/doc/file.README.html +156 -0
  22. data/doc/file.license.html +70 -0
  23. data/doc/file_list.html +61 -0
  24. data/doc/frames.html +17 -0
  25. data/doc/index.html +156 -103
  26. data/doc/js/app.js +314 -0
  27. data/doc/js/full_list.js +216 -0
  28. data/doc/js/jquery.js +4 -18
  29. data/doc/method_list.html +339 -0
  30. data/doc/top-level-namespace.html +110 -0
  31. data/lib/netlinx-compile.rb +11 -1
  32. data/lib/netlinx/compile/extension_discovery.rb +4 -2
  33. data/lib/netlinx/compile/extension_handler.rb +23 -25
  34. data/lib/netlinx/compile/script.rb +4 -3
  35. data/lib/netlinx/compiler.rb +45 -21
  36. data/lib/netlinx/compiler_result.rb +16 -17
  37. data/lib/netlinx/rake/compile.rb +4 -0
  38. data/lib/netlinx/rake/compile/compile.rb +34 -0
  39. data/lib/netlinx/source_file.rb +20 -14
  40. data/lib/test/netlinx/compilable.rb +13 -48
  41. data/lib/test/netlinx/compile/discoverable.rb +3 -14
  42. data/lib/test/netlinx/compile/invokable.rb +3 -15
  43. data/license.txt +1 -1
  44. metadata +114 -74
  45. data/README.txt +0 -2
  46. data/doc/Test.html +0 -147
  47. data/doc/Test/NetLinx.html +0 -147
  48. data/doc/Test/NetLinx/Compilable.html +0 -148
  49. data/doc/Test/NetLinx/Compile.html +0 -146
  50. data/doc/Test/NetLinx/Compile/Discoverable.html +0 -148
  51. data/doc/Test/NetLinx/Compile/Invokable.html +0 -149
  52. data/doc/created.rid +0 -12
  53. data/doc/images/add.png +0 -0
  54. data/doc/images/arrow_up.png +0 -0
  55. data/doc/images/brick.png +0 -0
  56. data/doc/images/brick_link.png +0 -0
  57. data/doc/images/bug.png +0 -0
  58. data/doc/images/bullet_black.png +0 -0
  59. data/doc/images/bullet_toggle_minus.png +0 -0
  60. data/doc/images/bullet_toggle_plus.png +0 -0
  61. data/doc/images/date.png +0 -0
  62. data/doc/images/delete.png +0 -0
  63. data/doc/images/find.png +0 -0
  64. data/doc/images/loadingAnimation.gif +0 -0
  65. data/doc/images/macFFBgHack.png +0 -0
  66. data/doc/images/package.png +0 -0
  67. data/doc/images/page_green.png +0 -0
  68. data/doc/images/page_white_text.png +0 -0
  69. data/doc/images/page_white_width.png +0 -0
  70. data/doc/images/plugin.png +0 -0
  71. data/doc/images/ruby.png +0 -0
  72. data/doc/images/tag_blue.png +0 -0
  73. data/doc/images/tag_green.png +0 -0
  74. data/doc/images/transparent.png +0 -0
  75. data/doc/images/wrench.png +0 -0
  76. data/doc/images/wrench_orange.png +0 -0
  77. data/doc/images/zoom.png +0 -0
  78. data/doc/js/darkfish.js +0 -155
  79. data/doc/js/navigation.js +0 -142
  80. data/doc/js/search.js +0 -94
  81. data/doc/js/search_index.js +0 -1
  82. data/doc/js/searcher.js +0 -228
  83. data/doc/rdoc.css +0 -595
  84. data/doc/table_of_contents.html +0 -138
@@ -1,149 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
-
7
- <title>module Test::NetLinx::Compile::Invokable - RDoc Documentation</title>
8
-
9
- <link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet">
10
-
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "../../../";
13
- </script>
14
-
15
- <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../../../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../../../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../../../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../../../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../../../js/darkfish.js"></script>
21
-
22
-
23
- <body id="top" class="module">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../../../index.html">Home</a>
28
- <a href="../../../table_of_contents.html#classes">Classes</a>
29
- <a href="../../../table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
-
47
-
48
- <div id="file-metadata">
49
- <nav id="file-list-section" class="section">
50
- <h3 class="section-header">Defined In</h3>
51
- <ul>
52
- <li>lib/test/netlinx/compile/invokable.rb
53
- </ul>
54
- </nav>
55
-
56
-
57
- </div>
58
-
59
- <div id="class-metadata">
60
-
61
-
62
-
63
-
64
-
65
- </div>
66
-
67
- <div id="project-metadata">
68
-
69
- <nav id="classindex-section" class="section project-section">
70
- <h3 class="section-header">Class and Module Index</h3>
71
-
72
- <ul class="link-list">
73
-
74
- <li><a href="../../../NetLinx.html">NetLinx</a>
75
-
76
- <li><a href="../../../NetLinx/Compile.html">NetLinx::Compile</a>
77
-
78
- <li><a href="../../../NetLinx/Compile/Extension.html">NetLinx::Compile::Extension</a>
79
-
80
- <li><a href="../../../NetLinx/Compile/Extension/AXS.html">NetLinx::Compile::Extension::AXS</a>
81
-
82
- <li><a href="../../../NetLinx/Compile/ExtensionDiscovery.html">NetLinx::Compile::ExtensionDiscovery</a>
83
-
84
- <li><a href="../../../NetLinx/Compile/ExtensionHandler.html">NetLinx::Compile::ExtensionHandler</a>
85
-
86
- <li><a href="../../../NetLinx/Compile/Script.html">NetLinx::Compile::Script</a>
87
-
88
- <li><a href="../../../NetLinx/Compiler.html">NetLinx::Compiler</a>
89
-
90
- <li><a href="../../../NetLinx/CompilerResult.html">NetLinx::CompilerResult</a>
91
-
92
- <li><a href="../../../NetLinx/NoCompilerError.html">NetLinx::NoCompilerError</a>
93
-
94
- <li><a href="../../../NetLinx/SourceFile.html">NetLinx::SourceFile</a>
95
-
96
- <li><a href="../../../Test.html">Test</a>
97
-
98
- <li><a href="../../../Test/NetLinx.html">Test::NetLinx</a>
99
-
100
- <li><a href="../../../Test/NetLinx/Compilable.html">Test::NetLinx::Compilable</a>
101
-
102
- <li><a href="../../../Test/NetLinx/Compile.html">Test::NetLinx::Compile</a>
103
-
104
- <li><a href="../../../Test/NetLinx/Compile/Discoverable.html">Test::NetLinx::Compile::Discoverable</a>
105
-
106
- <li><a href="../../../Test/NetLinx/Compile/Invokable.html">Test::NetLinx::Compile::Invokable</a>
107
-
108
- </ul>
109
- </nav>
110
-
111
- </div>
112
- </nav>
113
-
114
- <div id="documentation">
115
- <h1 class="module">module Test::NetLinx::Compile::Invokable</h1>
116
-
117
- <div id="description" class="description">
118
-
119
- <p>Interface tests for an object that provides a means to invoke the compiler
120
- on a <a href="../Compilable.html">Compilable</a> file extension. See
121
- ExtensionDiscovery.</p>
122
-
123
- </div><!-- description -->
124
-
125
-
126
-
127
-
128
- <section id="5Buntitled-5D" class="documentation-section">
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
- <!-- Methods -->
138
-
139
- </section><!-- 5Buntitled-5D -->
140
-
141
- </div><!-- documentation -->
142
-
143
-
144
- <footer id="validator-badges">
145
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
146
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
147
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
148
- </footer>
149
-
@@ -1,12 +0,0 @@
1
- Sat, 24 Aug 2013 10:55:29 -0700
2
- lib/netlinx-compile.rb Tue, 13 Aug 2013 19:09:38 -0700
3
- lib/netlinx/compile/extension/axs.rb Wed, 21 Aug 2013 22:17:15 -0700
4
- lib/netlinx/compile/extension_discovery.rb Fri, 23 Aug 2013 20:35:14 -0700
5
- lib/netlinx/compile/extension_handler.rb Fri, 23 Aug 2013 20:48:56 -0700
6
- lib/netlinx/compile/script.rb Fri, 23 Aug 2013 19:55:14 -0700
7
- lib/netlinx/compiler.rb Sat, 24 Aug 2013 10:55:04 -0700
8
- lib/netlinx/compiler_result.rb Sun, 18 Aug 2013 23:39:49 -0700
9
- lib/netlinx/source_file.rb Fri, 23 Aug 2013 20:31:28 -0700
10
- lib/test/netlinx/compilable.rb Sat, 24 Aug 2013 10:55:28 -0700
11
- lib/test/netlinx/compile/discoverable.rb Fri, 23 Aug 2013 20:33:18 -0700
12
- lib/test/netlinx/compile/invokable.rb Fri, 23 Aug 2013 20:33:06 -0700
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
@@ -1,155 +0,0 @@
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-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 hookTableOfContentsToggle() {
56
- $('.indexpage li .toc-toggle').each( function() {
57
- $(this).click( function() {
58
- $(this).toggleClass('open');
59
- });
60
-
61
- var section = $(this).next();
62
-
63
- $(this).click( function() {
64
- section.slideToggle();
65
- });
66
- });
67
- }
68
-
69
- function hookSearch() {
70
- var input = $('#search-field').eq(0);
71
- var result = $('#search-results').eq(0);
72
- $(result).show();
73
-
74
- var search_section = $('#search-section').get(0);
75
- $(search_section).show();
76
-
77
- var search = new Search(search_data, input, result);
78
-
79
- search.renderItem = function(result) {
80
- var li = document.createElement('li');
81
- var html = '';
82
-
83
- // TODO add relative path to <script> per-page
84
- html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
85
- if (result.params)
86
- html += '<span class="params">' + result.params + '</span>';
87
- html += '</a>';
88
-
89
-
90
- if (result.namespace)
91
- html += '<p class="search-namespace">' + this.hlt(result.namespace);
92
-
93
- if (result.snippet)
94
- html += '<div class="search-snippet">' + result.snippet + '</div>';
95
-
96
- li.innerHTML = html;
97
-
98
- return li;
99
- }
100
-
101
- search.select = function(result) {
102
- var result_element = result.get(0);
103
- window.location.href = result_element.firstChild.firstChild.href;
104
- }
105
-
106
- search.scrollIntoView = search.scrollInWindow;
107
- };
108
-
109
- function highlightTarget( anchor ) {
110
- console.debug( "Highlighting target '%s'.", anchor );
111
-
112
- $("a[name]").each( function() {
113
- if ( $(this).attr("name") == anchor ) {
114
- if ( !$(this).parent().parent().hasClass('target-section') ) {
115
- console.debug( "Wrapping the target-section" );
116
- $('div.method-detail').unwrap( 'div.target-section' );
117
- $(this).parent().wrap( '<div class="target-section"></div>' );
118
- } else {
119
- console.debug( "Already wrapped." );
120
- }
121
- }
122
- });
123
- };
124
-
125
- function highlightLocationTarget() {
126
- console.debug( "Location hash: %s", window.location.hash );
127
- if ( ! window.location.hash || window.location.hash.length == 0 ) return;
128
-
129
- var anchor = window.location.hash.substring(1);
130
- console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
131
-
132
- highlightTarget( anchor );
133
- };
134
-
135
- function highlightClickTarget( event ) {
136
- console.debug( "Highlighting click target for event %o", event.target );
137
- try {
138
- var anchor = $(event.target).attr( 'href' ).substring(1);
139
- console.debug( "Found target anchor: %s", anchor );
140
- highlightTarget( anchor );
141
- } catch ( err ) {
142
- console.error( "Exception while highlighting: %o", err );
143
- };
144
- };
145
-
146
-
147
- $(document).ready( function() {
148
- hookSourceViews();
149
- hookDebuggingToggle();
150
- hookSearch();
151
- highlightLocationTarget();
152
- hookTableOfContentsToggle();
153
-
154
- $('ul.link-list a').bind( "click", highlightClickTarget );
155
- });
@@ -1,142 +0,0 @@
1
- /*
2
- * Navigation allows movement using the arrow keys through the search results.
3
- *
4
- * When using this library you will need to set scrollIntoView to the
5
- * appropriate function for your layout. Use scrollInWindow if the container
6
- * is not scrollable and scrollInElement if the container is a separate
7
- * scrolling region.
8
- */
9
- Navigation = new function() {
10
- this.initNavigation = function() {
11
- var _this = this;
12
-
13
- $(document).keydown(function(e) {
14
- _this.onkeydown(e);
15
- }).keyup(function(e) {
16
- _this.onkeyup(e);
17
- });
18
-
19
- this.navigationActive = true;
20
- }
21
-
22
- this.setNavigationActive = function(state) {
23
- this.navigationActive = state;
24
- this.clearMoveTimeout();
25
- }
26
-
27
- this.onkeyup = function(e) {
28
- if (!this.navigationActive) return;
29
-
30
- switch(e.keyCode) {
31
- case 37: //Event.KEY_LEFT:
32
- case 38: //Event.KEY_UP:
33
- case 39: //Event.KEY_RIGHT:
34
- case 40: //Event.KEY_DOWN:
35
- this.clearMoveTimeout();
36
- break;
37
- }
38
- }
39
-
40
- this.onkeydown = function(e) {
41
- if (!this.navigationActive) return;
42
- switch(e.keyCode) {
43
- case 37: //Event.KEY_LEFT:
44
- if (this.moveLeft()) e.preventDefault();
45
- break;
46
- case 38: //Event.KEY_UP:
47
- if (e.keyCode == 38 || e.ctrlKey) {
48
- if (this.moveUp()) e.preventDefault();
49
- this.startMoveTimeout(false);
50
- }
51
- break;
52
- case 39: //Event.KEY_RIGHT:
53
- if (this.moveRight()) e.preventDefault();
54
- break;
55
- case 40: //Event.KEY_DOWN:
56
- if (e.keyCode == 40 || e.ctrlKey) {
57
- if (this.moveDown()) e.preventDefault();
58
- this.startMoveTimeout(true);
59
- }
60
- break;
61
- case 13: //Event.KEY_RETURN:
62
- if (this.$current)
63
- e.preventDefault();
64
- this.select(this.$current);
65
- break;
66
- }
67
- if (e.ctrlKey && e.shiftKey) this.select(this.$current);
68
- }
69
-
70
- this.clearMoveTimeout = function() {
71
- clearTimeout(this.moveTimeout);
72
- this.moveTimeout = null;
73
- }
74
-
75
- this.startMoveTimeout = function(isDown) {
76
- if (!$.browser.mozilla && !$.browser.opera) return;
77
- if (this.moveTimeout) this.clearMoveTimeout();
78
- var _this = this;
79
-
80
- var go = function() {
81
- if (!_this.moveTimeout) return;
82
- _this[isDown ? 'moveDown' : 'moveUp']();
83
- _this.moveTimout = setTimeout(go, 100);
84
- }
85
- this.moveTimeout = setTimeout(go, 200);
86
- }
87
-
88
- this.moveRight = function() {
89
- }
90
-
91
- this.moveLeft = function() {
92
- }
93
-
94
- this.move = function(isDown) {
95
- }
96
-
97
- this.moveUp = function() {
98
- return this.move(false);
99
- }
100
-
101
- this.moveDown = function() {
102
- return this.move(true);
103
- }
104
-
105
- /*
106
- * Scrolls to the given element in the scrollable element view.
107
- */
108
- this.scrollInElement = function(element, view) {
109
- var offset, viewHeight, viewScroll, height;
110
- offset = element.offsetTop;
111
- height = element.offsetHeight;
112
- viewHeight = view.offsetHeight;
113
- viewScroll = view.scrollTop;
114
-
115
- if (offset - viewScroll + height > viewHeight) {
116
- view.scrollTop = offset - viewHeight + height;
117
- }
118
- if (offset < viewScroll) {
119
- view.scrollTop = offset;
120
- }
121
- }
122
-
123
- /*
124
- * Scrolls to the given element in the window. The second argument is
125
- * ignored
126
- */
127
- this.scrollInWindow = function(element, ignored) {
128
- var offset, viewHeight, viewScroll, height;
129
- offset = element.offsetTop;
130
- height = element.offsetHeight;
131
- viewHeight = window.innerHeight;
132
- viewScroll = window.scrollY;
133
-
134
- if (offset - viewScroll + height > viewHeight) {
135
- window.scrollTo(window.scrollX, offset - viewHeight + height);
136
- }
137
- if (offset < viewScroll) {
138
- window.scrollTo(window.scrollX, offset);
139
- }
140
- }
141
- }
142
-