fractor 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop-https---raw-githubusercontent-com-riboseinc-oss-guides-main-ci-rubocop-yml +552 -0
  3. data/.rubocop.yml +14 -8
  4. data/.rubocop_todo.yml +162 -46
  5. data/README.adoc +1364 -376
  6. data/examples/auto_detection/auto_detection.rb +9 -9
  7. data/examples/continuous_chat_common/message_protocol.rb +53 -0
  8. data/examples/continuous_chat_fractor/README.adoc +217 -0
  9. data/examples/continuous_chat_fractor/chat_client.rb +303 -0
  10. data/examples/continuous_chat_fractor/chat_common.rb +83 -0
  11. data/examples/continuous_chat_fractor/chat_server.rb +167 -0
  12. data/examples/continuous_chat_fractor/simulate.rb +345 -0
  13. data/examples/continuous_chat_server/README.adoc +135 -0
  14. data/examples/continuous_chat_server/chat_client.rb +303 -0
  15. data/examples/continuous_chat_server/chat_server.rb +359 -0
  16. data/examples/continuous_chat_server/simulate.rb +343 -0
  17. data/examples/hierarchical_hasher/hierarchical_hasher.rb +12 -8
  18. data/examples/multi_work_type/multi_work_type.rb +30 -29
  19. data/examples/pipeline_processing/pipeline_processing.rb +15 -15
  20. data/examples/producer_subscriber/producer_subscriber.rb +20 -16
  21. data/examples/scatter_gather/scatter_gather.rb +29 -28
  22. data/examples/simple/sample.rb +5 -5
  23. data/examples/specialized_workers/specialized_workers.rb +44 -37
  24. data/lib/fractor/continuous_server.rb +188 -0
  25. data/lib/fractor/result_aggregator.rb +1 -1
  26. data/lib/fractor/supervisor.rb +277 -104
  27. data/lib/fractor/version.rb +1 -1
  28. data/lib/fractor/work_queue.rb +68 -0
  29. data/lib/fractor/work_result.rb +1 -1
  30. data/lib/fractor/worker.rb +2 -1
  31. data/lib/fractor/wrapped_ractor.rb +12 -2
  32. data/lib/fractor.rb +2 -0
  33. metadata +15 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronald Tse
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-10-09 00:00:00.000000000 Z
11
+ date: 2025-10-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Fractor is a lightweight Ruby framework designed to simplify the process
14
14
  of distributing computational work across multiple Ractors.
@@ -19,6 +19,7 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - ".rspec"
22
+ - ".rubocop-https---raw-githubusercontent-com-riboseinc-oss-guides-main-ci-rubocop-yml"
22
23
  - ".rubocop.yml"
23
24
  - ".rubocop_todo.yml"
24
25
  - CODE_OF_CONDUCT.md
@@ -26,6 +27,16 @@ files:
26
27
  - Rakefile
27
28
  - examples/auto_detection/README.adoc
28
29
  - examples/auto_detection/auto_detection.rb
30
+ - examples/continuous_chat_common/message_protocol.rb
31
+ - examples/continuous_chat_fractor/README.adoc
32
+ - examples/continuous_chat_fractor/chat_client.rb
33
+ - examples/continuous_chat_fractor/chat_common.rb
34
+ - examples/continuous_chat_fractor/chat_server.rb
35
+ - examples/continuous_chat_fractor/simulate.rb
36
+ - examples/continuous_chat_server/README.adoc
37
+ - examples/continuous_chat_server/chat_client.rb
38
+ - examples/continuous_chat_server/chat_server.rb
39
+ - examples/continuous_chat_server/simulate.rb
29
40
  - examples/hierarchical_hasher/README.adoc
30
41
  - examples/hierarchical_hasher/hierarchical_hasher.rb
31
42
  - examples/multi_work_type/README.adoc
@@ -40,10 +51,12 @@ files:
40
51
  - examples/specialized_workers/README.adoc
41
52
  - examples/specialized_workers/specialized_workers.rb
42
53
  - lib/fractor.rb
54
+ - lib/fractor/continuous_server.rb
43
55
  - lib/fractor/result_aggregator.rb
44
56
  - lib/fractor/supervisor.rb
45
57
  - lib/fractor/version.rb
46
58
  - lib/fractor/work.rb
59
+ - lib/fractor/work_queue.rb
47
60
  - lib/fractor/work_result.rb
48
61
  - lib/fractor/worker.rb
49
62
  - lib/fractor/wrapped_ractor.rb