netlinx-compile 3.0.0 → 3.1.0
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.
- checksums.yaml +4 -4
- data/doc/NetLinx.html +15 -4
- data/doc/NetLinx/Compile.html +15 -4
- data/doc/NetLinx/Compile/Extension.html +16 -3
- data/doc/NetLinx/Compile/Extension/AXS.html +1 -1
- data/doc/NetLinx/Compile/ExtensionDiscovery.html +63 -16
- data/doc/NetLinx/Compile/ExtensionHandler.html +125 -53
- data/doc/NetLinx/Compile/Script.html +50 -10
- data/doc/NetLinx/Compiler.html +168 -53
- data/doc/NetLinx/CompilerResult.html +197 -50
- data/doc/NetLinx/NoCompilerError.html +9 -3
- data/doc/NetLinx/SourceFile.html +146 -59
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/file.license.html +2 -2
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/netlinx-compile.rb +11 -1
- data/lib/netlinx/compile/extension_discovery.rb +4 -2
- data/lib/netlinx/compile/extension_handler.rb +23 -25
- data/lib/netlinx/compile/script.rb +4 -3
- data/lib/netlinx/compiler.rb +39 -21
- data/lib/netlinx/compiler_result.rb +16 -17
- data/lib/netlinx/source_file.rb +16 -14
- data/license.txt +1 -1
- metadata +17 -17
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Raised when the NetLinx compiler (nlrc.exe) cannot be found on the system
|
108
|
-
See NetLinx::Compiler.</p>
|
107
|
+
<p>Raised when the NetLinx compiler (nlrc.exe) cannot be found on the system.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -113,6 +112,13 @@ See NetLinx::Compiler.</p>
|
|
113
112
|
<div class="tags">
|
114
113
|
|
115
114
|
|
115
|
+
<p class="tag_title">See Also:</p>
|
116
|
+
<ul class="see">
|
117
|
+
|
118
|
+
<li><span class='object_link'><a href="Compiler.html" title="NetLinx::Compiler (class)">Compiler</a></span></li>
|
119
|
+
|
120
|
+
</ul>
|
121
|
+
|
116
122
|
</div>
|
117
123
|
|
118
124
|
|
@@ -126,7 +132,7 @@ See NetLinx::Compiler.</p>
|
|
126
132
|
</div>
|
127
133
|
|
128
134
|
<div id="footer">
|
129
|
-
Generated on Mon Jan 26 15:
|
135
|
+
Generated on Mon Jan 26 15:36:24 2015 by
|
130
136
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
131
137
|
0.8.7.6 (ruby-2.1.5).
|
132
138
|
</div>
|
data/doc/NetLinx/SourceFile.html
CHANGED
@@ -99,7 +99,18 @@
|
|
99
99
|
</dl>
|
100
100
|
<div class="clear"></div>
|
101
101
|
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>A NetLinx source code file. Typically .axs or .axi.</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
102
112
|
|
113
|
+
</div>
|
103
114
|
|
104
115
|
|
105
116
|
|
@@ -155,9 +166,7 @@
|
|
155
166
|
|
156
167
|
|
157
168
|
|
158
|
-
<span class="summary_desc"><div class='inline'>
|
159
|
-
<p>See Test::NetLinx::Compilable interface.</p>
|
160
|
-
</div></span>
|
169
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
161
170
|
|
162
171
|
</li>
|
163
172
|
|
@@ -179,9 +188,7 @@
|
|
179
188
|
|
180
189
|
|
181
190
|
|
182
|
-
<span class="summary_desc"><div class='inline'>
|
183
|
-
<p>See Test::NetLinx::Compilable interface.</p>
|
184
|
-
</div></span>
|
191
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
185
192
|
|
186
193
|
</li>
|
187
194
|
|
@@ -203,9 +210,7 @@
|
|
203
210
|
|
204
211
|
|
205
212
|
|
206
|
-
<span class="summary_desc"><div class='inline'>
|
207
|
-
<p>See Test::NetLinx::Compilable interface.</p>
|
208
|
-
</div></span>
|
213
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
209
214
|
|
210
215
|
</li>
|
211
216
|
|
@@ -227,9 +232,7 @@
|
|
227
232
|
|
228
233
|
|
229
234
|
|
230
|
-
<span class="summary_desc"><div class='inline'>
|
231
|
-
<p>See Test::NetLinx::Compilable interface.</p>
|
232
|
-
</div></span>
|
235
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
233
236
|
|
234
237
|
</li>
|
235
238
|
|
@@ -237,7 +240,7 @@
|
|
237
240
|
<li class="public ">
|
238
241
|
<span class="summary_signature">
|
239
242
|
|
240
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (SourceFile) <strong>initialize</strong>(**
|
243
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (SourceFile) <strong>initialize</strong>(**kwargs) </a>
|
241
244
|
|
242
245
|
|
243
246
|
|
@@ -254,7 +257,8 @@
|
|
254
257
|
|
255
258
|
|
256
259
|
<span class="summary_desc"><div class='inline'>
|
257
|
-
<p>
|
260
|
+
<p>NOTE: SourceFile searches the body of the source file to automatically
|
261
|
+
determine include and module paths.</p>
|
258
262
|
</div></span>
|
259
263
|
|
260
264
|
</li>
|
@@ -269,7 +273,7 @@
|
|
269
273
|
<div class="method_details first">
|
270
274
|
<h3 class="signature first" id="initialize-instance_method">
|
271
275
|
|
272
|
-
- (<tt><span class='object_link'><a href="" title="NetLinx::SourceFile (class)">SourceFile</a></span></tt>) <strong>initialize</strong>(**
|
276
|
+
- (<tt><span class='object_link'><a href="" title="NetLinx::SourceFile (class)">SourceFile</a></span></tt>) <strong>initialize</strong>(**kwargs)
|
273
277
|
|
274
278
|
|
275
279
|
|
@@ -278,19 +282,82 @@
|
|
278
282
|
</h3><div class="docstring">
|
279
283
|
<div class="discussion">
|
280
284
|
|
281
|
-
<p>
|
282
|
-
|
283
|
-
<pre class="code ruby"><code class="ruby">file: Name or path of the file to compile.
|
284
|
-
compiler_include_paths: Array of additional paths for the compiler to find include files.
|
285
|
-
compiler_module_paths: Array of additional paths for the compiler to find module files.
|
286
|
-
NOTE: SourceFile already searches the body of the source file to automatically determine
|
287
|
-
include and module paths.</code></pre>
|
285
|
+
<p>NOTE: SourceFile searches the body of the source file to automatically
|
286
|
+
determine include and module paths.</p>
|
288
287
|
|
289
288
|
|
290
289
|
</div>
|
291
290
|
</div>
|
292
291
|
<div class="tags">
|
292
|
+
<p class="tag_title">Parameters:</p>
|
293
|
+
<ul class="param">
|
294
|
+
|
295
|
+
<li>
|
296
|
+
|
297
|
+
<span class='name'>kwargs</span>
|
298
|
+
|
299
|
+
|
300
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
—
|
305
|
+
<div class='inline'>
|
306
|
+
<p>a customizable set of options</p>
|
307
|
+
</div>
|
308
|
+
|
309
|
+
</li>
|
293
310
|
|
311
|
+
</ul>
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
<p class="tag_title">Options Hash (<tt>**kwargs</tt>):</p>
|
317
|
+
<ul class="option">
|
318
|
+
|
319
|
+
<li>
|
320
|
+
<span class="name">:file</span>
|
321
|
+
<span class="type">(<tt>String</tt>)</span>
|
322
|
+
<span class="default">
|
323
|
+
|
324
|
+
</span>
|
325
|
+
|
326
|
+
— <div class='inline'>
|
327
|
+
<p>Name or path of the file to compile.</p>
|
328
|
+
</div>
|
329
|
+
|
330
|
+
</li>
|
331
|
+
|
332
|
+
<li>
|
333
|
+
<span class="name">:compiler_include_paths</span>
|
334
|
+
<span class="type">(<tt>Array<String></tt>)</span>
|
335
|
+
<span class="default">
|
336
|
+
|
337
|
+
</span>
|
338
|
+
|
339
|
+
— <div class='inline'>
|
340
|
+
<p>Additional paths for the compiler to find include files.</p>
|
341
|
+
</div>
|
342
|
+
|
343
|
+
</li>
|
344
|
+
|
345
|
+
<li>
|
346
|
+
<span class="name">:compiler_module_paths</span>
|
347
|
+
<span class="type">(<tt>Array<String></tt>)</span>
|
348
|
+
<span class="default">
|
349
|
+
|
350
|
+
</span>
|
351
|
+
|
352
|
+
— <div class='inline'>
|
353
|
+
<p>Additional paths for the compiler to find module files.</p>
|
354
|
+
</div>
|
355
|
+
|
356
|
+
</li>
|
357
|
+
|
358
|
+
</ul>
|
359
|
+
|
360
|
+
|
294
361
|
|
295
362
|
</div><table class="source_code">
|
296
363
|
<tr>
|
@@ -298,8 +365,6 @@ compiler_module_paths: Array of additional paths for the compiler to find module
|
|
298
365
|
<pre class="lines">
|
299
366
|
|
300
367
|
|
301
|
-
10
|
302
|
-
11
|
303
368
|
12
|
304
369
|
13
|
305
370
|
14
|
@@ -336,15 +401,17 @@ compiler_module_paths: Array of additional paths for the compiler to find module
|
|
336
401
|
45
|
337
402
|
46
|
338
403
|
47
|
339
|
-
48
|
404
|
+
48
|
405
|
+
49
|
406
|
+
50</pre>
|
340
407
|
</td>
|
341
408
|
<td>
|
342
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line
|
409
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line 12</span>
|
343
410
|
|
344
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier
|
345
|
-
<span class='ivar'>@compiler_target_files</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='
|
346
|
-
<span class='ivar'>@compiler_include_paths</span> <span class='op'>=</span> <span class='id identifier
|
347
|
-
<span class='ivar'>@compiler_module_paths</span> <span class='op'>=</span> <span class='id identifier
|
411
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='rparen'>)</span>
|
412
|
+
<span class='ivar'>@compiler_target_files</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:file</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='rbracket'>]</span>
|
413
|
+
<span class='ivar'>@compiler_include_paths</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:compiler_include_paths</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
414
|
+
<span class='ivar'>@compiler_module_paths</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:compiler_module_paths</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
348
415
|
|
349
416
|
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='ivar'>@compiler_target_files</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
350
417
|
|
@@ -418,14 +485,14 @@ compiler_module_paths: Array of additional paths for the compiler to find module
|
|
418
485
|
<pre class="lines">
|
419
486
|
|
420
487
|
|
421
|
-
71
|
422
|
-
72
|
423
488
|
73
|
424
489
|
74
|
425
|
-
75
|
490
|
+
75
|
491
|
+
76
|
492
|
+
77</pre>
|
426
493
|
</td>
|
427
494
|
<td>
|
428
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line
|
495
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line 73</span>
|
429
496
|
|
430
497
|
<span class='kw'>def</span> <span class='id identifier rubyid_compile'>compile</span>
|
431
498
|
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>netlinx/compiler</span><span class='tstring_end'>'</span></span>
|
@@ -449,26 +516,31 @@ compiler_module_paths: Array of additional paths for the compiler to find module
|
|
449
516
|
</h3><div class="docstring">
|
450
517
|
<div class="discussion">
|
451
518
|
|
452
|
-
<p>See Test::NetLinx::Compilable interface.</p>
|
453
|
-
|
454
519
|
|
455
520
|
</div>
|
456
521
|
</div>
|
457
522
|
<div class="tags">
|
458
523
|
|
459
524
|
|
525
|
+
<p class="tag_title">See Also:</p>
|
526
|
+
<ul class="see">
|
527
|
+
|
528
|
+
<li>lib/test/netlinx/compilable.rb interface.</li>
|
529
|
+
|
530
|
+
</ul>
|
531
|
+
|
460
532
|
</div><table class="source_code">
|
461
533
|
<tr>
|
462
534
|
<td>
|
463
535
|
<pre class="lines">
|
464
536
|
|
465
537
|
|
466
|
-
|
467
|
-
|
468
|
-
|
538
|
+
58
|
539
|
+
59
|
540
|
+
60</pre>
|
469
541
|
</td>
|
470
542
|
<td>
|
471
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line
|
543
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line 58</span>
|
472
544
|
|
473
545
|
<span class='kw'>def</span> <span class='id identifier rubyid_compiler_include_paths'>compiler_include_paths</span>
|
474
546
|
<span class='ivar'>@compiler_include_paths</span>
|
@@ -490,26 +562,31 @@ compiler_module_paths: Array of additional paths for the compiler to find module
|
|
490
562
|
</h3><div class="docstring">
|
491
563
|
<div class="discussion">
|
492
564
|
|
493
|
-
<p>See Test::NetLinx::Compilable interface.</p>
|
494
|
-
|
495
565
|
|
496
566
|
</div>
|
497
567
|
</div>
|
498
568
|
<div class="tags">
|
499
569
|
|
500
570
|
|
571
|
+
<p class="tag_title">See Also:</p>
|
572
|
+
<ul class="see">
|
573
|
+
|
574
|
+
<li>lib/test/netlinx/compilable.rb interface.</li>
|
575
|
+
|
576
|
+
</ul>
|
577
|
+
|
501
578
|
</div><table class="source_code">
|
502
579
|
<tr>
|
503
580
|
<td>
|
504
581
|
<pre class="lines">
|
505
582
|
|
506
583
|
|
507
|
-
|
508
|
-
|
509
|
-
|
584
|
+
68
|
585
|
+
69
|
586
|
+
70</pre>
|
510
587
|
</td>
|
511
588
|
<td>
|
512
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line
|
589
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line 68</span>
|
513
590
|
|
514
591
|
<span class='kw'>def</span> <span class='id identifier rubyid_compiler_library_paths'>compiler_library_paths</span>
|
515
592
|
<span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -531,26 +608,31 @@ compiler_module_paths: Array of additional paths for the compiler to find module
|
|
531
608
|
</h3><div class="docstring">
|
532
609
|
<div class="discussion">
|
533
610
|
|
534
|
-
<p>See Test::NetLinx::Compilable interface.</p>
|
535
|
-
|
536
611
|
|
537
612
|
</div>
|
538
613
|
</div>
|
539
614
|
<div class="tags">
|
540
615
|
|
541
616
|
|
617
|
+
<p class="tag_title">See Also:</p>
|
618
|
+
<ul class="see">
|
619
|
+
|
620
|
+
<li>lib/test/netlinx/compilable.rb interface.</li>
|
621
|
+
|
622
|
+
</ul>
|
623
|
+
|
542
624
|
</div><table class="source_code">
|
543
625
|
<tr>
|
544
626
|
<td>
|
545
627
|
<pre class="lines">
|
546
628
|
|
547
629
|
|
548
|
-
|
549
|
-
|
550
|
-
|
630
|
+
63
|
631
|
+
64
|
632
|
+
65</pre>
|
551
633
|
</td>
|
552
634
|
<td>
|
553
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line
|
635
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line 63</span>
|
554
636
|
|
555
637
|
<span class='kw'>def</span> <span class='id identifier rubyid_compiler_module_paths'>compiler_module_paths</span>
|
556
638
|
<span class='ivar'>@compiler_module_paths</span>
|
@@ -572,26 +654,31 @@ compiler_module_paths: Array of additional paths for the compiler to find module
|
|
572
654
|
</h3><div class="docstring">
|
573
655
|
<div class="discussion">
|
574
656
|
|
575
|
-
<p>See Test::NetLinx::Compilable interface.</p>
|
576
|
-
|
577
657
|
|
578
658
|
</div>
|
579
659
|
</div>
|
580
660
|
<div class="tags">
|
581
661
|
|
582
662
|
|
663
|
+
<p class="tag_title">See Also:</p>
|
664
|
+
<ul class="see">
|
665
|
+
|
666
|
+
<li>lib/test/netlinx/compilable.rb interface.</li>
|
667
|
+
|
668
|
+
</ul>
|
669
|
+
|
583
670
|
</div><table class="source_code">
|
584
671
|
<tr>
|
585
672
|
<td>
|
586
673
|
<pre class="lines">
|
587
674
|
|
588
675
|
|
589
|
-
|
590
|
-
|
591
|
-
|
676
|
+
53
|
677
|
+
54
|
678
|
+
55</pre>
|
592
679
|
</td>
|
593
680
|
<td>
|
594
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line
|
681
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/source_file.rb', line 53</span>
|
595
682
|
|
596
683
|
<span class='kw'>def</span> <span class='id identifier rubyid_compiler_target_files'>compiler_target_files</span>
|
597
684
|
<span class='ivar'>@compiler_target_files</span>
|
@@ -606,7 +693,7 @@ compiler_module_paths: Array of additional paths for the compiler to find module
|
|
606
693
|
</div>
|
607
694
|
|
608
695
|
<div id="footer">
|
609
|
-
Generated on Mon Jan 26 15:
|
696
|
+
Generated on Mon Jan 26 15:36:24 2015 by
|
610
697
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
611
698
|
0.8.7.6 (ruby-2.1.5).
|
612
699
|
</div>
|
data/doc/_index.html
CHANGED
@@ -206,7 +206,7 @@
|
|
206
206
|
</div>
|
207
207
|
|
208
208
|
<div id="footer">
|
209
|
-
Generated on Mon Jan 26 15:
|
209
|
+
Generated on Mon Jan 26 15:36:24 2015 by
|
210
210
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
211
211
|
0.8.7.6 (ruby-2.1.5).
|
212
212
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -108,7 +108,7 @@ href="https://sourceforge.net/p/netlinx-compile/wiki/Home/">sourceforge.net/p/ne
|
|
108
108
|
</div></div>
|
109
109
|
|
110
110
|
<div id="footer">
|
111
|
-
Generated on Mon Jan 26 15:
|
111
|
+
Generated on Mon Jan 26 15:36:24 2015 by
|
112
112
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
113
|
0.8.7.6 (ruby-2.1.5).
|
114
114
|
</div>
|
data/doc/file.license.html
CHANGED
@@ -61,10 +61,10 @@
|
|
61
61
|
|
62
62
|
<iframe id="search_frame"></iframe>
|
63
63
|
|
64
|
-
<div id="content"><div id='filecontents'>Copyright 2013 Alex McLain<br/><br/>Licensed under the Apache License, Version 2.0 (the "License");<br/>you may not use this file except in compliance with the License.<br/>You may obtain a copy of the License at<br/><br/> http://www.apache.org/licenses/LICENSE-2.0<br/><br/>Unless required by applicable law or agreed to in writing, software<br/>distributed under the License is distributed on an "AS IS" BASIS,<br/>WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br/>See the License for the specific language governing permissions and<br/>limitations under the License.</div></div>
|
64
|
+
<div id="content"><div id='filecontents'>Copyright 2013, 2015 Alex McLain<br/><br/>Licensed under the Apache License, Version 2.0 (the "License");<br/>you may not use this file except in compliance with the License.<br/>You may obtain a copy of the License at<br/><br/> http://www.apache.org/licenses/LICENSE-2.0<br/><br/>Unless required by applicable law or agreed to in writing, software<br/>distributed under the License is distributed on an "AS IS" BASIS,<br/>WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br/>See the License for the specific language governing permissions and<br/>limitations under the License.</div></div>
|
65
65
|
|
66
66
|
<div id="footer">
|
67
|
-
Generated on Mon Jan 26 15:
|
67
|
+
Generated on Mon Jan 26 15:36:24 2015 by
|
68
68
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
69
69
|
0.8.7.6 (ruby-2.1.5).
|
70
70
|
</div>
|