rupat 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +4 -0
- data/doc/Rupat.html +5 -7
- data/doc/RupatAlias.html +1 -1
- data/doc/RupatMod/RupatError.html +1 -1
- data/doc/RupatMod/RupatInvalidLineError.html +1 -1
- data/doc/RupatMod/RupatPasteError.html +1 -1
- data/doc/RupatMod/RupatSearchError.html +1 -1
- data/doc/RupatMod/RupatTypeError.html +1 -1
- data/doc/RupatMod.html +228 -236
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +8 -2
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/rupat.rb +13 -13
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1edfca40f32e5b83d9c8592b5ccb4e18c8305116
|
4
|
+
data.tar.gz: 84a8aed4b1bceb6fcf0d50f8847c89971c0d6033
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd1cd92d7fea35ad85a60b743c6447edb719432f6d01a63f850b01b01169b0d74bbf06c156ef85bb877937602aa546f0607a73c60bec3595f203838900e3afd7
|
7
|
+
data.tar.gz: 26b1a0a8869a80001be7aa2fd086196ba50b3225e6d001a15b63b372c3ac67ed2d680a09afb22d3e597fc8dfc718db90e79f7e82b2b2dfbf73a25e7b92ce0761
|
data/CHANGELOG.rdoc
CHANGED
data/doc/Rupat.html
CHANGED
@@ -150,11 +150,9 @@ lines editing.</p>
|
|
150
150
|
<p>Source file can be opened in multiple editing modes.</p>
|
151
151
|
</dd><dt>line manipulation
|
152
152
|
<dd>
|
153
|
-
<p>Search/jump to lines, extract and edit content</
|
154
|
-
|
155
|
-
|
156
|
-
<pre class="code ruby"><code class="ruby">(See: {RupatMod} for all access/editing methods).</code></pre>
|
157
|
-
<dl class="rdoc-list label-list"><dt>save file
|
153
|
+
<p>Search/jump to lines, extract and edit content (See: <span class='object_link'><a href="RupatMod.html" title="RupatMod (module)">RupatMod</a></span> for all
|
154
|
+
access/editing methods).</p>
|
155
|
+
</dd><dt>save file
|
158
156
|
<dd>
|
159
157
|
<p>Save the editing results to the source file or to a newly created file.</p>
|
160
158
|
</dd></dl>
|
@@ -221,7 +219,7 @@ to file2.</p>
|
|
221
219
|
<dt id="VERSION-constant" class="">VERSION =
|
222
220
|
|
223
221
|
</dt>
|
224
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.0.
|
222
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.0.3</span><span class='tstring_end'>"</span></span></pre></dd>
|
225
223
|
|
226
224
|
</dl>
|
227
225
|
|
@@ -964,7 +962,7 @@ to file2.</p>
|
|
964
962
|
</div>
|
965
963
|
|
966
964
|
<div id="footer">
|
967
|
-
Generated on
|
965
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
968
966
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
969
967
|
0.8.7.6 (ruby-2.1.2).
|
970
968
|
</div>
|
data/doc/RupatAlias.html
CHANGED
@@ -182,7 +182,7 @@
|
|
182
182
|
</div>
|
183
183
|
|
184
184
|
<div id="footer">
|
185
|
-
Generated on
|
185
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
186
186
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
187
187
|
0.8.7.6 (ruby-2.1.2).
|
188
188
|
</div>
|
@@ -129,7 +129,7 @@
|
|
129
129
|
</div>
|
130
130
|
|
131
131
|
<div id="footer">
|
132
|
-
Generated on
|
132
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
133
133
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
134
134
|
0.8.7.6 (ruby-2.1.2).
|
135
135
|
</div>
|
@@ -133,7 +133,7 @@
|
|
133
133
|
</div>
|
134
134
|
|
135
135
|
<div id="footer">
|
136
|
-
Generated on
|
136
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
137
137
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
138
138
|
0.8.7.6 (ruby-2.1.2).
|
139
139
|
</div>
|
@@ -133,7 +133,7 @@
|
|
133
133
|
</div>
|
134
134
|
|
135
135
|
<div id="footer">
|
136
|
-
Generated on
|
136
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
137
137
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
138
138
|
0.8.7.6 (ruby-2.1.2).
|
139
139
|
</div>
|
@@ -133,7 +133,7 @@
|
|
133
133
|
</div>
|
134
134
|
|
135
135
|
<div id="footer">
|
136
|
-
Generated on
|
136
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
137
137
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
138
138
|
0.8.7.6 (ruby-2.1.2).
|
139
139
|
</div>
|
@@ -133,7 +133,7 @@
|
|
133
133
|
</div>
|
134
134
|
|
135
135
|
<div id="footer">
|
136
|
-
Generated on
|
136
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
137
137
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
138
138
|
0.8.7.6 (ruby-2.1.2).
|
139
139
|
</div>
|
data/doc/RupatMod.html
CHANGED
@@ -1557,12 +1557,12 @@ block completion.</p>
|
|
1557
1557
|
<pre class="lines">
|
1558
1558
|
|
1559
1559
|
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1560
|
+
297
|
1561
|
+
298
|
1562
|
+
299</pre>
|
1563
1563
|
</td>
|
1564
1564
|
<td>
|
1565
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
1565
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 297</span>
|
1566
1566
|
|
1567
1567
|
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span> <span class='id identifier rubyid_range'>range</span> <span class='rparen'>)</span>
|
1568
1568
|
<span class='ivar'>@lines</span><span class='lbracket'>[</span> <span class='id identifier rubyid_range'>range</span> <span class='rbracket'>]</span>
|
@@ -1638,14 +1638,14 @@ block completion.</p>
|
|
1638
1638
|
<pre class="lines">
|
1639
1639
|
|
1640
1640
|
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1641
|
+
412
|
1642
|
+
413
|
1643
|
+
414
|
1644
|
+
415
|
1645
|
+
416</pre>
|
1646
1646
|
</td>
|
1647
1647
|
<td>
|
1648
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
1648
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 412</span>
|
1649
1649
|
|
1650
1650
|
<span class='kw'>def</span> <span class='id identifier rubyid_append'>append</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
1651
1651
|
<span class='id identifier rubyid_forward'>forward</span>
|
@@ -1721,16 +1721,16 @@ block completion.</p>
|
|
1721
1721
|
<pre class="lines">
|
1722
1722
|
|
1723
1723
|
|
1724
|
+
423
|
1725
|
+
424
|
1726
|
+
425
|
1727
|
+
426
|
1724
1728
|
427
|
1725
1729
|
428
|
1726
|
-
429
|
1727
|
-
430
|
1728
|
-
431
|
1729
|
-
432
|
1730
|
-
433</pre>
|
1730
|
+
429</pre>
|
1731
1731
|
</td>
|
1732
1732
|
<td>
|
1733
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
1733
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 423</span>
|
1734
1734
|
|
1735
1735
|
<span class='kw'>def</span> <span class='id identifier rubyid_appendMany'>appendMany</span><span class='lparen'>(</span> <span class='id identifier rubyid_content'>content</span> <span class='rparen'>)</span>
|
1736
1736
|
<span class='id identifier rubyid_lines'>lines</span> <span class='op'>=</span> <span class='id identifier rubyid_manyLineContent'>manyLineContent</span><span class='lparen'>(</span> <span class='id identifier rubyid_content'>content</span> <span class='rparen'>)</span>
|
@@ -1814,14 +1814,14 @@ block completion.</p>
|
|
1814
1814
|
<pre class="lines">
|
1815
1815
|
|
1816
1816
|
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1817
|
+
180
|
1818
|
+
181
|
1819
|
+
182
|
1820
|
+
183
|
1821
|
+
184</pre>
|
1822
1822
|
</td>
|
1823
1823
|
<td>
|
1824
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
1824
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 180</span>
|
1825
1825
|
|
1826
1826
|
<span class='kw'>def</span> <span class='id identifier rubyid_backward'>backward</span><span class='lparen'>(</span> <span class='id identifier rubyid_count'>count</span> <span class='op'>=</span> <span class='int'>1</span> <span class='rparen'>)</span>
|
1827
1827
|
<span class='ivar'>@curline</span> <span class='op'>-=</span> <span class='id identifier rubyid_count'>count</span>
|
@@ -1899,6 +1899,10 @@ block completion.</p>
|
|
1899
1899
|
<pre class="lines">
|
1900
1900
|
|
1901
1901
|
|
1902
|
+
522
|
1903
|
+
523
|
1904
|
+
524
|
1905
|
+
525
|
1902
1906
|
526
|
1903
1907
|
527
|
1904
1908
|
528
|
@@ -1917,14 +1921,10 @@ block completion.</p>
|
|
1917
1921
|
541
|
1918
1922
|
542
|
1919
1923
|
543
|
1920
|
-
544
|
1921
|
-
545
|
1922
|
-
546
|
1923
|
-
547
|
1924
|
-
548</pre>
|
1924
|
+
544</pre>
|
1925
1925
|
</td>
|
1926
1926
|
<td>
|
1927
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
1927
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 522</span>
|
1928
1928
|
|
1929
1929
|
<span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='ivar'>@newFile</span> <span class='rparen'>)</span>
|
1930
1930
|
|
@@ -2039,14 +2039,14 @@ copy-buffer.</p>
|
|
2039
2039
|
<pre class="lines">
|
2040
2040
|
|
2041
2041
|
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2046
|
-
|
2042
|
+
329
|
2043
|
+
330
|
2044
|
+
331
|
2045
|
+
332
|
2046
|
+
333</pre>
|
2047
2047
|
</td>
|
2048
2048
|
<td>
|
2049
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
2049
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 329</span>
|
2050
2050
|
|
2051
2051
|
<span class='kw'>def</span> <span class='id identifier rubyid_copy'>copy</span><span class='lparen'>(</span> <span class='id identifier rubyid_l1'>l1</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
2052
2052
|
<span class='id identifier rubyid_l1'>l1</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='op'>=</span> <span class='id identifier rubyid_linePairRef'>linePairRef</span><span class='lparen'>(</span> <span class='id identifier rubyid_l1'>l1</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='rparen'>)</span>
|
@@ -2130,11 +2130,7 @@ copy-buffer.</p>
|
|
2130
2130
|
43
|
2131
2131
|
44
|
2132
2132
|
45
|
2133
|
-
46
|
2134
|
-
47
|
2135
|
-
48
|
2136
|
-
49
|
2137
|
-
50</pre>
|
2133
|
+
46</pre>
|
2138
2134
|
</td>
|
2139
2135
|
<td>
|
2140
2136
|
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 38</span>
|
@@ -2144,11 +2140,7 @@ copy-buffer.</p>
|
|
2144
2140
|
<span class='ivar'>@orgFile</span> <span class='op'>=</span> <span class='id identifier rubyid_orgFile'>orgFile</span>
|
2145
2141
|
<span class='ivar'>@newFile</span> <span class='op'>=</span> <span class='id identifier rubyid_newFile'>newFile</span>
|
2146
2142
|
|
2147
|
-
<span class='
|
2148
|
-
<span class='ivar'>@lines</span> <span class='op'>=</span> <span class='id identifier rubyid_cleanlines'>cleanlines</span><span class='lparen'>(</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span> <span class='ivar'>@orgFile</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
2149
|
-
<span class='kw'>else</span>
|
2150
|
-
<span class='ivar'>@lines</span> <span class='op'>=</span> <span class='id identifier rubyid_cleanlines'>cleanlines</span><span class='lparen'>(</span> <span class='ivar'>@orgFile</span> <span class='rparen'>)</span>
|
2151
|
-
<span class='kw'>end</span>
|
2143
|
+
<span class='ivar'>@lines</span> <span class='op'>=</span> <span class='id identifier rubyid_readclean'>readclean</span><span class='lparen'>(</span> <span class='ivar'>@orgFile</span> <span class='rparen'>)</span>
|
2152
2144
|
|
2153
2145
|
<span class='ivar'>@curline</span> <span class='op'>=</span> <span class='int'>0</span>
|
2154
2146
|
<span class='kw'>end</span></pre>
|
@@ -2241,18 +2233,18 @@ copy-buffer.</p>
|
|
2241
2233
|
<pre class="lines">
|
2242
2234
|
|
2243
2235
|
|
2236
|
+
458
|
2237
|
+
459
|
2238
|
+
460
|
2239
|
+
461
|
2244
2240
|
462
|
2245
2241
|
463
|
2246
2242
|
464
|
2247
2243
|
465
|
2248
|
-
466
|
2249
|
-
467
|
2250
|
-
468
|
2251
|
-
469
|
2252
|
-
470</pre>
|
2244
|
+
466</pre>
|
2253
2245
|
</td>
|
2254
2246
|
<td>
|
2255
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
2247
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 458</span>
|
2256
2248
|
|
2257
2249
|
<span class='kw'>def</span> <span class='id identifier rubyid_cut'>cut</span><span class='lparen'>(</span> <span class='id identifier rubyid_l1'>l1</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
2258
2250
|
<span class='id identifier rubyid_l1'>l1</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='op'>=</span> <span class='id identifier rubyid_linePairRef'>linePairRef</span><span class='lparen'>(</span> <span class='id identifier rubyid_l1'>l1</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='rparen'>)</span>
|
@@ -2312,13 +2304,13 @@ copy-buffer.</p>
|
|
2312
2304
|
<pre class="lines">
|
2313
2305
|
|
2314
2306
|
|
2315
|
-
|
2316
|
-
|
2317
|
-
|
2318
|
-
|
2307
|
+
435
|
2308
|
+
436
|
2309
|
+
437
|
2310
|
+
438</pre>
|
2319
2311
|
</td>
|
2320
2312
|
<td>
|
2321
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
2313
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 435</span>
|
2322
2314
|
|
2323
2315
|
<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span>
|
2324
2316
|
<span class='ivar'>@lines</span><span class='period'>.</span><span class='id identifier rubyid_delete_at'>delete_at</span><span class='lparen'>(</span> <span class='ivar'>@curline</span> <span class='rparen'>)</span>
|
@@ -2395,15 +2387,15 @@ copy-buffer.</p>
|
|
2395
2387
|
<pre class="lines">
|
2396
2388
|
|
2397
2389
|
|
2390
|
+
445
|
2391
|
+
446
|
2392
|
+
447
|
2393
|
+
448
|
2398
2394
|
449
|
2399
|
-
450
|
2400
|
-
451
|
2401
|
-
452
|
2402
|
-
453
|
2403
|
-
454</pre>
|
2395
|
+
450</pre>
|
2404
2396
|
</td>
|
2405
2397
|
<td>
|
2406
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
2398
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 445</span>
|
2407
2399
|
|
2408
2400
|
<span class='kw'>def</span> <span class='id identifier rubyid_deleteMany'>deleteMany</span><span class='lparen'>(</span> <span class='id identifier rubyid_cnt'>cnt</span> <span class='op'>=</span> <span class='id identifier rubyid_length'>length</span> <span class='rparen'>)</span>
|
2409
2401
|
<span class='id identifier rubyid_cnt'>cnt</span><span class='period'>.</span><span class='id identifier rubyid_times'>times</span> <span class='kw'>do</span>
|
@@ -2480,13 +2472,13 @@ copy-buffer.</p>
|
|
2480
2472
|
<pre class="lines">
|
2481
2473
|
|
2482
2474
|
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2475
|
+
54
|
2476
|
+
55
|
2477
|
+
56
|
2478
|
+
57</pre>
|
2487
2479
|
</td>
|
2488
2480
|
<td>
|
2489
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
2481
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 54</span>
|
2490
2482
|
|
2491
2483
|
<span class='kw'>def</span> <span class='id identifier rubyid_edit'>edit</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='id identifier rubyid_backup'>backup</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='rparen'>)</span>
|
2492
2484
|
<span class='ivar'>@backup</span> <span class='op'>=</span> <span class='id identifier rubyid_backup'>backup</span>
|
@@ -2560,15 +2552,15 @@ block completion.</p>
|
|
2560
2552
|
<pre class="lines">
|
2561
2553
|
|
2562
2554
|
|
2555
|
+
90
|
2556
|
+
91
|
2557
|
+
92
|
2558
|
+
93
|
2563
2559
|
94
|
2564
|
-
95
|
2565
|
-
96
|
2566
|
-
97
|
2567
|
-
98
|
2568
|
-
99</pre>
|
2560
|
+
95</pre>
|
2569
2561
|
</td>
|
2570
2562
|
<td>
|
2571
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
2563
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 90</span>
|
2572
2564
|
|
2573
2565
|
<span class='kw'>def</span> <span class='id identifier rubyid_excursion'>excursion</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
2574
2566
|
<span class='id identifier rubyid_startline'>startline</span> <span class='op'>=</span> <span class='ivar'>@curline</span>
|
@@ -2649,12 +2641,12 @@ block completion.</p>
|
|
2649
2641
|
<pre class="lines">
|
2650
2642
|
|
2651
2643
|
|
2652
|
-
|
2653
|
-
|
2654
|
-
|
2644
|
+
263
|
2645
|
+
264
|
2646
|
+
265</pre>
|
2655
2647
|
</td>
|
2656
2648
|
<td>
|
2657
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
2649
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 263</span>
|
2658
2650
|
|
2659
2651
|
<span class='kw'>def</span> <span class='id identifier rubyid_findBackward'>findBackward</span><span class='lparen'>(</span> <span class='id identifier rubyid_re'>re</span> <span class='rparen'>)</span>
|
2660
2652
|
<span class='id identifier rubyid_findCommon'>findCommon</span><span class='lparen'>(</span> <span class='id identifier rubyid_re'>re</span><span class='comma'>,</span> <span class='kw'>false</span> <span class='rparen'>)</span>
|
@@ -2732,12 +2724,12 @@ block completion.</p>
|
|
2732
2724
|
<pre class="lines">
|
2733
2725
|
|
2734
2726
|
|
2735
|
-
|
2736
|
-
|
2737
|
-
|
2727
|
+
272
|
2728
|
+
273
|
2729
|
+
274</pre>
|
2738
2730
|
</td>
|
2739
2731
|
<td>
|
2740
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
2732
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 272</span>
|
2741
2733
|
|
2742
2734
|
<span class='kw'>def</span> <span class='id identifier rubyid_findBackward?'>findBackward?</span><span class='lparen'>(</span> <span class='id identifier rubyid_re'>re</span> <span class='rparen'>)</span>
|
2743
2735
|
<span class='id identifier rubyid_findCommon'>findCommon</span><span class='lparen'>(</span> <span class='id identifier rubyid_re'>re</span><span class='comma'>,</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='kw'>false</span> <span class='rparen'>)</span>
|
@@ -2827,16 +2819,16 @@ block completion.</p>
|
|
2827
2819
|
<pre class="lines">
|
2828
2820
|
|
2829
2821
|
|
2822
|
+
287
|
2823
|
+
288
|
2824
|
+
289
|
2825
|
+
290
|
2830
2826
|
291
|
2831
2827
|
292
|
2832
|
-
293
|
2833
|
-
294
|
2834
|
-
295
|
2835
|
-
296
|
2836
|
-
297</pre>
|
2828
|
+
293</pre>
|
2837
2829
|
</td>
|
2838
2830
|
<td>
|
2839
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
2831
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 287</span>
|
2840
2832
|
|
2841
2833
|
<span class='kw'>def</span> <span class='id identifier rubyid_findBlock'>findBlock</span><span class='lparen'>(</span> <span class='id identifier rubyid_re1'>re1</span><span class='comma'>,</span> <span class='id identifier rubyid_re2'>re2</span> <span class='rparen'>)</span>
|
2842
2834
|
<span class='id identifier rubyid_findCommon'>findCommon</span><span class='lparen'>(</span> <span class='id identifier rubyid_re1'>re1</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span>
|
@@ -2918,12 +2910,12 @@ block completion.</p>
|
|
2918
2910
|
<pre class="lines">
|
2919
2911
|
|
2920
2912
|
|
2921
|
-
|
2922
|
-
|
2923
|
-
|
2913
|
+
237
|
2914
|
+
238
|
2915
|
+
239</pre>
|
2924
2916
|
</td>
|
2925
2917
|
<td>
|
2926
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
2918
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 237</span>
|
2927
2919
|
|
2928
2920
|
<span class='kw'>def</span> <span class='id identifier rubyid_findForward'>findForward</span><span class='lparen'>(</span> <span class='id identifier rubyid_re'>re</span> <span class='rparen'>)</span>
|
2929
2921
|
<span class='id identifier rubyid_findCommon'>findCommon</span><span class='lparen'>(</span> <span class='id identifier rubyid_re'>re</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span>
|
@@ -3001,12 +2993,12 @@ block completion.</p>
|
|
3001
2993
|
<pre class="lines">
|
3002
2994
|
|
3003
2995
|
|
3004
|
-
|
3005
|
-
|
3006
|
-
|
2996
|
+
246
|
2997
|
+
247
|
2998
|
+
248</pre>
|
3007
2999
|
</td>
|
3008
3000
|
<td>
|
3009
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3001
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 246</span>
|
3010
3002
|
|
3011
3003
|
<span class='kw'>def</span> <span class='id identifier rubyid_findForward?'>findForward?</span><span class='lparen'>(</span> <span class='id identifier rubyid_re'>re</span> <span class='rparen'>)</span>
|
3012
3004
|
<span class='id identifier rubyid_findCommon'>findCommon</span><span class='lparen'>(</span> <span class='id identifier rubyid_re'>re</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>false</span> <span class='rparen'>)</span>
|
@@ -3086,14 +3078,14 @@ block completion.</p>
|
|
3086
3078
|
<pre class="lines">
|
3087
3079
|
|
3088
3080
|
|
3089
|
-
|
3090
|
-
|
3091
|
-
|
3092
|
-
|
3093
|
-
|
3081
|
+
169
|
3082
|
+
170
|
3083
|
+
171
|
3084
|
+
172
|
3085
|
+
173</pre>
|
3094
3086
|
</td>
|
3095
3087
|
<td>
|
3096
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3088
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 169</span>
|
3097
3089
|
|
3098
3090
|
<span class='kw'>def</span> <span class='id identifier rubyid_forward'>forward</span><span class='lparen'>(</span> <span class='id identifier rubyid_count'>count</span> <span class='op'>=</span> <span class='int'>1</span> <span class='rparen'>)</span>
|
3099
3091
|
<span class='ivar'>@curline</span> <span class='op'>+=</span> <span class='id identifier rubyid_count'>count</span>
|
@@ -3171,12 +3163,12 @@ block completion.</p>
|
|
3171
3163
|
<pre class="lines">
|
3172
3164
|
|
3173
3165
|
|
3174
|
-
|
3175
|
-
|
3176
|
-
|
3166
|
+
306
|
3167
|
+
307
|
3168
|
+
308</pre>
|
3177
3169
|
</td>
|
3178
3170
|
<td>
|
3179
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3171
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 306</span>
|
3180
3172
|
|
3181
3173
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span> <span class='id identifier rubyid_line'>line</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
3182
3174
|
<span class='ivar'>@lines</span><span class='lbracket'>[</span> <span class='id identifier rubyid_lineRef'>lineRef</span><span class='lparen'>(</span> <span class='id identifier rubyid_line'>line</span> <span class='rparen'>)</span> <span class='rbracket'>]</span>
|
@@ -3270,13 +3262,13 @@ block completion.</p>
|
|
3270
3262
|
<pre class="lines">
|
3271
3263
|
|
3272
3264
|
|
3273
|
-
|
3274
|
-
|
3275
|
-
|
3276
|
-
|
3265
|
+
317
|
3266
|
+
318
|
3267
|
+
319
|
3268
|
+
320</pre>
|
3277
3269
|
</td>
|
3278
3270
|
<td>
|
3279
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3271
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 317</span>
|
3280
3272
|
|
3281
3273
|
<span class='kw'>def</span> <span class='id identifier rubyid_getMany'>getMany</span><span class='lparen'>(</span> <span class='id identifier rubyid_l1'>l1</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
3282
3274
|
<span class='id identifier rubyid_l1'>l1</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='op'>=</span> <span class='id identifier rubyid_linePairRef'>linePairRef</span><span class='lparen'>(</span> <span class='id identifier rubyid_l1'>l1</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='rparen'>)</span>
|
@@ -3357,14 +3349,14 @@ block completion.</p>
|
|
3357
3349
|
<pre class="lines">
|
3358
3350
|
|
3359
3351
|
|
3360
|
-
|
3361
|
-
|
3362
|
-
|
3363
|
-
|
3364
|
-
|
3352
|
+
102
|
3353
|
+
103
|
3354
|
+
104
|
3355
|
+
105
|
3356
|
+
106</pre>
|
3365
3357
|
</td>
|
3366
3358
|
<td>
|
3367
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3359
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 102</span>
|
3368
3360
|
|
3369
3361
|
<span class='kw'>def</span> <span class='id identifier rubyid_goto'>goto</span><span class='lparen'>(</span> <span class='id identifier rubyid_line'>line</span> <span class='op'>=</span> <span class='int'>0</span> <span class='rparen'>)</span>
|
3370
3362
|
<span class='ivar'>@curline</span> <span class='op'>=</span> <span class='id identifier rubyid_line'>line</span>
|
@@ -3442,14 +3434,14 @@ block completion.</p>
|
|
3442
3434
|
<pre class="lines">
|
3443
3435
|
|
3444
3436
|
|
3445
|
-
|
3446
|
-
|
3447
|
-
|
3448
|
-
|
3449
|
-
|
3437
|
+
113
|
3438
|
+
114
|
3439
|
+
115
|
3440
|
+
116
|
3441
|
+
117</pre>
|
3450
3442
|
</td>
|
3451
3443
|
<td>
|
3452
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3444
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 113</span>
|
3453
3445
|
|
3454
3446
|
<span class='kw'>def</span> <span class='id identifier rubyid_goto1'>goto1</span><span class='lparen'>(</span> <span class='id identifier rubyid_line'>line</span> <span class='op'>=</span> <span class='int'>1</span> <span class='rparen'>)</span>
|
3455
3447
|
<span class='ivar'>@curline</span> <span class='op'>=</span> <span class='id identifier rubyid_line'>line</span><span class='op'>-</span><span class='int'>1</span>
|
@@ -3509,13 +3501,13 @@ block completion.</p>
|
|
3509
3501
|
<pre class="lines">
|
3510
3502
|
|
3511
3503
|
|
3512
|
-
|
3513
|
-
|
3514
|
-
|
3515
|
-
|
3504
|
+
153
|
3505
|
+
154
|
3506
|
+
155
|
3507
|
+
156</pre>
|
3516
3508
|
</td>
|
3517
3509
|
<td>
|
3518
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3510
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 153</span>
|
3519
3511
|
|
3520
3512
|
<span class='kw'>def</span> <span class='id identifier rubyid_gotoEnd'>gotoEnd</span>
|
3521
3513
|
<span class='ivar'>@curline</span> <span class='op'>=</span> <span class='ivar'>@lines</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
@@ -3574,12 +3566,12 @@ block completion.</p>
|
|
3574
3566
|
<pre class="lines">
|
3575
3567
|
|
3576
3568
|
|
3577
|
-
|
3578
|
-
|
3579
|
-
|
3569
|
+
135
|
3570
|
+
136
|
3571
|
+
137</pre>
|
3580
3572
|
</td>
|
3581
3573
|
<td>
|
3582
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3574
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 135</span>
|
3583
3575
|
|
3584
3576
|
<span class='kw'>def</span> <span class='id identifier rubyid_gotoFirst'>gotoFirst</span>
|
3585
3577
|
<span class='id identifier rubyid_goto'>goto</span>
|
@@ -3657,13 +3649,13 @@ block completion.</p>
|
|
3657
3649
|
<pre class="lines">
|
3658
3650
|
|
3659
3651
|
|
3660
|
-
|
3661
|
-
|
3662
|
-
|
3663
|
-
|
3652
|
+
126
|
3653
|
+
127
|
3654
|
+
128
|
3655
|
+
129</pre>
|
3664
3656
|
</td>
|
3665
3657
|
<td>
|
3666
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3658
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 126</span>
|
3667
3659
|
|
3668
3660
|
<span class='kw'>def</span> <span class='id identifier rubyid_gotoForce'>gotoForce</span><span class='lparen'>(</span> <span class='id identifier rubyid_line'>line</span> <span class='op'>=</span> <span class='int'>0</span> <span class='rparen'>)</span>
|
3669
3661
|
<span class='ivar'>@curline</span> <span class='op'>=</span> <span class='id identifier rubyid_line'>line</span>
|
@@ -3722,13 +3714,13 @@ block completion.</p>
|
|
3722
3714
|
<pre class="lines">
|
3723
3715
|
|
3724
3716
|
|
3725
|
-
|
3726
|
-
|
3727
|
-
|
3728
|
-
|
3717
|
+
143
|
3718
|
+
144
|
3719
|
+
145
|
3720
|
+
146</pre>
|
3729
3721
|
</td>
|
3730
3722
|
<td>
|
3731
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3723
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 143</span>
|
3732
3724
|
|
3733
3725
|
<span class='kw'>def</span> <span class='id identifier rubyid_gotoLast'>gotoLast</span>
|
3734
3726
|
<span class='ivar'>@curline</span> <span class='op'>=</span> <span class='ivar'>@lines</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='op'>-</span><span class='int'>1</span>
|
@@ -3805,13 +3797,13 @@ block completion.</p>
|
|
3805
3797
|
<pre class="lines">
|
3806
3798
|
|
3807
3799
|
|
3808
|
-
|
3809
|
-
|
3810
|
-
|
3811
|
-
|
3800
|
+
386
|
3801
|
+
387
|
3802
|
+
388
|
3803
|
+
389</pre>
|
3812
3804
|
</td>
|
3813
3805
|
<td>
|
3814
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3806
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 386</span>
|
3815
3807
|
|
3816
3808
|
<span class='kw'>def</span> <span class='id identifier rubyid_insert'>insert</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
3817
3809
|
<span class='ivar'>@lines</span><span class='period'>.</span><span class='id identifier rubyid_insert'>insert</span><span class='lparen'>(</span> <span class='ivar'>@curline</span><span class='comma'>,</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
@@ -3886,20 +3878,20 @@ block completion.</p>
|
|
3886
3878
|
<pre class="lines">
|
3887
3879
|
|
3888
3880
|
|
3881
|
+
473
|
3882
|
+
474
|
3883
|
+
475
|
3884
|
+
476
|
3889
3885
|
477
|
3890
3886
|
478
|
3891
|
-
479
|
3892
|
-
480
|
3893
|
-
481
|
3894
|
-
482
|
3895
|
-
483</pre>
|
3887
|
+
479</pre>
|
3896
3888
|
</td>
|
3897
3889
|
<td>
|
3898
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3890
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 473</span>
|
3899
3891
|
|
3900
3892
|
<span class='kw'>def</span> <span class='id identifier rubyid_insertFile'>insertFile</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span> <span class='rparen'>)</span>
|
3901
3893
|
<span class='id identifier rubyid_excursion'>excursion</span> <span class='kw'>do</span>
|
3902
|
-
<span class='id identifier rubyid_lines'>lines</span> <span class='op'>=</span> <span class='id identifier
|
3894
|
+
<span class='id identifier rubyid_lines'>lines</span> <span class='op'>=</span> <span class='id identifier rubyid_readclean'>readclean</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span> <span class='rparen'>)</span>
|
3903
3895
|
<span class='id identifier rubyid_insertMany'>insertMany</span><span class='lparen'>(</span> <span class='id identifier rubyid_lines'>lines</span> <span class='rparen'>)</span>
|
3904
3896
|
<span class='kw'>end</span>
|
3905
3897
|
<span class='kw'>self</span>
|
@@ -3973,19 +3965,19 @@ block completion.</p>
|
|
3973
3965
|
<pre class="lines">
|
3974
3966
|
|
3975
3967
|
|
3968
|
+
396
|
3969
|
+
397
|
3970
|
+
398
|
3971
|
+
399
|
3976
3972
|
400
|
3977
3973
|
401
|
3978
3974
|
402
|
3979
3975
|
403
|
3980
3976
|
404
|
3981
|
-
405
|
3982
|
-
406
|
3983
|
-
407
|
3984
|
-
408
|
3985
|
-
409</pre>
|
3977
|
+
405</pre>
|
3986
3978
|
</td>
|
3987
3979
|
<td>
|
3988
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
3980
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 396</span>
|
3989
3981
|
|
3990
3982
|
<span class='kw'>def</span> <span class='id identifier rubyid_insertMany'>insertMany</span><span class='lparen'>(</span> <span class='id identifier rubyid_content'>content</span> <span class='rparen'>)</span>
|
3991
3983
|
<span class='id identifier rubyid_lines'>lines</span> <span class='op'>=</span> <span class='id identifier rubyid_manyLineContent'>manyLineContent</span><span class='lparen'>(</span> <span class='id identifier rubyid_content'>content</span> <span class='rparen'>)</span>
|
@@ -4028,12 +4020,12 @@ block completion.</p>
|
|
4028
4020
|
<pre class="lines">
|
4029
4021
|
|
4030
4022
|
|
4031
|
-
|
4032
|
-
|
4033
|
-
|
4023
|
+
227
|
4024
|
+
228
|
4025
|
+
229</pre>
|
4034
4026
|
</td>
|
4035
4027
|
<td>
|
4036
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4028
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 227</span>
|
4037
4029
|
|
4038
4030
|
<span class='kw'>def</span> <span class='id identifier rubyid_last'>last</span>
|
4039
4031
|
<span class='id identifier rubyid_length'>length</span><span class='op'>-</span><span class='int'>1</span>
|
@@ -4069,12 +4061,12 @@ block completion.</p>
|
|
4069
4061
|
<pre class="lines">
|
4070
4062
|
|
4071
4063
|
|
4072
|
-
|
4073
|
-
|
4074
|
-
|
4064
|
+
512
|
4065
|
+
513
|
4066
|
+
514</pre>
|
4075
4067
|
</td>
|
4076
4068
|
<td>
|
4077
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4069
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 512</span>
|
4078
4070
|
|
4079
4071
|
<span class='kw'>def</span> <span class='id identifier rubyid_length'>length</span>
|
4080
4072
|
<span class='ivar'>@lines</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
@@ -4110,12 +4102,12 @@ block completion.</p>
|
|
4110
4102
|
<pre class="lines">
|
4111
4103
|
|
4112
4104
|
|
4113
|
-
|
4114
|
-
|
4115
|
-
|
4105
|
+
214
|
4106
|
+
215
|
4107
|
+
216</pre>
|
4116
4108
|
</td>
|
4117
4109
|
<td>
|
4118
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4110
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 214</span>
|
4119
4111
|
|
4120
4112
|
<span class='kw'>def</span> <span class='id identifier rubyid_line'>line</span>
|
4121
4113
|
<span class='ivar'>@curline</span>
|
@@ -4152,12 +4144,12 @@ editor would show. First line is 1.</p>
|
|
4152
4144
|
<pre class="lines">
|
4153
4145
|
|
4154
4146
|
|
4155
|
-
|
4156
|
-
|
4157
|
-
|
4147
|
+
221
|
4148
|
+
222
|
4149
|
+
223</pre>
|
4158
4150
|
</td>
|
4159
4151
|
<td>
|
4160
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4152
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 221</span>
|
4161
4153
|
|
4162
4154
|
<span class='kw'>def</span> <span class='id identifier rubyid_line1'>line1</span>
|
4163
4155
|
<span class='ivar'>@curline</span> <span class='op'>+</span> <span class='int'>1</span>
|
@@ -4193,12 +4185,12 @@ editor would show. First line is 1.</p>
|
|
4193
4185
|
<pre class="lines">
|
4194
4186
|
|
4195
4187
|
|
4196
|
-
|
4197
|
-
|
4198
|
-
|
4188
|
+
201
|
4189
|
+
202
|
4190
|
+
203</pre>
|
4199
4191
|
</td>
|
4200
4192
|
<td>
|
4201
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4193
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 201</span>
|
4202
4194
|
|
4203
4195
|
<span class='kw'>def</span> <span class='kw'>next</span>
|
4204
4196
|
<span class='ivar'>@curline</span><span class='op'>+</span><span class='int'>1</span>
|
@@ -4254,12 +4246,12 @@ editor would show. First line is 1.</p>
|
|
4254
4246
|
<pre class="lines">
|
4255
4247
|
|
4256
4248
|
|
4257
|
-
|
4258
|
-
|
4259
|
-
|
4249
|
+
63
|
4250
|
+
64
|
4251
|
+
65</pre>
|
4260
4252
|
</td>
|
4261
4253
|
<td>
|
4262
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4254
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 63</span>
|
4263
4255
|
|
4264
4256
|
<span class='kw'>def</span> <span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span> <span class='rparen'>)</span>
|
4265
4257
|
<span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
@@ -4317,18 +4309,18 @@ editor would show. First line is 1.</p>
|
|
4317
4309
|
<pre class="lines">
|
4318
4310
|
|
4319
4311
|
|
4312
|
+
341
|
4313
|
+
342
|
4314
|
+
343
|
4315
|
+
344
|
4320
4316
|
345
|
4321
4317
|
346
|
4322
4318
|
347
|
4323
4319
|
348
|
4324
|
-
349
|
4325
|
-
350
|
4326
|
-
351
|
4327
|
-
352
|
4328
|
-
353</pre>
|
4320
|
+
349</pre>
|
4329
4321
|
</td>
|
4330
4322
|
<td>
|
4331
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4323
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 341</span>
|
4332
4324
|
|
4333
4325
|
<span class='kw'>def</span> <span class='id identifier rubyid_paste'>paste</span><span class='lparen'>(</span> <span class='id identifier rubyid_err'>err</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='rparen'>)</span>
|
4334
4326
|
<span class='kw'>if</span> <span class='id identifier rubyid_err'>err</span>
|
@@ -4370,12 +4362,12 @@ editor would show. First line is 1.</p>
|
|
4370
4362
|
<pre class="lines">
|
4371
4363
|
|
4372
4364
|
|
4373
|
-
|
4374
|
-
|
4375
|
-
|
4365
|
+
208
|
4366
|
+
209
|
4367
|
+
210</pre>
|
4376
4368
|
</td>
|
4377
4369
|
<td>
|
4378
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4370
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 208</span>
|
4379
4371
|
|
4380
4372
|
<span class='kw'>def</span> <span class='id identifier rubyid_prev'>prev</span>
|
4381
4373
|
<span class='ivar'>@curline</span><span class='op'>-</span><span class='int'>1</span>
|
@@ -4433,15 +4425,15 @@ editor would show. First line is 1.</p>
|
|
4433
4425
|
<pre class="lines">
|
4434
4426
|
|
4435
4427
|
|
4428
|
+
585
|
4429
|
+
586
|
4430
|
+
587
|
4431
|
+
588
|
4436
4432
|
589
|
4437
|
-
590
|
4438
|
-
591
|
4439
|
-
592
|
4440
|
-
593
|
4441
|
-
594</pre>
|
4433
|
+
590</pre>
|
4442
4434
|
</td>
|
4443
4435
|
<td>
|
4444
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4436
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 585</span>
|
4445
4437
|
|
4446
4438
|
<span class='kw'>def</span> <span class='id identifier rubyid_print'>print</span><span class='lparen'>(</span> <span class='id identifier rubyid_fh'>fh</span> <span class='op'>=</span> <span class='const'>STDOUT</span> <span class='rparen'>)</span>
|
4447
4439
|
<span class='ivar'>@lines</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_l'>l</span><span class='op'>|</span>
|
@@ -4531,13 +4523,13 @@ for the block.</p>
|
|
4531
4523
|
<pre class="lines">
|
4532
4524
|
|
4533
4525
|
|
4534
|
-
|
4535
|
-
|
4536
|
-
|
4537
|
-
|
4526
|
+
373
|
4527
|
+
374
|
4528
|
+
375
|
4529
|
+
376</pre>
|
4538
4530
|
</td>
|
4539
4531
|
<td>
|
4540
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4532
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 373</span>
|
4541
4533
|
|
4542
4534
|
<span class='kw'>def</span> <span class='id identifier rubyid_replace'>replace</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_action'>action</span> <span class='rparen'>)</span>
|
4543
4535
|
<span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span> <span class='kw'>yield</span><span class='lparen'>(</span> <span class='id identifier rubyid_get'>get</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
@@ -4628,15 +4620,15 @@ for the block.</p>
|
|
4628
4620
|
<pre class="lines">
|
4629
4621
|
|
4630
4622
|
|
4623
|
+
487
|
4624
|
+
488
|
4625
|
+
489
|
4626
|
+
490
|
4631
4627
|
491
|
4632
|
-
492
|
4633
|
-
493
|
4634
|
-
494
|
4635
|
-
495
|
4636
|
-
496</pre>
|
4628
|
+
492</pre>
|
4637
4629
|
</td>
|
4638
4630
|
<td>
|
4639
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4631
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 487</span>
|
4640
4632
|
|
4641
4633
|
<span class='kw'>def</span> <span class='id identifier rubyid_replaceAll'>replaceAll</span><span class='lparen'>(</span> <span class='id identifier rubyid_re'>re</span><span class='comma'>,</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
4642
4634
|
<span class='ivar'>@lines</span><span class='period'>.</span><span class='id identifier rubyid_each_index'>each_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_idx'>idx</span><span class='op'>|</span>
|
@@ -4765,16 +4757,16 @@ for the block.</p>
|
|
4765
4757
|
<pre class="lines">
|
4766
4758
|
|
4767
4759
|
|
4760
|
+
502
|
4761
|
+
503
|
4762
|
+
504
|
4763
|
+
505
|
4768
4764
|
506
|
4769
4765
|
507
|
4770
|
-
508
|
4771
|
-
509
|
4772
|
-
510
|
4773
|
-
511
|
4774
|
-
512</pre>
|
4766
|
+
508</pre>
|
4775
4767
|
</td>
|
4776
4768
|
<td>
|
4777
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4769
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 502</span>
|
4778
4770
|
|
4779
4771
|
<span class='kw'>def</span> <span class='id identifier rubyid_replaceWithin'>replaceWithin</span><span class='lparen'>(</span> <span class='id identifier rubyid_re'>re</span><span class='comma'>,</span> <span class='id identifier rubyid_str'>str</span><span class='comma'>,</span> <span class='id identifier rubyid_l1'>l1</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
4780
4772
|
<span class='id identifier rubyid_l1'>l1</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='op'>=</span> <span class='id identifier rubyid_linePairRef'>linePairRef</span><span class='lparen'>(</span> <span class='id identifier rubyid_l1'>l1</span><span class='comma'>,</span> <span class='id identifier rubyid_l2'>l2</span> <span class='rparen'>)</span>
|
@@ -4850,6 +4842,10 @@ closing.</p>
|
|
4850
4842
|
<pre class="lines">
|
4851
4843
|
|
4852
4844
|
|
4845
|
+
552
|
4846
|
+
553
|
4847
|
+
554
|
4848
|
+
555
|
4853
4849
|
556
|
4854
4850
|
557
|
4855
4851
|
558
|
@@ -4873,14 +4869,10 @@ closing.</p>
|
|
4873
4869
|
576
|
4874
4870
|
577
|
4875
4871
|
578
|
4876
|
-
579
|
4877
|
-
580
|
4878
|
-
581
|
4879
|
-
582
|
4880
|
-
583</pre>
|
4872
|
+
579</pre>
|
4881
4873
|
</td>
|
4882
4874
|
<td>
|
4883
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4875
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 552</span>
|
4884
4876
|
|
4885
4877
|
<span class='kw'>def</span> <span class='id identifier rubyid_save'>save</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='ivar'>@newFile</span> <span class='rparen'>)</span>
|
4886
4878
|
|
@@ -4997,13 +4989,13 @@ closing.</p>
|
|
4997
4989
|
<pre class="lines">
|
4998
4990
|
|
4999
4991
|
|
5000
|
-
|
5001
|
-
|
5002
|
-
|
5003
|
-
|
4992
|
+
357
|
4993
|
+
358
|
4994
|
+
359
|
4995
|
+
360</pre>
|
5004
4996
|
</td>
|
5005
4997
|
<td>
|
5006
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
4998
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 357</span>
|
5007
4999
|
|
5008
5000
|
<span class='kw'>def</span> <span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span><span class='comma'>,</span> <span class='id identifier rubyid_line'>line</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
5009
5001
|
<span class='ivar'>@lines</span><span class='lbracket'>[</span> <span class='id identifier rubyid_lineRef'>lineRef</span><span class='lparen'>(</span> <span class='id identifier rubyid_line'>line</span> <span class='rparen'>)</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_str'>str</span>
|
@@ -5058,12 +5050,12 @@ closing.</p>
|
|
5058
5050
|
<pre class="lines">
|
5059
5051
|
|
5060
5052
|
|
5061
|
-
|
5062
|
-
|
5063
|
-
|
5053
|
+
80
|
5054
|
+
81
|
5055
|
+
82</pre>
|
5064
5056
|
</td>
|
5065
5057
|
<td>
|
5066
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
5058
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 80</span>
|
5067
5059
|
|
5068
5060
|
<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
5069
5061
|
<span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span>
|
@@ -5119,13 +5111,13 @@ closing.</p>
|
|
5119
5111
|
<pre class="lines">
|
5120
5112
|
|
5121
5113
|
|
5122
|
-
|
5123
|
-
|
5124
|
-
|
5125
|
-
|
5114
|
+
71
|
5115
|
+
72
|
5116
|
+
73
|
5117
|
+
74</pre>
|
5126
5118
|
</td>
|
5127
5119
|
<td>
|
5128
|
-
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line
|
5120
|
+
<pre class="code"><span class="info file"># File 'lib/rupat.rb', line 71</span>
|
5129
5121
|
|
5130
5122
|
<span class='kw'>def</span> <span class='id identifier rubyid_use'>use</span><span class='lparen'>(</span> <span class='id identifier rubyid_lines'>lines</span> <span class='rparen'>)</span>
|
5131
5123
|
<span class='ivar'>@lines</span> <span class='op'>=</span> <span class='id identifier rubyid_lines'>lines</span>
|
@@ -5141,7 +5133,7 @@ closing.</p>
|
|
5141
5133
|
</div>
|
5142
5134
|
|
5143
5135
|
<div id="footer">
|
5144
|
-
Generated on
|
5136
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
5145
5137
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
5146
5138
|
0.8.7.6 (ruby-2.1.2).
|
5147
5139
|
</div>
|
data/doc/_index.html
CHANGED
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.8.7.6 (ruby-2.1.2).
|
155
155
|
</div>
|
data/doc/file.CHANGELOG.html
CHANGED
@@ -63,14 +63,20 @@
|
|
63
63
|
|
64
64
|
<div id="content"><div id='filecontents'>
|
65
65
|
<h1 id="label-Version+history">Version history</h1>
|
66
|
-
<dl class="rdoc-list label-list"><dt>0.0.
|
66
|
+
<dl class="rdoc-list label-list"><dt>0.0.3
|
67
|
+
<dd>
|
68
|
+
<p>Gem content fix. v0.0.2 had incorrect content!</p>
|
69
|
+
</dd><dt>0.0.2
|
70
|
+
<dd>
|
71
|
+
<p>Fix for closing original file's IO after file access.</p>
|
72
|
+
</dd><dt>0.0.1
|
67
73
|
<dd>
|
68
74
|
<p>Initial version.</p>
|
69
75
|
</dd></dl>
|
70
76
|
</div></div>
|
71
77
|
|
72
78
|
<div id="footer">
|
73
|
-
Generated on
|
79
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
74
80
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
75
81
|
0.8.7.6 (ruby-2.1.2).
|
76
82
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -80,7 +80,7 @@ files.</p>
|
|
80
80
|
</div></div>
|
81
81
|
|
82
82
|
<div id="footer">
|
83
|
-
Generated on
|
83
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
84
84
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
85
85
|
0.8.7.6 (ruby-2.1.2).
|
86
86
|
</div>
|
data/doc/index.html
CHANGED
@@ -80,7 +80,7 @@ files.</p>
|
|
80
80
|
</div></div>
|
81
81
|
|
82
82
|
<div id="footer">
|
83
|
-
Generated on
|
83
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
84
84
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
85
85
|
0.8.7.6 (ruby-2.1.2).
|
86
86
|
</div>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Thu Sep 17 09:54:49 2015 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.8.7.6 (ruby-2.1.2).
|
111
111
|
</div>
|
data/lib/rupat.rb
CHANGED
@@ -40,11 +40,7 @@ module RupatMod
|
|
40
40
|
@orgFile = orgFile
|
41
41
|
@newFile = newFile
|
42
42
|
|
43
|
-
|
44
|
-
@lines = cleanlines( File.open( @orgFile ) )
|
45
|
-
else
|
46
|
-
@lines = cleanlines( @orgFile )
|
47
|
-
end
|
43
|
+
@lines = readclean( @orgFile )
|
48
44
|
|
49
45
|
@curline = 0
|
50
46
|
end
|
@@ -476,7 +472,7 @@ module RupatMod
|
|
476
472
|
# @return [Object] Self.
|
477
473
|
def insertFile( file )
|
478
474
|
excursion do
|
479
|
-
lines =
|
475
|
+
lines = readclean( file )
|
480
476
|
insertMany( lines )
|
481
477
|
end
|
482
478
|
self
|
@@ -599,13 +595,16 @@ module RupatMod
|
|
599
595
|
|
600
596
|
# RupatMod Internal methods:
|
601
597
|
|
602
|
-
#
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
598
|
+
# Read file/IO and remove newline from each line.
|
599
|
+
# Return clean line list.
|
600
|
+
def readclean( file )
|
601
|
+
if file.class == String
|
602
|
+
return File.readlines( file ).map{|line| line.chomp}
|
603
|
+
elsif file.class == File
|
604
|
+
return file.readlines.map{|line| line.chomp}
|
605
|
+
else
|
606
|
+
raise RupatError, "Invalid file object reference!"
|
607
607
|
end
|
608
|
-
lines
|
609
608
|
end
|
610
609
|
|
611
610
|
|
@@ -792,7 +791,8 @@ end
|
|
792
791
|
# The basic flow is:
|
793
792
|
# [open file] Source file can be opened in multiple editing modes.
|
794
793
|
# [line manipulation] Search/jump to lines, extract and edit content
|
795
|
-
#
|
794
|
+
# (See: {RupatMod} for all access/editing
|
795
|
+
# methods).
|
796
796
|
# [save file] Save the editing results to the source file or to a
|
797
797
|
# newly created file.
|
798
798
|
#
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rupat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tero Isannainen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: como
|