tiny_conveyor 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +11 -1
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/doc/TinyConveyor/Belt.html +90 -34
- data/doc/TinyConveyor/Parcel.html +4 -4
- data/doc/TinyConveyor.html +10 -556
- data/doc/_index.html +5 -5
- data/doc/file.README.html +7 -6
- data/doc/frames.html +1 -1
- data/doc/index.html +7 -6
- data/doc/method_list.html +6 -46
- data/doc/top-level-namespace.html +4 -4
- data/lib/tiny_conveyor.rb +0 -2
- data/tiny_conveyor.gemspec +4 -5
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d629c53ed61eb70f8707fd0426a3a116f624d13c4a34f635032cdfe4e0f1a53
|
4
|
+
data.tar.gz: 9b332c0da0859fa192bcb53e4bc214d9a6f1dd63601627305df53fd84b79a40d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 273870dcffdb820e0dc9a84a1a9e7b477a6d510c795ee311701ead48c1bd5c4d1c14c67e7d63074ae4817f176833d522617f98077f8053a456fa449c151e1595
|
7
|
+
data.tar.gz: 526a384022a93e65ad39683ed24f61ac67ae05a208cd82a072d2a50d30b36bfce8844880bc9dd937dc2a51de24bf8a8121d7a0719b3417072223062b7b821dbb
|
data/CHANGELOG
CHANGED
@@ -4,7 +4,17 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [
|
7
|
+
## [0.2.0] - 2023-08-09
|
8
|
+
### Changed
|
9
|
+
- Change concurrent ruby for async in the README file
|
10
|
+
- Change concurrent ruby for async in project description
|
11
|
+
- Repository URL
|
12
|
+
- Use Async v2.6
|
13
|
+
- Require ruby v3.1.1
|
14
|
+
|
15
|
+
### Removed
|
16
|
+
- Constant VERSION in main file
|
17
|
+
|
8
18
|
## [0.1.0] - 2021-12-17
|
9
19
|
### Changed
|
10
20
|
- Project url
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Tiny Conveyor
|
2
|
-
This gem is a tiny wrapper for [
|
2
|
+
This gem is a tiny wrapper for [aync](https://github.com/socketry/async) that can create and execute a queue of tasks, each of the task run in a separated thread.
|
3
3
|
|
4
4
|
## Setup
|
5
5
|
|
data/doc/TinyConveyor/Belt.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: TinyConveyor::Belt
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -87,11 +87,6 @@
|
|
87
87
|
|
88
88
|
|
89
89
|
|
90
|
-
<dl>
|
91
|
-
<dt>Includes:</dt>
|
92
|
-
<dd>Concurrent::Async</dd>
|
93
|
-
</dl>
|
94
|
-
|
95
90
|
|
96
91
|
|
97
92
|
|
@@ -211,6 +206,28 @@
|
|
211
206
|
<p>Newly created belt.</p>
|
212
207
|
</div></span>
|
213
208
|
|
209
|
+
</li>
|
210
|
+
|
211
|
+
|
212
|
+
<li class="public ">
|
213
|
+
<span class="summary_signature">
|
214
|
+
|
215
|
+
<a href="#remove_parcel-instance_method" title="#remove_parcel (instance method)">#<strong>remove_parcel</strong>(parcel) ⇒ Object </a>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
</span>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
230
|
+
|
214
231
|
</li>
|
215
232
|
|
216
233
|
|
@@ -309,8 +326,7 @@
|
|
309
326
|
</ul>
|
310
327
|
|
311
328
|
|
312
|
-
|
313
|
-
<div id="constructor_details" class="method_details_list">
|
329
|
+
<div id="constructor_details" class="method_details_list">
|
314
330
|
<h2>Constructor Details</h2>
|
315
331
|
|
316
332
|
<div class="method_details first">
|
@@ -339,15 +355,15 @@
|
|
339
355
|
<pre class="lines">
|
340
356
|
|
341
357
|
|
358
|
+
10
|
342
359
|
11
|
343
360
|
12
|
344
361
|
13
|
345
362
|
14
|
346
|
-
15
|
347
|
-
16</pre>
|
363
|
+
15</pre>
|
348
364
|
</td>
|
349
365
|
<td>
|
350
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line
|
366
|
+
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line 10</span>
|
351
367
|
|
352
368
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
353
369
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
@@ -393,12 +409,12 @@
|
|
393
409
|
<pre class="lines">
|
394
410
|
|
395
411
|
|
412
|
+
7
|
396
413
|
8
|
397
|
-
9
|
398
|
-
10</pre>
|
414
|
+
9</pre>
|
399
415
|
</td>
|
400
416
|
<td>
|
401
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line
|
417
|
+
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line 7</span>
|
402
418
|
|
403
419
|
<span class='kw'>def</span> <span class='id identifier rubyid_parcels'>parcels</span>
|
404
420
|
<span class='ivar'>@parcels</span>
|
@@ -511,13 +527,13 @@
|
|
511
527
|
<pre class="lines">
|
512
528
|
|
513
529
|
|
530
|
+
21
|
514
531
|
22
|
515
532
|
23
|
516
|
-
24
|
517
|
-
25</pre>
|
533
|
+
24</pre>
|
518
534
|
</td>
|
519
535
|
<td>
|
520
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line
|
536
|
+
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line 21</span>
|
521
537
|
|
522
538
|
<span class='kw'>def</span> <span class='id identifier rubyid_add_parcel'>add_parcel</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_description'>description</span><span class='comma'>,</span> <span class='id identifier rubyid_task'>task</span><span class='rparen'>)</span>
|
523
539
|
<span class='id identifier rubyid_parcel'>parcel</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Parcel.html" title="TinyConveyor::Parcel (class)">Parcel</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../TinyConveyor.html#new-class_method" title="TinyConveyor.new (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_description'>description</span><span class='comma'>,</span> <span class='id identifier rubyid_task'>task</span><span class='rparen'>)</span>
|
@@ -526,6 +542,38 @@
|
|
526
542
|
</td>
|
527
543
|
</tr>
|
528
544
|
</table>
|
545
|
+
</div>
|
546
|
+
|
547
|
+
<div class="method_details ">
|
548
|
+
<h3 class="signature " id="remove_parcel-instance_method">
|
549
|
+
|
550
|
+
#<strong>remove_parcel</strong>(parcel) ⇒ <tt>Object</tt>
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
</h3><table class="source_code">
|
557
|
+
<tr>
|
558
|
+
<td>
|
559
|
+
<pre class="lines">
|
560
|
+
|
561
|
+
|
562
|
+
52
|
563
|
+
53
|
564
|
+
54
|
565
|
+
55</pre>
|
566
|
+
</td>
|
567
|
+
<td>
|
568
|
+
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line 52</span>
|
569
|
+
|
570
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_remove_parcel'>remove_parcel</span><span class='lparen'>(</span><span class='id identifier rubyid_parcel'>parcel</span><span class='rparen'>)</span>
|
571
|
+
<span class='id identifier rubyid_new_parcels_array'>new_parcels_array</span> <span class='op'>=</span> <span class='ivar'>@parcels</span><span class='period'>.</span><span class='id identifier rubyid_reject'>reject</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span> <span class='id identifier rubyid_p'>p</span> <span class='op'>==</span> <span class='id identifier rubyid_parcel'>parcel</span> <span class='rbrace'>}</span>
|
572
|
+
<span class='ivar'>@parcels</span> <span class='op'>=</span> <span class='id identifier rubyid_new_parcels_array'>new_parcels_array</span>
|
573
|
+
<span class='kw'>end</span></pre>
|
574
|
+
</td>
|
575
|
+
</tr>
|
576
|
+
</table>
|
529
577
|
</div>
|
530
578
|
|
531
579
|
<div class="method_details ">
|
@@ -592,15 +640,15 @@
|
|
592
640
|
<pre class="lines">
|
593
641
|
|
594
642
|
|
643
|
+
28
|
595
644
|
29
|
596
645
|
30
|
597
646
|
31
|
598
647
|
32
|
599
|
-
33
|
600
|
-
34</pre>
|
648
|
+
33</pre>
|
601
649
|
</td>
|
602
650
|
<td>
|
603
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line
|
651
|
+
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line 28</span>
|
604
652
|
|
605
653
|
<span class='kw'>def</span> <span class='id identifier rubyid_remove_parcel_by_uuid'>remove_parcel_by_uuid</span><span class='lparen'>(</span><span class='id identifier rubyid_uuid'>uuid</span><span class='rparen'>)</span>
|
606
654
|
<span class='id identifier rubyid_parcel'>parcel</span> <span class='op'>=</span> <span class='ivar'>@parcels</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span> <span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_uuid'>uuid</span> <span class='op'>==</span> <span class='id identifier rubyid_uuid'>uuid</span> <span class='rbrace'>}</span>
|
@@ -628,12 +676,12 @@
|
|
628
676
|
<pre class="lines">
|
629
677
|
|
630
678
|
|
631
|
-
|
632
|
-
|
633
|
-
|
679
|
+
43
|
680
|
+
44
|
681
|
+
45</pre>
|
634
682
|
</td>
|
635
683
|
<td>
|
636
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line
|
684
|
+
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line 43</span>
|
637
685
|
|
638
686
|
<span class='kw'>def</span> <span class='id identifier rubyid_run_belt_entirely'>run_belt_entirely</span>
|
639
687
|
<span class='id identifier rubyid_execute'>execute</span> <span class='kw'>until</span> <span class='ivar'>@parcels</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
@@ -687,12 +735,12 @@
|
|
687
735
|
<pre class="lines">
|
688
736
|
|
689
737
|
|
690
|
-
|
691
|
-
|
692
|
-
|
738
|
+
48
|
739
|
+
49
|
740
|
+
50</pre>
|
693
741
|
</td>
|
694
742
|
<td>
|
695
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line
|
743
|
+
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line 48</span>
|
696
744
|
|
697
745
|
<span class='kw'>def</span> <span class='id identifier rubyid_running?'>running?</span>
|
698
746
|
<span class='ivar'>@state</span> <span class='op'>==</span> <span class='symbol'>:running</span>
|
@@ -717,15 +765,23 @@
|
|
717
765
|
<pre class="lines">
|
718
766
|
|
719
767
|
|
768
|
+
35
|
720
769
|
36
|
721
770
|
37
|
722
|
-
38
|
771
|
+
38
|
772
|
+
39
|
773
|
+
40
|
774
|
+
41</pre>
|
723
775
|
</td>
|
724
776
|
<td>
|
725
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line
|
777
|
+
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor/belt.rb', line 35</span>
|
726
778
|
|
727
779
|
<span class='kw'>def</span> <span class='id identifier rubyid_start_belt'>start_belt</span>
|
728
|
-
<span class='
|
780
|
+
<span class='const'>Async</span><span class='op'>::</span><span class='const'>Reactor</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_task'>task</span><span class='op'>|</span>
|
781
|
+
<span class='id identifier rubyid_task'>task</span><span class='period'>.</span><span class='id identifier rubyid_async'>async</span> <span class='kw'>do</span>
|
782
|
+
<span class='id identifier rubyid_run_belt_entirely'>run_belt_entirely</span>
|
783
|
+
<span class='kw'>end</span>
|
784
|
+
<span class='kw'>end</span>
|
729
785
|
<span class='kw'>end</span></pre>
|
730
786
|
</td>
|
731
787
|
</tr>
|
@@ -737,9 +793,9 @@
|
|
737
793
|
</div>
|
738
794
|
|
739
795
|
<div id="footer">
|
740
|
-
Generated on
|
741
|
-
<a href="
|
742
|
-
0.9.
|
796
|
+
Generated on Sat Sep 9 22:08:12 2023 by
|
797
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
798
|
+
0.9.34 (ruby-3.1.2).
|
743
799
|
</div>
|
744
800
|
|
745
801
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: TinyConveyor::Parcel
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -705,9 +705,9 @@
|
|
705
705
|
</div>
|
706
706
|
|
707
707
|
<div id="footer">
|
708
|
-
Generated on
|
709
|
-
<a href="
|
710
|
-
0.9.
|
708
|
+
Generated on Sat Sep 9 22:08:12 2023 by
|
709
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
710
|
+
0.9.34 (ruby-3.1.2).
|
711
711
|
</div>
|
712
712
|
|
713
713
|
</div>
|
data/doc/TinyConveyor.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: TinyConveyor
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -107,22 +107,6 @@
|
|
107
107
|
|
108
108
|
</p>
|
109
109
|
|
110
|
-
|
111
|
-
<h2>
|
112
|
-
Constant Summary
|
113
|
-
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
114
|
-
</h2>
|
115
|
-
|
116
|
-
<dl class="constants">
|
117
|
-
|
118
|
-
<dt id="VERSION-constant" class="">VERSION =
|
119
|
-
|
120
|
-
</dt>
|
121
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.0.1</span><span class='tstring_end'>'</span></span></pre></dd>
|
122
|
-
|
123
|
-
</dl>
|
124
|
-
|
125
|
-
|
126
110
|
|
127
111
|
|
128
112
|
|
@@ -140,52 +124,6 @@
|
|
140
124
|
<li class="public ">
|
141
125
|
<span class="summary_signature">
|
142
126
|
|
143
|
-
<a href="#add_parcel-class_method" title="add_parcel (class method)">.<strong>add_parcel</strong>(name, description, action) ⇒ Array<Parcel> </a>
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
</span>
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
<span class="summary_desc"><div class='inline'>
|
158
|
-
<p>Pending parcels.</p>
|
159
|
-
</div></span>
|
160
|
-
|
161
|
-
</li>
|
162
|
-
|
163
|
-
|
164
|
-
<li class="public ">
|
165
|
-
<span class="summary_signature">
|
166
|
-
|
167
|
-
<a href="#belt-class_method" title="belt (class method)">.<strong>belt</strong> ⇒ Belt </a>
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
</span>
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
182
|
-
|
183
|
-
</li>
|
184
|
-
|
185
|
-
|
186
|
-
<li class="public ">
|
187
|
-
<span class="summary_signature">
|
188
|
-
|
189
127
|
<a href="#new-class_method" title="new (class method)">.<strong>new</strong> ⇒ Belt </a>
|
190
128
|
|
191
129
|
|
@@ -204,100 +142,6 @@
|
|
204
142
|
<p>Newly created belt.</p>
|
205
143
|
</div></span>
|
206
144
|
|
207
|
-
</li>
|
208
|
-
|
209
|
-
|
210
|
-
<li class="public ">
|
211
|
-
<span class="summary_signature">
|
212
|
-
|
213
|
-
<a href="#parcels-class_method" title="parcels (class method)">.<strong>parcels</strong> ⇒ Array<Parcel> </a>
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
</span>
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
<span class="summary_desc"><div class='inline'>
|
228
|
-
<p>Pending parcels.</p>
|
229
|
-
</div></span>
|
230
|
-
|
231
|
-
</li>
|
232
|
-
|
233
|
-
|
234
|
-
<li class="public ">
|
235
|
-
<span class="summary_signature">
|
236
|
-
|
237
|
-
<a href="#remove_parcel-class_method" title="remove_parcel (class method)">.<strong>remove_parcel</strong>(uuid) ⇒ Array<Parcel> </a>
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
</span>
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
<span class="summary_desc"><div class='inline'>
|
252
|
-
<p>Pending parcels.</p>
|
253
|
-
</div></span>
|
254
|
-
|
255
|
-
</li>
|
256
|
-
|
257
|
-
|
258
|
-
<li class="public ">
|
259
|
-
<span class="summary_signature">
|
260
|
-
|
261
|
-
<a href="#running%3F-class_method" title="running? (class method)">.<strong>running?</strong> ⇒ boolean </a>
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
</span>
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
<span class="summary_desc"><div class='inline'>
|
276
|
-
<p>True if the belt is running, false otherwhise.</p>
|
277
|
-
</div></span>
|
278
|
-
|
279
|
-
</li>
|
280
|
-
|
281
|
-
|
282
|
-
<li class="public ">
|
283
|
-
<span class="summary_signature">
|
284
|
-
|
285
|
-
<a href="#start_belt-class_method" title="start_belt (class method)">.<strong>start_belt</strong> ⇒ Object </a>
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
</span>
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
300
|
-
|
301
145
|
</li>
|
302
146
|
|
303
147
|
|
@@ -311,170 +155,7 @@
|
|
311
155
|
|
312
156
|
|
313
157
|
<div class="method_details first">
|
314
|
-
<h3 class="signature first" id="
|
315
|
-
|
316
|
-
.<strong>add_parcel</strong>(name, description, action) ⇒ <tt>Array<<span class='object_link'><a href="TinyConveyor/Parcel.html" title="TinyConveyor::Parcel (class)">Parcel</a></span>></tt>
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
</h3><div class="docstring">
|
323
|
-
<div class="discussion">
|
324
|
-
|
325
|
-
<p>Returns pending parcels.</p>
|
326
|
-
|
327
|
-
|
328
|
-
</div>
|
329
|
-
</div>
|
330
|
-
<div class="tags">
|
331
|
-
<p class="tag_title">Parameters:</p>
|
332
|
-
<ul class="param">
|
333
|
-
|
334
|
-
<li>
|
335
|
-
|
336
|
-
<span class='name'>name</span>
|
337
|
-
|
338
|
-
|
339
|
-
<span class='type'>(<tt>string</tt>)</span>
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
—
|
344
|
-
<div class='inline'>
|
345
|
-
<p>name of the task</p>
|
346
|
-
</div>
|
347
|
-
|
348
|
-
</li>
|
349
|
-
|
350
|
-
<li>
|
351
|
-
|
352
|
-
<span class='name'>description</span>
|
353
|
-
|
354
|
-
|
355
|
-
<span class='type'>(<tt>string</tt>)</span>
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
—
|
360
|
-
<div class='inline'>
|
361
|
-
<p>small description of the task</p>
|
362
|
-
</div>
|
363
|
-
|
364
|
-
</li>
|
365
|
-
|
366
|
-
<li>
|
367
|
-
|
368
|
-
<span class='name'>action</span>
|
369
|
-
|
370
|
-
|
371
|
-
<span class='type'>(<tt>Proc</tt>)</span>
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
—
|
376
|
-
<div class='inline'>
|
377
|
-
<p>action to run in separate thread</p>
|
378
|
-
</div>
|
379
|
-
|
380
|
-
</li>
|
381
|
-
|
382
|
-
</ul>
|
383
|
-
|
384
|
-
<p class="tag_title">Returns:</p>
|
385
|
-
<ul class="return">
|
386
|
-
|
387
|
-
<li>
|
388
|
-
|
389
|
-
|
390
|
-
<span class='type'>(<tt>Array<<span class='object_link'><a href="TinyConveyor/Parcel.html" title="TinyConveyor::Parcel (class)">Parcel</a></span>></tt>)</span>
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
—
|
395
|
-
<div class='inline'>
|
396
|
-
<p>pending parcels</p>
|
397
|
-
</div>
|
398
|
-
|
399
|
-
</li>
|
400
|
-
|
401
|
-
</ul>
|
402
|
-
|
403
|
-
</div><table class="source_code">
|
404
|
-
<tr>
|
405
|
-
<td>
|
406
|
-
<pre class="lines">
|
407
|
-
|
408
|
-
|
409
|
-
20
|
410
|
-
21
|
411
|
-
22</pre>
|
412
|
-
</td>
|
413
|
-
<td>
|
414
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor.rb', line 20</span>
|
415
|
-
|
416
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_add_parcel'>add_parcel</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_description'>description</span><span class='comma'>,</span> <span class='id identifier rubyid_action'>action</span><span class='rparen'>)</span>
|
417
|
-
<span class='id identifier rubyid_belt'>belt</span><span class='period'>.</span><span class='id identifier rubyid_add_parcel'>add_parcel</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_description'>description</span><span class='comma'>,</span> <span class='id identifier rubyid_action'>action</span><span class='rparen'>)</span>
|
418
|
-
<span class='kw'>end</span></pre>
|
419
|
-
</td>
|
420
|
-
</tr>
|
421
|
-
</table>
|
422
|
-
</div>
|
423
|
-
|
424
|
-
<div class="method_details ">
|
425
|
-
<h3 class="signature " id="belt-class_method">
|
426
|
-
|
427
|
-
.<strong>belt</strong> ⇒ <tt><span class='object_link'><a href="TinyConveyor/Belt.html" title="TinyConveyor::Belt (class)">Belt</a></span></tt>
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
</h3><div class="docstring">
|
434
|
-
<div class="discussion">
|
435
|
-
|
436
|
-
|
437
|
-
</div>
|
438
|
-
</div>
|
439
|
-
<div class="tags">
|
440
|
-
|
441
|
-
<p class="tag_title">Returns:</p>
|
442
|
-
<ul class="return">
|
443
|
-
|
444
|
-
<li>
|
445
|
-
|
446
|
-
|
447
|
-
<span class='type'>(<tt><span class='object_link'><a href="TinyConveyor/Belt.html" title="TinyConveyor::Belt (class)">Belt</a></span></tt>)</span>
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
</li>
|
452
|
-
|
453
|
-
</ul>
|
454
|
-
|
455
|
-
</div><table class="source_code">
|
456
|
-
<tr>
|
457
|
-
<td>
|
458
|
-
<pre class="lines">
|
459
|
-
|
460
|
-
|
461
|
-
45
|
462
|
-
46
|
463
|
-
47</pre>
|
464
|
-
</td>
|
465
|
-
<td>
|
466
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor.rb', line 45</span>
|
467
|
-
|
468
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_belt'>belt</span>
|
469
|
-
<span class='ivar'>@belt</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="TinyConveyor/Belt.html" title="TinyConveyor::Belt (class)">Belt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#new-class_method" title="TinyConveyor.new (method)">new</a></span></span>
|
470
|
-
<span class='kw'>end</span></pre>
|
471
|
-
</td>
|
472
|
-
</tr>
|
473
|
-
</table>
|
474
|
-
</div>
|
475
|
-
|
476
|
-
<div class="method_details ">
|
477
|
-
<h3 class="signature " id="new-class_method">
|
158
|
+
<h3 class="signature first" id="new-class_method">
|
478
159
|
|
479
160
|
.<strong>new</strong> ⇒ <tt><span class='object_link'><a href="TinyConveyor/Belt.html" title="TinyConveyor::Belt (class)">Belt</a></span></tt>
|
480
161
|
|
@@ -517,242 +198,15 @@
|
|
517
198
|
<pre class="lines">
|
518
199
|
|
519
200
|
|
520
|
-
|
521
|
-
|
522
|
-
|
201
|
+
10
|
202
|
+
11
|
203
|
+
12</pre>
|
523
204
|
</td>
|
524
205
|
<td>
|
525
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor.rb', line
|
206
|
+
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor.rb', line 10</span>
|
526
207
|
|
527
208
|
<span class='kw'>def</span> <span class='id identifier rubyid_new'>new</span>
|
528
|
-
<span class='id identifier
|
529
|
-
<span class='kw'>end</span></pre>
|
530
|
-
</td>
|
531
|
-
</tr>
|
532
|
-
</table>
|
533
|
-
</div>
|
534
|
-
|
535
|
-
<div class="method_details ">
|
536
|
-
<h3 class="signature " id="parcels-class_method">
|
537
|
-
|
538
|
-
.<strong>parcels</strong> ⇒ <tt>Array<<span class='object_link'><a href="TinyConveyor/Parcel.html" title="TinyConveyor::Parcel (class)">Parcel</a></span>></tt>
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
</h3><div class="docstring">
|
545
|
-
<div class="discussion">
|
546
|
-
|
547
|
-
<p>Returns pending parcels.</p>
|
548
|
-
|
549
|
-
|
550
|
-
</div>
|
551
|
-
</div>
|
552
|
-
<div class="tags">
|
553
|
-
|
554
|
-
<p class="tag_title">Returns:</p>
|
555
|
-
<ul class="return">
|
556
|
-
|
557
|
-
<li>
|
558
|
-
|
559
|
-
|
560
|
-
<span class='type'>(<tt>Array<<span class='object_link'><a href="TinyConveyor/Parcel.html" title="TinyConveyor::Parcel (class)">Parcel</a></span>></tt>)</span>
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
—
|
565
|
-
<div class='inline'>
|
566
|
-
<p>pending parcels</p>
|
567
|
-
</div>
|
568
|
-
|
569
|
-
</li>
|
570
|
-
|
571
|
-
</ul>
|
572
|
-
|
573
|
-
</div><table class="source_code">
|
574
|
-
<tr>
|
575
|
-
<td>
|
576
|
-
<pre class="lines">
|
577
|
-
|
578
|
-
|
579
|
-
40
|
580
|
-
41
|
581
|
-
42</pre>
|
582
|
-
</td>
|
583
|
-
<td>
|
584
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor.rb', line 40</span>
|
585
|
-
|
586
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_parcels'>parcels</span>
|
587
|
-
<span class='id identifier rubyid_belt'>belt</span><span class='period'>.</span><span class='id identifier rubyid_parcels'>parcels</span>
|
588
|
-
<span class='kw'>end</span></pre>
|
589
|
-
</td>
|
590
|
-
</tr>
|
591
|
-
</table>
|
592
|
-
</div>
|
593
|
-
|
594
|
-
<div class="method_details ">
|
595
|
-
<h3 class="signature " id="remove_parcel-class_method">
|
596
|
-
|
597
|
-
.<strong>remove_parcel</strong>(uuid) ⇒ <tt>Array<<span class='object_link'><a href="TinyConveyor/Parcel.html" title="TinyConveyor::Parcel (class)">Parcel</a></span>></tt>
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
</h3><div class="docstring">
|
604
|
-
<div class="discussion">
|
605
|
-
|
606
|
-
<p>Returns pending parcels.</p>
|
607
|
-
|
608
|
-
|
609
|
-
</div>
|
610
|
-
</div>
|
611
|
-
<div class="tags">
|
612
|
-
<p class="tag_title">Parameters:</p>
|
613
|
-
<ul class="param">
|
614
|
-
|
615
|
-
<li>
|
616
|
-
|
617
|
-
<span class='name'>uuid</span>
|
618
|
-
|
619
|
-
|
620
|
-
<span class='type'>(<tt>string</tt>)</span>
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
—
|
625
|
-
<div class='inline'>
|
626
|
-
<p>uuid of the parcel to remove</p>
|
627
|
-
</div>
|
628
|
-
|
629
|
-
</li>
|
630
|
-
|
631
|
-
</ul>
|
632
|
-
|
633
|
-
<p class="tag_title">Returns:</p>
|
634
|
-
<ul class="return">
|
635
|
-
|
636
|
-
<li>
|
637
|
-
|
638
|
-
|
639
|
-
<span class='type'>(<tt>Array<<span class='object_link'><a href="TinyConveyor/Parcel.html" title="TinyConveyor::Parcel (class)">Parcel</a></span>></tt>)</span>
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
—
|
644
|
-
<div class='inline'>
|
645
|
-
<p>pending parcels</p>
|
646
|
-
</div>
|
647
|
-
|
648
|
-
</li>
|
649
|
-
|
650
|
-
</ul>
|
651
|
-
|
652
|
-
</div><table class="source_code">
|
653
|
-
<tr>
|
654
|
-
<td>
|
655
|
-
<pre class="lines">
|
656
|
-
|
657
|
-
|
658
|
-
26
|
659
|
-
27
|
660
|
-
28</pre>
|
661
|
-
</td>
|
662
|
-
<td>
|
663
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor.rb', line 26</span>
|
664
|
-
|
665
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_remove_parcel'>remove_parcel</span><span class='lparen'>(</span><span class='id identifier rubyid_uuid'>uuid</span><span class='rparen'>)</span>
|
666
|
-
<span class='id identifier rubyid_belt'>belt</span><span class='period'>.</span><span class='id identifier rubyid_remove_parcel_by_uuid'>remove_parcel_by_uuid</span><span class='lparen'>(</span><span class='id identifier rubyid_uuid'>uuid</span><span class='rparen'>)</span>
|
667
|
-
<span class='kw'>end</span></pre>
|
668
|
-
</td>
|
669
|
-
</tr>
|
670
|
-
</table>
|
671
|
-
</div>
|
672
|
-
|
673
|
-
<div class="method_details ">
|
674
|
-
<h3 class="signature " id="running?-class_method">
|
675
|
-
|
676
|
-
.<strong>running?</strong> ⇒ <tt>boolean</tt>
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
</h3><div class="docstring">
|
683
|
-
<div class="discussion">
|
684
|
-
|
685
|
-
<p>Returns true if the belt is running, false otherwhise.</p>
|
686
|
-
|
687
|
-
|
688
|
-
</div>
|
689
|
-
</div>
|
690
|
-
<div class="tags">
|
691
|
-
|
692
|
-
<p class="tag_title">Returns:</p>
|
693
|
-
<ul class="return">
|
694
|
-
|
695
|
-
<li>
|
696
|
-
|
697
|
-
|
698
|
-
<span class='type'>(<tt>boolean</tt>)</span>
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
—
|
703
|
-
<div class='inline'>
|
704
|
-
<p>true if the belt is running, false otherwhise</p>
|
705
|
-
</div>
|
706
|
-
|
707
|
-
</li>
|
708
|
-
|
709
|
-
</ul>
|
710
|
-
|
711
|
-
</div><table class="source_code">
|
712
|
-
<tr>
|
713
|
-
<td>
|
714
|
-
<pre class="lines">
|
715
|
-
|
716
|
-
|
717
|
-
35
|
718
|
-
36
|
719
|
-
37</pre>
|
720
|
-
</td>
|
721
|
-
<td>
|
722
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor.rb', line 35</span>
|
723
|
-
|
724
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_running?'>running?</span>
|
725
|
-
<span class='id identifier rubyid_belt'>belt</span><span class='period'>.</span><span class='id identifier rubyid_running?'>running?</span>
|
726
|
-
<span class='kw'>end</span></pre>
|
727
|
-
</td>
|
728
|
-
</tr>
|
729
|
-
</table>
|
730
|
-
</div>
|
731
|
-
|
732
|
-
<div class="method_details ">
|
733
|
-
<h3 class="signature " id="start_belt-class_method">
|
734
|
-
|
735
|
-
.<strong>start_belt</strong> ⇒ <tt>Object</tt>
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
</h3><table class="source_code">
|
742
|
-
<tr>
|
743
|
-
<td>
|
744
|
-
<pre class="lines">
|
745
|
-
|
746
|
-
|
747
|
-
30
|
748
|
-
31
|
749
|
-
32</pre>
|
750
|
-
</td>
|
751
|
-
<td>
|
752
|
-
<pre class="code"><span class="info file"># File 'lib/tiny_conveyor.rb', line 30</span>
|
753
|
-
|
754
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_start_belt'>start_belt</span>
|
755
|
-
<span class='id identifier rubyid_belt'>belt</span><span class='period'>.</span><span class='id identifier rubyid_start_belt'>start_belt</span>
|
209
|
+
<span class='const'><span class='object_link'><a href="TinyConveyor/Belt.html" title="TinyConveyor::Belt (class)">Belt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
756
210
|
<span class='kw'>end</span></pre>
|
757
211
|
</td>
|
758
212
|
</tr>
|
@@ -764,9 +218,9 @@
|
|
764
218
|
</div>
|
765
219
|
|
766
220
|
<div id="footer">
|
767
|
-
Generated on
|
768
|
-
<a href="
|
769
|
-
0.9.
|
221
|
+
Generated on Sat Sep 9 22:08:12 2023 by
|
222
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
223
|
+
0.9.34 (ruby-3.1.2).
|
770
224
|
</div>
|
771
225
|
|
772
226
|
</div>
|
data/doc/_index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.9.
|
7
|
+
Documentation by YARD 0.9.34
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
<div class="clear"></div>
|
53
53
|
</div>
|
54
54
|
|
55
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.
|
55
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.34</h1>
|
56
56
|
<div id="listing">
|
57
57
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
58
58
|
|
@@ -127,9 +127,9 @@
|
|
127
127
|
</div>
|
128
128
|
|
129
129
|
<div id="footer">
|
130
|
-
Generated on
|
131
|
-
<a href="
|
132
|
-
0.9.
|
130
|
+
Generated on Sat Sep 9 22:08:12 2023 by
|
131
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
132
|
+
0.9.34 (ruby-3.1.2).
|
133
133
|
</div>
|
134
134
|
|
135
135
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -58,7 +58,7 @@
|
|
58
58
|
</div>
|
59
59
|
|
60
60
|
<div id="content"><div id='filecontents'><h1 id="tiny-conveyor">Tiny Conveyor</h1>
|
61
|
-
<p>This gem is a tiny wrapper for <a href="
|
61
|
+
<p>This gem is a tiny wrapper for <a href="https://github.com/socketry/async">aync</a> that can create and execute a queue of tasks, each of the task run in a separated thread.</p>
|
62
62
|
|
63
63
|
<h2 id="setup">Setup</h2>
|
64
64
|
|
@@ -85,7 +85,7 @@ conveyor = TinyConveyor.new
|
|
85
85
|
<h3 id="run-task">Run task</h3>
|
86
86
|
|
87
87
|
<p><code>ruby
|
88
|
-
action =
|
88
|
+
action = proc { puts 'Run in a separated thread' }
|
89
89
|
conveyor.add_parcel('first action', 'a simple task that print a sentence', action)
|
90
90
|
conveyor.start_belt
|
91
91
|
</code></p>
|
@@ -110,12 +110,13 @@ conveyor.parcels
|
|
110
110
|
</code></p>
|
111
111
|
|
112
112
|
<h2 id="acknowledgements">Acknowledgements</h2>
|
113
|
+
<p>Icons made by xnimrodx from <a href="https://www.flaticon.com/">flaticon</a></p>
|
113
114
|
</div></div>
|
114
115
|
|
115
116
|
<div id="footer">
|
116
|
-
Generated on
|
117
|
-
<a href="
|
118
|
-
0.9.
|
117
|
+
Generated on Sat Sep 9 22:08:12 2023 by
|
118
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
+
0.9.34 (ruby-3.1.2).
|
119
120
|
</div>
|
120
121
|
|
121
122
|
</div>
|
data/doc/frames.html
CHANGED
data/doc/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -58,7 +58,7 @@
|
|
58
58
|
</div>
|
59
59
|
|
60
60
|
<div id="content"><div id='filecontents'><h1 id="tiny-conveyor">Tiny Conveyor</h1>
|
61
|
-
<p>This gem is a tiny wrapper for <a href="
|
61
|
+
<p>This gem is a tiny wrapper for <a href="https://github.com/socketry/async">aync</a> that can create and execute a queue of tasks, each of the task run in a separated thread.</p>
|
62
62
|
|
63
63
|
<h2 id="setup">Setup</h2>
|
64
64
|
|
@@ -85,7 +85,7 @@ conveyor = TinyConveyor.new
|
|
85
85
|
<h3 id="run-task">Run task</h3>
|
86
86
|
|
87
87
|
<p><code>ruby
|
88
|
-
action =
|
88
|
+
action = proc { puts 'Run in a separated thread' }
|
89
89
|
conveyor.add_parcel('first action', 'a simple task that print a sentence', action)
|
90
90
|
conveyor.start_belt
|
91
91
|
</code></p>
|
@@ -110,12 +110,13 @@ conveyor.parcels
|
|
110
110
|
</code></p>
|
111
111
|
|
112
112
|
<h2 id="acknowledgements">Acknowledgements</h2>
|
113
|
+
<p>Icons made by xnimrodx from <a href="https://www.flaticon.com/">flaticon</a></p>
|
113
114
|
</div></div>
|
114
115
|
|
115
116
|
<div id="footer">
|
116
|
-
Generated on
|
117
|
-
<a href="
|
118
|
-
0.9.
|
117
|
+
Generated on Sat Sep 9 22:08:12 2023 by
|
118
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
+
0.9.34 (ruby-3.1.2).
|
119
120
|
</div>
|
120
121
|
|
121
122
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -45,14 +45,6 @@
|
|
45
45
|
|
46
46
|
|
47
47
|
<li class="odd ">
|
48
|
-
<div class="item">
|
49
|
-
<span class='object_link'><a href="TinyConveyor.html#add_parcel-class_method" title="TinyConveyor.add_parcel (method)">add_parcel</a></span>
|
50
|
-
<small>TinyConveyor</small>
|
51
|
-
</div>
|
52
|
-
</li>
|
53
|
-
|
54
|
-
|
55
|
-
<li class="even ">
|
56
48
|
<div class="item">
|
57
49
|
<span class='object_link'><a href="TinyConveyor/Belt.html#add_parcel-instance_method" title="TinyConveyor::Belt#add_parcel (method)">#add_parcel</a></span>
|
58
50
|
<small>TinyConveyor::Belt</small>
|
@@ -60,14 +52,6 @@
|
|
60
52
|
</li>
|
61
53
|
|
62
54
|
|
63
|
-
<li class="odd ">
|
64
|
-
<div class="item">
|
65
|
-
<span class='object_link'><a href="TinyConveyor.html#belt-class_method" title="TinyConveyor.belt (method)">belt</a></span>
|
66
|
-
<small>TinyConveyor</small>
|
67
|
-
</div>
|
68
|
-
</li>
|
69
|
-
|
70
|
-
|
71
55
|
<li class="even ">
|
72
56
|
<div class="item">
|
73
57
|
<span class='object_link'><a href="TinyConveyor/Parcel.html#description-instance_method" title="TinyConveyor::Parcel#description (method)">#description</a></span>
|
@@ -126,21 +110,13 @@
|
|
126
110
|
|
127
111
|
<li class="odd ">
|
128
112
|
<div class="item">
|
129
|
-
<span class='object_link'><a href="TinyConveyor.html#
|
130
|
-
<small>TinyConveyor</small>
|
113
|
+
<span class='object_link'><a href="TinyConveyor/Belt.html#remove_parcel-instance_method" title="TinyConveyor::Belt#remove_parcel (method)">#remove_parcel</a></span>
|
114
|
+
<small>TinyConveyor::Belt</small>
|
131
115
|
</div>
|
132
116
|
</li>
|
133
117
|
|
134
118
|
|
135
119
|
<li class="even ">
|
136
|
-
<div class="item">
|
137
|
-
<span class='object_link'><a href="TinyConveyor.html#remove_parcel-class_method" title="TinyConveyor.remove_parcel (method)">remove_parcel</a></span>
|
138
|
-
<small>TinyConveyor</small>
|
139
|
-
</div>
|
140
|
-
</li>
|
141
|
-
|
142
|
-
|
143
|
-
<li class="odd ">
|
144
120
|
<div class="item">
|
145
121
|
<span class='object_link'><a href="TinyConveyor/Belt.html#remove_parcel_by_uuid-instance_method" title="TinyConveyor::Belt#remove_parcel_by_uuid (method)">#remove_parcel_by_uuid</a></span>
|
146
122
|
<small>TinyConveyor::Belt</small>
|
@@ -148,7 +124,7 @@
|
|
148
124
|
</li>
|
149
125
|
|
150
126
|
|
151
|
-
<li class="
|
127
|
+
<li class="odd ">
|
152
128
|
<div class="item">
|
153
129
|
<span class='object_link'><a href="TinyConveyor/Belt.html#run_belt_entirely-instance_method" title="TinyConveyor::Belt#run_belt_entirely (method)">#run_belt_entirely</a></span>
|
154
130
|
<small>TinyConveyor::Belt</small>
|
@@ -156,7 +132,7 @@
|
|
156
132
|
</li>
|
157
133
|
|
158
134
|
|
159
|
-
<li class="
|
135
|
+
<li class="even ">
|
160
136
|
<div class="item">
|
161
137
|
<span class='object_link'><a href="TinyConveyor/Belt.html#running%3F-instance_method" title="TinyConveyor::Belt#running? (method)">#running?</a></span>
|
162
138
|
<small>TinyConveyor::Belt</small>
|
@@ -164,14 +140,6 @@
|
|
164
140
|
</li>
|
165
141
|
|
166
142
|
|
167
|
-
<li class="even ">
|
168
|
-
<div class="item">
|
169
|
-
<span class='object_link'><a href="TinyConveyor.html#running%3F-class_method" title="TinyConveyor.running? (method)">running?</a></span>
|
170
|
-
<small>TinyConveyor</small>
|
171
|
-
</div>
|
172
|
-
</li>
|
173
|
-
|
174
|
-
|
175
143
|
<li class="odd ">
|
176
144
|
<div class="item">
|
177
145
|
<span class='object_link'><a href="TinyConveyor/Parcel.html#running%3F-instance_method" title="TinyConveyor::Parcel#running? (method)">#running?</a></span>
|
@@ -181,14 +149,6 @@
|
|
181
149
|
|
182
150
|
|
183
151
|
<li class="even ">
|
184
|
-
<div class="item">
|
185
|
-
<span class='object_link'><a href="TinyConveyor.html#start_belt-class_method" title="TinyConveyor.start_belt (method)">start_belt</a></span>
|
186
|
-
<small>TinyConveyor</small>
|
187
|
-
</div>
|
188
|
-
</li>
|
189
|
-
|
190
|
-
|
191
|
-
<li class="odd ">
|
192
152
|
<div class="item">
|
193
153
|
<span class='object_link'><a href="TinyConveyor/Belt.html#start_belt-instance_method" title="TinyConveyor::Belt#start_belt (method)">#start_belt</a></span>
|
194
154
|
<small>TinyConveyor::Belt</small>
|
@@ -196,7 +156,7 @@
|
|
196
156
|
</li>
|
197
157
|
|
198
158
|
|
199
|
-
<li class="
|
159
|
+
<li class="odd ">
|
200
160
|
<div class="item">
|
201
161
|
<span class='object_link'><a href="TinyConveyor/Parcel.html#state-instance_method" title="TinyConveyor::Parcel#state (method)">#state</a></span>
|
202
162
|
<small>TinyConveyor::Parcel</small>
|
@@ -204,7 +164,7 @@
|
|
204
164
|
</li>
|
205
165
|
|
206
166
|
|
207
|
-
<li class="
|
167
|
+
<li class="even ">
|
208
168
|
<div class="item">
|
209
169
|
<span class='object_link'><a href="TinyConveyor/Parcel.html#uuid-instance_method" title="TinyConveyor::Parcel#uuid (method)">#uuid</a></span>
|
210
170
|
<small>TinyConveyor::Parcel</small>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Top Level Namespace
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -100,9 +100,9 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
104
|
-
<a href="
|
105
|
-
0.9.
|
103
|
+
Generated on Sat Sep 9 22:08:12 2023 by
|
104
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
|
+
0.9.34 (ruby-3.1.2).
|
106
106
|
</div>
|
107
107
|
|
108
108
|
</div>
|
data/lib/tiny_conveyor.rb
CHANGED
data/tiny_conveyor.gemspec
CHANGED
@@ -4,10 +4,9 @@ require 'English'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'tiny_conveyor'
|
7
|
-
s.version = '0.
|
8
|
-
s.required_ruby_version
|
9
|
-
s.
|
10
|
-
s.summary = 'Tiny wrapper aroung concurent ruby to create a queue of tasks'
|
7
|
+
s.version = '0.2.0'
|
8
|
+
s.required_ruby_version = '>= 3.1.1 '
|
9
|
+
s.summary = 'Tiny wrapper aroung async to create a queue of tasks'
|
11
10
|
s.authors = ['Flo Girardo']
|
12
11
|
s.email = 'florian@barbrousse.net'
|
13
12
|
s.files = `git ls-files`.split($RS).reject do |file|
|
@@ -15,7 +14,7 @@ Gem::Specification.new do |s|
|
|
15
14
|
end
|
16
15
|
s.require_paths = ['lib']
|
17
16
|
s.homepage =
|
18
|
-
'https://
|
17
|
+
'https://gitlab.com/girflo/tiny_conveyor'
|
19
18
|
s.license = 'MIT'
|
20
19
|
s.add_dependency 'async', '~> 1.2'
|
21
20
|
s.add_development_dependency('rspec', '~> 3')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_conveyor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flo Girardo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.9'
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email: florian@barbrousse.net
|
71
71
|
executables: []
|
72
72
|
extensions: []
|
@@ -101,11 +101,11 @@ files:
|
|
101
101
|
- lib/tiny_conveyor/belt.rb
|
102
102
|
- lib/tiny_conveyor/parcel.rb
|
103
103
|
- tiny_conveyor.gemspec
|
104
|
-
homepage: https://
|
104
|
+
homepage: https://gitlab.com/girflo/tiny_conveyor
|
105
105
|
licenses:
|
106
106
|
- MIT
|
107
107
|
metadata: {}
|
108
|
-
post_install_message:
|
108
|
+
post_install_message:
|
109
109
|
rdoc_options: []
|
110
110
|
require_paths:
|
111
111
|
- lib
|
@@ -113,15 +113,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
116
|
+
version: 3.1.1
|
117
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
119
|
- - ">="
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version:
|
121
|
+
version: '0'
|
122
122
|
requirements: []
|
123
|
-
rubygems_version: 3.
|
124
|
-
signing_key:
|
123
|
+
rubygems_version: 3.3.19
|
124
|
+
signing_key:
|
125
125
|
specification_version: 4
|
126
|
-
summary: Tiny wrapper aroung
|
126
|
+
summary: Tiny wrapper aroung async to create a queue of tasks
|
127
127
|
test_files: []
|