itsi 0.1.9 → 0.1.11

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 (66) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +11 -2
  3. data/Rakefile +5 -2
  4. data/crates/itsi_rb_helpers/src/lib.rs +27 -4
  5. data/crates/itsi_server/Cargo.toml +4 -1
  6. data/crates/itsi_server/src/lib.rs +69 -1
  7. data/crates/itsi_server/src/request/itsi_request.rs +2 -9
  8. data/crates/itsi_server/src/response/itsi_response.rs +2 -2
  9. data/crates/itsi_server/src/server/bind.rs +16 -12
  10. data/crates/itsi_server/src/server/itsi_server.rs +43 -49
  11. data/crates/itsi_server/src/server/listener.rs +9 -9
  12. data/crates/itsi_server/src/server/process_worker.rs +10 -3
  13. data/crates/itsi_server/src/server/serve_strategy/cluster_mode.rs +15 -9
  14. data/crates/itsi_server/src/server/serve_strategy/single_mode.rs +124 -111
  15. data/crates/itsi_server/src/server/signal.rs +1 -4
  16. data/crates/itsi_server/src/server/thread_worker.rs +52 -20
  17. data/crates/itsi_server/src/server/tls.rs +1 -1
  18. data/gems/scheduler/ext/itsi_rb_helpers/src/lib.rs +27 -4
  19. data/gems/scheduler/ext/itsi_server/Cargo.toml +4 -1
  20. data/gems/scheduler/ext/itsi_server/src/lib.rs +69 -1
  21. data/gems/scheduler/ext/itsi_server/src/request/itsi_request.rs +2 -9
  22. data/gems/scheduler/ext/itsi_server/src/response/itsi_response.rs +2 -2
  23. data/gems/scheduler/ext/itsi_server/src/server/bind.rs +16 -12
  24. data/gems/scheduler/ext/itsi_server/src/server/itsi_server.rs +43 -49
  25. data/gems/scheduler/ext/itsi_server/src/server/listener.rs +9 -9
  26. data/gems/scheduler/ext/itsi_server/src/server/process_worker.rs +10 -3
  27. data/gems/scheduler/ext/itsi_server/src/server/serve_strategy/cluster_mode.rs +15 -9
  28. data/gems/scheduler/ext/itsi_server/src/server/serve_strategy/single_mode.rs +124 -111
  29. data/gems/scheduler/ext/itsi_server/src/server/signal.rs +1 -4
  30. data/gems/scheduler/ext/itsi_server/src/server/thread_worker.rs +52 -20
  31. data/gems/scheduler/ext/itsi_server/src/server/tls.rs +1 -1
  32. data/gems/scheduler/lib/itsi/scheduler/version.rb +1 -1
  33. data/gems/server/Cargo.lock +11 -2
  34. data/gems/server/exe/itsi +53 -23
  35. data/gems/server/ext/itsi_rb_helpers/src/lib.rs +27 -4
  36. data/gems/server/ext/itsi_server/Cargo.toml +4 -1
  37. data/gems/server/ext/itsi_server/src/lib.rs +69 -1
  38. data/gems/server/ext/itsi_server/src/request/itsi_request.rs +2 -9
  39. data/gems/server/ext/itsi_server/src/response/itsi_response.rs +2 -2
  40. data/gems/server/ext/itsi_server/src/server/bind.rs +16 -12
  41. data/gems/server/ext/itsi_server/src/server/itsi_server.rs +43 -49
  42. data/gems/server/ext/itsi_server/src/server/listener.rs +9 -9
  43. data/gems/server/ext/itsi_server/src/server/process_worker.rs +10 -3
  44. data/gems/server/ext/itsi_server/src/server/serve_strategy/cluster_mode.rs +15 -9
  45. data/gems/server/ext/itsi_server/src/server/serve_strategy/single_mode.rs +124 -111
  46. data/gems/server/ext/itsi_server/src/server/signal.rs +1 -4
  47. data/gems/server/ext/itsi_server/src/server/thread_worker.rs +52 -20
  48. data/gems/server/ext/itsi_server/src/server/tls.rs +1 -1
  49. data/gems/server/lib/itsi/server/Itsi.rb +127 -0
  50. data/gems/server/lib/itsi/server/config.rb +36 -0
  51. data/gems/server/lib/itsi/server/options_dsl.rb +401 -0
  52. data/gems/server/lib/itsi/server/rack/handler/itsi.rb +18 -6
  53. data/gems/server/lib/itsi/server/rack_interface.rb +1 -5
  54. data/gems/server/lib/itsi/server/signal_trap.rb +0 -1
  55. data/gems/server/lib/itsi/server/version.rb +1 -1
  56. data/gems/server/lib/itsi/server.rb +7 -3
  57. data/gems/server/test/helpers/test_helper.rb +7 -5
  58. data/gems/server/test/test_itsi_server.rb +21 -2
  59. data/lib/itsi/version.rb +1 -1
  60. data/location_dsl.rb +381 -0
  61. data/sandbox/itsi_itsi_file/Itsi.rb +119 -0
  62. data/sandbox/itsi_sandbox_async/Gemfile +1 -1
  63. data/sandbox/itsi_sandbox_rack/Gemfile.lock +2 -2
  64. data/sandbox/itsi_sandbox_rails/Gemfile.lock +2 -2
  65. data/tasks.txt +27 -4
  66. metadata +14 -9
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itsi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wouter Coppieters
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-16 00:00:00.000000000 Z
10
+ date: 2025-03-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: itsi-scheduler
@@ -15,29 +15,29 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.1.9
18
+ version: 0.1.11
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 0.1.9
25
+ version: 0.1.11
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: itsi-server
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 0.1.9
32
+ version: 0.1.11
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.1.9
40
- description: Wrapper Gem for both the Itsi server and it's Fiber scheduler
39
+ version: 0.1.11
40
+ description: Wrapper Gem for both the Itsi server and the Itsi Fiber scheduler
41
41
  email:
42
42
  - wc@pico.net.nz
43
43
  executables: []
@@ -230,6 +230,9 @@ files:
230
230
  - gems/server/lib/itsi/index.html
231
231
  - gems/server/lib/itsi/request.rb
232
232
  - gems/server/lib/itsi/server.rb
233
+ - gems/server/lib/itsi/server/Itsi.rb
234
+ - gems/server/lib/itsi/server/config.rb
235
+ - gems/server/lib/itsi/server/options_dsl.rb
233
236
  - gems/server/lib/itsi/server/rack/handler/itsi.rb
234
237
  - gems/server/lib/itsi/server/rack_interface.rb
235
238
  - gems/server/lib/itsi/server/scheduler_interface.rb
@@ -242,12 +245,14 @@ files:
242
245
  - gems/server/test/test_itsi_server.rb
243
246
  - lib/itsi.rb
244
247
  - lib/itsi/version.rb
248
+ - location_dsl.rb
245
249
  - sandbox/deploy/main.tf
246
250
  - sandbox/deploy/outputs.tf
247
251
  - sandbox/deploy/vars.tf
248
252
  - sandbox/falcon_benchmark/Gemfile
249
253
  - sandbox/falcon_benchmark/Gemfile.lock
250
254
  - sandbox/falcon_benchmark/config.ru
255
+ - sandbox/itsi_itsi_file/Itsi.rb
251
256
  - sandbox/itsi_sandbox_async/Gemfile
252
257
  - sandbox/itsi_sandbox_async/Gemfile.lock
253
258
  - sandbox/itsi_sandbox_async/config.ru
@@ -438,7 +443,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
438
443
  requirements:
439
444
  - - ">="
440
445
  - !ruby/object:Gem::Version
441
- version: 3.0.7
446
+ version: '2.7'
442
447
  required_rubygems_version: !ruby/object:Gem::Requirement
443
448
  requirements:
444
449
  - - ">="
@@ -447,5 +452,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
447
452
  requirements: []
448
453
  rubygems_version: 3.6.2
449
454
  specification_version: 4
450
- summary: Wrapper Gem for both the Itsi server and it's Fiber scheduler
455
+ summary: Wrapper Gem for both the Itsi server and the Itsi Fiber scheduler
451
456
  test_files: []