czmq-ffi-gen 0.16.1 → 1.0.0

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.
@@ -735,6 +735,16 @@ module CZMQ
735
735
  result
736
736
  end
737
737
 
738
+ # Test if ipv6 is available on the system. Return true if available.
739
+ # The only way to reliably check is to actually open a socket and
740
+ # try to bind it. (ported from libzmq)
741
+ #
742
+ # @return [Boolean]
743
+ def self.ipv6_available()
744
+ result = ::CZMQ::FFI.zsys_ipv6_available()
745
+ result
746
+ end
747
+
738
748
  # Set network interface name to use for broadcasts, particularly zbeacon.
739
749
  # This lets the interface be configured for test environments where required.
740
750
  # For example, on Mac OS X, zbeacon cannot bind to 255.255.255.255 which is
@@ -798,6 +808,46 @@ module CZMQ
798
808
  result
799
809
  end
800
810
 
811
+ # Set IPv4 multicast address to use for sending zbeacon messages. By default
812
+ # IPv4 multicast is NOT used. If the environment variable
813
+ # ZSYS_IPV4_MCAST_ADDRESS is set, use that as the default IPv4 multicast
814
+ # address. Calling this function or setting ZSYS_IPV4_MCAST_ADDRESS
815
+ # will enable IPv4 zbeacon messages.
816
+ #
817
+ # @param value [String, #to_s, nil]
818
+ # @return [void]
819
+ def self.set_ipv4_mcast_address(value)
820
+ result = ::CZMQ::FFI.zsys_set_ipv4_mcast_address(value)
821
+ result
822
+ end
823
+
824
+ # Return IPv4 multicast address to use for sending zbeacon, or NULL if none was
825
+ # set.
826
+ #
827
+ # @return [String]
828
+ def self.ipv4_mcast_address()
829
+ result = ::CZMQ::FFI.zsys_ipv4_mcast_address()
830
+ result
831
+ end
832
+
833
+ # Set multicast TTL default is 1
834
+ #
835
+ # @param value [Integer, #to_int, #to_i]
836
+ # @return [void]
837
+ def self.set_mcast_ttl(value)
838
+ value = Integer(value)
839
+ result = ::CZMQ::FFI.zsys_set_mcast_ttl(value)
840
+ result
841
+ end
842
+
843
+ # Get multicast TTL
844
+ #
845
+ # @return [Integer]
846
+ def self.mcast_ttl()
847
+ result = ::CZMQ::FFI.zsys_mcast_ttl()
848
+ result
849
+ end
850
+
801
851
  # Configure the automatic use of pre-allocated FDs when creating new sockets.
802
852
  # If 0 (default), nothing will happen. Else, when a new socket is bound, the
803
853
  # system API will be used to check if an existing pre-allocated FD with a
@@ -1,5 +1,5 @@
1
1
  module CZMQ
2
2
  module FFI
3
- GEM_VERSION = "0.16.1"
3
+ GEM_VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -3,9 +3,6 @@ module CZMQ
3
3
  # CZMQ library version
4
4
  CZMQ_VERSION = VERSION
5
5
 
6
- # @deprecated Use {CZMQ_VERSION} instead.
7
- LIBRARY_VERSION = CZMQ_VERSION
8
-
9
6
  # ZMQ library version
10
7
  ZMQ_VERSION = LibZMQ::VERSION
11
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: czmq-ffi-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-21 00:00:00.000000000 Z
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.11'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rake
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +44,14 @@ dependencies:
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '3.9'
47
+ version: '3.10'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '3.9'
54
+ version: '3.10'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: minitest
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -121,6 +107,7 @@ files:
121
107
  - lib/czmq-ffi-gen/czmq/ffi/zlistx.rb
122
108
  - lib/czmq-ffi-gen/czmq/ffi/zloop.rb
123
109
  - lib/czmq-ffi-gen/czmq/ffi/zmsg.rb
110
+ - lib/czmq-ffi-gen/czmq/ffi/zosc.rb
124
111
  - lib/czmq-ffi-gen/czmq/ffi/zpoller.rb
125
112
  - lib/czmq-ffi-gen/czmq/ffi/zproc.rb
126
113
  - lib/czmq-ffi-gen/czmq/ffi/zsock.rb
@@ -136,10 +123,13 @@ files:
136
123
  - lib/czmq-ffi-gen/signals.rb
137
124
  - lib/czmq-ffi-gen/vendor.rb
138
125
  - lib/czmq-ffi-gen/versions.rb
139
- homepage: https://github.com/paddor/czmq-ffi-gen
126
+ homepage: https://rubygems.org/gems/czmq-ffi-gen
140
127
  licenses:
141
128
  - ISC
142
- metadata: {}
129
+ metadata:
130
+ homepage_uri: https://rubygems.org/gems/czmq-ffi-gen
131
+ source_code_uri: https://github.com/paddor/czmq-ffi-gen
132
+ changelog_uri: https://github.com/paddor/czmq-ffi-gen/blob/master/CHANGES.md
143
133
  post_install_message:
144
134
  rdoc_options: []
145
135
  require_paths:
@@ -148,15 +138,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
138
  requirements:
149
139
  - - ">="
150
140
  - !ruby/object:Gem::Version
151
- version: '0'
141
+ version: 2.5.0
152
142
  required_rubygems_version: !ruby/object:Gem::Requirement
153
143
  requirements:
154
144
  - - ">="
155
145
  - !ruby/object:Gem::Version
156
146
  version: '0'
157
147
  requirements: []
158
- rubygems_version: 3.0.3
148
+ rubygems_version: 3.2.4
159
149
  signing_key:
160
150
  specification_version: 4
161
- summary: The low-level Ruby binding for CZMQ (generated using zproject)
151
+ summary: Generated low-level Ruby binding for CZMQ
162
152
  test_files: []