czmq-ffi-gen 0.2.1 → 0.3.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.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +11 -0
- data/lib/czmq-ffi-gen/czmq/ffi.rb +1 -0
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba0ee8a4aee41a7656ec7a4891bd952a3942945a
|
4
|
+
data.tar.gz: 5d21b7bb354da3c19f1eb7323df14cbf1ba2a172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f38147470bf967d450ee9f72626cf3cf6776922d45e32ea2467e24ce7b2fa93ed2e220636871ec815c75a3f7fca79b92e692119503c7796b378dd7e4d43a09fb
|
7
|
+
data.tar.gz: 294f60d99f21caaecd594f4e615de343c45198c0654a388abe42a5779ab14bb50ebce0a96c4f73c75a4988cd139c5e0d2ccac8ccad20ad95c391e0697d81fa64
|
data/CHANGES.md
CHANGED
@@ -160,6 +160,17 @@ module CZMQ
|
|
160
160
|
result
|
161
161
|
end
|
162
162
|
|
163
|
+
# Unset certificate metadata.
|
164
|
+
#
|
165
|
+
# @param name [String, #to_s, nil]
|
166
|
+
# @return [void]
|
167
|
+
def unset_meta(name)
|
168
|
+
raise DestroyedError unless @ptr
|
169
|
+
self_p = @ptr
|
170
|
+
result = ::CZMQ::FFI.zcert_unset_meta(self_p, name)
|
171
|
+
result
|
172
|
+
end
|
173
|
+
|
163
174
|
# Get metadata value from certificate; if the metadata value doesn't
|
164
175
|
# exist, returns NULL.
|
165
176
|
#
|
@@ -87,6 +87,7 @@ module CZMQ
|
|
87
87
|
attach_function :zcert_public_txt, [:pointer], :pointer, **opts
|
88
88
|
attach_function :zcert_secret_txt, [:pointer], :pointer, **opts
|
89
89
|
attach_function :zcert_set_meta, [:pointer, :string, :string, :varargs], :void, **opts
|
90
|
+
attach_function :zcert_unset_meta, [:pointer, :string], :void, **opts
|
90
91
|
attach_function :zcert_meta, [:pointer, :string], :pointer, **opts
|
91
92
|
attach_function :zcert_meta_keys, [:pointer], :pointer, **opts
|
92
93
|
attach_function :zcert_save, [:pointer, :string], :int, **opts
|
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.
|
4
|
+
version: 0.3.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: 2015-12-
|
11
|
+
date: 2015-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|