fractor 0.1.3 → 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 (34) 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 +154 -48
  5. data/README.adoc +1371 -317
  6. data/examples/auto_detection/README.adoc +52 -0
  7. data/examples/auto_detection/auto_detection.rb +170 -0
  8. data/examples/continuous_chat_common/message_protocol.rb +53 -0
  9. data/examples/continuous_chat_fractor/README.adoc +217 -0
  10. data/examples/continuous_chat_fractor/chat_client.rb +303 -0
  11. data/examples/continuous_chat_fractor/chat_common.rb +83 -0
  12. data/examples/continuous_chat_fractor/chat_server.rb +167 -0
  13. data/examples/continuous_chat_fractor/simulate.rb +345 -0
  14. data/examples/continuous_chat_server/README.adoc +135 -0
  15. data/examples/continuous_chat_server/chat_client.rb +303 -0
  16. data/examples/continuous_chat_server/chat_server.rb +359 -0
  17. data/examples/continuous_chat_server/simulate.rb +343 -0
  18. data/examples/hierarchical_hasher/hierarchical_hasher.rb +12 -8
  19. data/examples/multi_work_type/multi_work_type.rb +30 -29
  20. data/examples/pipeline_processing/pipeline_processing.rb +15 -15
  21. data/examples/producer_subscriber/producer_subscriber.rb +20 -16
  22. data/examples/scatter_gather/scatter_gather.rb +29 -28
  23. data/examples/simple/sample.rb +38 -6
  24. data/examples/specialized_workers/specialized_workers.rb +44 -37
  25. data/lib/fractor/continuous_server.rb +188 -0
  26. data/lib/fractor/result_aggregator.rb +1 -1
  27. data/lib/fractor/supervisor.rb +291 -108
  28. data/lib/fractor/version.rb +1 -1
  29. data/lib/fractor/work_queue.rb +68 -0
  30. data/lib/fractor/work_result.rb +1 -1
  31. data/lib/fractor/worker.rb +2 -1
  32. data/lib/fractor/wrapped_ractor.rb +12 -2
  33. data/lib/fractor.rb +2 -0
  34. metadata +17 -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.3
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-05-08 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,11 +19,24 @@ 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
25
26
  - README.adoc
26
27
  - Rakefile
28
+ - examples/auto_detection/README.adoc
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
27
40
  - examples/hierarchical_hasher/README.adoc
28
41
  - examples/hierarchical_hasher/hierarchical_hasher.rb
29
42
  - examples/multi_work_type/README.adoc
@@ -38,10 +51,12 @@ files:
38
51
  - examples/specialized_workers/README.adoc
39
52
  - examples/specialized_workers/specialized_workers.rb
40
53
  - lib/fractor.rb
54
+ - lib/fractor/continuous_server.rb
41
55
  - lib/fractor/result_aggregator.rb
42
56
  - lib/fractor/supervisor.rb
43
57
  - lib/fractor/version.rb
44
58
  - lib/fractor/work.rb
59
+ - lib/fractor/work_queue.rb
45
60
  - lib/fractor/work_result.rb
46
61
  - lib/fractor/worker.rb
47
62
  - lib/fractor/wrapped_ractor.rb