numaflow_ruby 0.4.41-x86_64-linux → 0.4.42-x86_64-linux

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: 9c3d3cc88cfdaf107b22c793cff33b08f3b5aaa172a5287f6492ba8b5dde73a5
4
- data.tar.gz: d3281a3b3193f863231922d3aba3c21c1cede92ab14ccc0b1ff34dab6740d10b
3
+ metadata.gz: c03f29566b34f7300e0c2538db47db37e6738b4db6241cbe1f0a4833f7f0fd08
4
+ data.tar.gz: 86634201e18e47f4b84466efb57a9271f4a21eb0059440e9efe8515744f23aa5
5
5
  SHA512:
6
- metadata.gz: 78747b3de0fc2d7c4815f9d6026b6131b5f1c33676647f1e31a489d3eb7d01f33cd7b6677b719bf9d84701f98d44d9b7a59914298c6777d7580d076435793a48
7
- data.tar.gz: b48600a7ed35ac5064d5dffc7cd8db1533983f01237d9391c2c3f05a902dc98e07e3884e07d7a84dc9b0004a19fab5a2e589d054c93fb81d66e05d06ac3c77fd
6
+ metadata.gz: a32f8db3347230f996e6ba06a89e9f33668f97a3ba384c2b1d04001086f9cc5cd485f7d5859bd666ba7d806be310aff4eba412f4c71593bedf2a9225b14c9134
7
+ data.tar.gz: d2b9578ccbc6271640b782cffd4f805759d3bf95aec7d860f9f7f32d98bce9ccc5c9e1f16cabfa20bc32c2015fe614cfc385242fc704cd1b248caf5611eca39a
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NumaflowRuby
4
- VERSION = "0.4.41"
4
+ VERSION = "0.4.42"
5
5
  end
data/lib/numaflow_ruby.rb CHANGED
@@ -11,18 +11,19 @@ end
11
11
  # NumaflowRuby is a Ruby wrapper for Numaflow rust library, allowing you to create map servers in Ruby.
12
12
  module NumaflowRuby
13
13
  class Error < StandardError; end
14
+ class ServerStopped < Error; end
14
15
 
15
16
  def self.start_map_server(map_handler) # rubocop:disable Metrics/MethodLength
16
17
  Thread.new do
17
18
  msg_source = NumaflowRuby.rust_start_map_server
18
19
  loop do
19
20
  val, responder = NumaflowRuby.rust_get_next_message(msg_source)
20
- begin
21
- result = map_handler.call(val)
22
- NumaflowRuby.rust_respond_to_message(result, responder)
23
- rescue StandardError
24
- Kernel.exit 1
25
- end
21
+ result = map_handler.call(val)
22
+ NumaflowRuby.rust_respond_to_message(result, responder)
23
+ rescue NumaflowRuby::ServerStopped
24
+ break
25
+ rescue StandardError
26
+ Kernel.exit 1
26
27
  end
27
28
  end
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numaflow_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.41
4
+ version: 0.4.42
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Kyle Cooke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-07-02 00:00:00.000000000 Z
11
+ date: 2026-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler