zapp 0.2.4 → 0.2.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d92db6f0faeb0316e5493676b97ed1566b65e14753e39423f8c73e8365aa7908
4
- data.tar.gz: 253b76825620d5b55840a8e5b6686068bf7049271b093a9efb5a862d5040922d
3
+ metadata.gz: 5bf3d563ee016ed8dd0c476f3c2b38d941d895e6f6f8a00ecffe91badaf95849
4
+ data.tar.gz: 14ec4eacaf29d2b43bf7b4a298fb6177cead5bd854c43810f873dd56359fa91b
5
5
  SHA512:
6
- metadata.gz: 3c1e015b962b63b8b92420746df6c5a6e470d9b9721b2b0ab4967b2b260e1fdce32baad057c048140391f3155f723626a0b959e86620d66a2318bea2c7beac81
7
- data.tar.gz: 24967c889e62d3235fd162a1b6568bd63b6a72755b63e73910ac4b326fd92a5dd4026291d3f1e847e62f6b06cb9fc5e377c5061632651323576c52088c778dcc
6
+ metadata.gz: 5af0557f1bcb1f10c67ca7050adc90c940ad1cd309b66ba90118dbced2216231e2837ccf52cd607a80694fad206ff7c7d22eddc203843d599e8e81aa7d0c639f
7
+ data.tar.gz: dd8f8ddb1464df27265384eb9a2aa1ff1a3aa912395bbcec033e0698ebe8b9dd3dafc24cc6b33874fda9aa2ee174d1cf2792d9e01807506777397d277bb59853
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require("webrick")
4
-
5
3
  module Zapp
6
4
  module HTTPContext
7
5
  # Represents an HTTP Request to be processed by a worker
data/lib/zapp/pipe.rb CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  module Zapp
4
4
  # Light wrapper around a Ractor for piping messages CSP style
5
- module Pipe
5
+ class Pipe < Ractor
6
6
  def self.new
7
- Ractor.new do
7
+ super do
8
8
  loop do
9
9
  Ractor.yield(Ractor.receive)
10
10
  end
data/lib/zapp/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zapp
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
5
5
  end
data/lib/zapp/worker.rb CHANGED
@@ -15,6 +15,8 @@ module Zapp
15
15
  ) do |context_pipe, socket_pipe, config|
16
16
  Ractor.current[Zapp::RACTOR_CONFIG_KEY] = config
17
17
 
18
+ Zapp.config.app.prepare if Zapp.config.app.respond_to?(:prepare)
19
+
18
20
  processor = Zapp::Worker::RequestProcessor.new(
19
21
  socket_pipe: socket_pipe,
20
22
  context_pipe: context_pipe
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias H Steffensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-11 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack