cztop 0.9.3 → 0.9.4

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
  SHA1:
3
- metadata.gz: 5f3c321057c7bffcb378180d228f022388b56f29
4
- data.tar.gz: 1b3f8623fff2debcfa3bdde3fba3f886cda7bde2
3
+ metadata.gz: 2ecd770fb211c9e4ef5aaf15ad602c23ed5337aa
4
+ data.tar.gz: ac11ecd5c536b2322594000bf5ab05c85763136d
5
5
  SHA512:
6
- metadata.gz: 438cdd1b32957b22d1c8296c59d68c966639d4056fb6857c84fccdeb6be1fc54e5c2e7ad4ffe8581e72d2057488173a7d8d1a9593949a6a9f9cb29b9ede58d68
7
- data.tar.gz: 5d1279ced2fbd394162cf78ce1ad2cec70f5b35fce2db6dd5d24251f8c6130d935dcc72b80aba384603d0a5143575696a3069a2a44da558f5b5d00d4390bf44e
6
+ metadata.gz: 0f29fa29f291dda39e7b43697e0ca1e13df1dc96321445f771c2324b0eae14f9680dcf2a1617c4c123c238a4840aabe193e5f0cbd2bf0503be760529c74b9ed0
7
+ data.tar.gz: c422a1152c407d8215932a7d5be169f18dbe73e00c37ebffb8ab5bcff456fc9fc79b367f7f58c6e4fbb4bf9a389486fe6ef5fadebed9b255723357fd7745abe7
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.9.4 (10/22/2016)
2
+ -----
3
+ * Beacon#configure: correctly handle interrupt, and fix API doc
4
+
1
5
  0.9.3 (10/22/2016)
2
6
  -----
3
7
  * no changes, but this release includes an up-to-date version of this file
@@ -35,14 +35,23 @@ module CZTop
35
35
  end
36
36
 
37
37
  # Run the beacon on the specified UDP port.
38
+ #
38
39
  # @param port [Integer] port number to
39
40
  # @return [String] hostname, which can be used as endpoint for incoming
40
41
  # connections
41
- # @raise [SystemCallError] if the system doesn't support UDP broadcasts
42
+ # @raise [Interrupt] if the context was terminated or the process
43
+ # interrupted
44
+ # @raise [NotImplementedError] if the system doesn't support UDP broadcasts
42
45
  def configure(port)
43
46
  @actor.send_picture("si", :string, "CONFIGURE", :int, port)
44
- hostname = Zstr.recv(@actor).read_string
47
+ ptr = Zstr.recv(@actor)
48
+
49
+ # NULL if context terminated or interrupted
50
+ HasFFIDelegate.raise_zmq_err if ptr.null?
51
+
52
+ hostname = ptr.read_string
45
53
  return hostname unless hostname.empty?
54
+
46
55
  raise NotImplementedError, "system doesn't support UDP broadcasts"
47
56
  end
48
57
 
@@ -1,3 +1,3 @@
1
1
  module CZTop
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cztop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-21 00:00:00.000000000 Z
11
+ date: 2016-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: czmq-ffi-gen