czmq-ffi-gen 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ea1af55b990ff010a9bc499c1753aec939f9d7a
4
- data.tar.gz: b1e54616721dee31e0abf0eba9caa006068bcead
3
+ metadata.gz: 94b0d8fa86d8c159f8364700f7465871d8dd376a
4
+ data.tar.gz: bd02800d4543dccb4727a387777d4ff5162d8fa4
5
5
  SHA512:
6
- metadata.gz: 08d3e268b7019524a98c9e57552a3fd1b415078fbf79d42c66764d4f230a64ab9e90134369cfc85144732e632c0ee517c6d42eb0c95cbb8ce4f92e34c8b18180
7
- data.tar.gz: 78619f1f14ca128e033599e3d1642476a5cf28ce3cbdb7ab51a2febbecccc0d0cb7b4cd41f3e53eade4cc7872992b4a17e8e68b757cd4d652f242fbefae79967
6
+ metadata.gz: 441eda5bb50ceb10c8431c171acfcd0346eaecc75db4a0035c67e5cb6fbb6eb60eb6c77bbb8b088d2722ab2d976c53634d2ceec2b99dd6774abbf6f1a5a9eca4
7
+ data.tar.gz: a04c994498e5e4a376bad07cb5a1f75656baf45f16819e621ab7ab038080c61e24c71acee288d9594f3e2a9c719ce982f5d9a387bacf368f0e5ba1defe935d82
data/CHANGES.md CHANGED
@@ -1,3 +1,11 @@
1
+ 0.12.0 (11/02/2016)
2
+ -----
3
+ * update CZMQ low-level binding to v4.0.0
4
+
5
+ 0.11.0 (11/02/2016)
6
+ -----
7
+ * update CZMQ low-level binding to v4.0.0-rc1
8
+
1
9
  0.10.0 (09/25/2016)
2
10
  -----
3
11
  * update CZMQ low-level binding to honor the LIBCZMQ_PATH environment variable
@@ -23,8 +23,8 @@ module CZMQ
23
23
  begin
24
24
  lib_name = 'libczmq'
25
25
  lib_dirs = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
26
- env_path = ENV["#{lib_name.upcase}_PATH"]
27
- lib_dirs = [*env_path.split(':'), *lib_dirs] if env_path
26
+ env_name = "#{lib_name.upcase}_PATH"
27
+ lib_dirs = [*ENV[env_name].split(':'), *lib_dirs] if ENV[env_name]
28
28
  lib_paths = lib_dirs.map { |path| "#{path}/#{lib_name}.#{::FFI::Platform::LIBSUFFIX}" }
29
29
  ffi_lib lib_paths + [lib_name]
30
30
  @available = true
@@ -84,8 +84,11 @@ module CZMQ
84
84
  attach_function :zcert_unset_meta, [:pointer, :string], :void, **opts
85
85
  rescue ::FFI::NotFoundError
86
86
  if $VERBOSE || $DEBUG
87
- warn "The function zcert_unset_meta() can't be used through " +
88
- "this Ruby binding because it's not available."
87
+ warn "The DRAFT function zcert_unset_meta()" +
88
+ " is not provided by the installed CZMQ library."
89
+ end
90
+ def self.zcert_unset_meta(*)
91
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
89
92
  end
90
93
  end
91
94
  attach_function :zcert_meta, [:pointer, :string], :string, **opts
@@ -97,7 +100,6 @@ module CZMQ
97
100
  attach_function :zcert_dup, [:pointer], :pointer, **opts
98
101
  attach_function :zcert_eq, [:pointer, :pointer], :bool, **opts
99
102
  attach_function :zcert_print, [:pointer], :void, **opts
100
- attach_function :zcert_fprint, [:pointer, :pointer], :void, **opts
101
103
  attach_function :zcert_test, [:bool], :void, **opts
102
104
 
103
105
  require_relative 'ffi/zcert'
@@ -108,8 +110,11 @@ module CZMQ
108
110
  attach_function :zcertstore_set_loader, [:pointer, :pointer, :pointer, :pointer], :void, **opts
109
111
  rescue ::FFI::NotFoundError
110
112
  if $VERBOSE || $DEBUG
111
- warn "The function zcertstore_set_loader() can't be used through " +
112
- "this Ruby binding because it's not available."
113
+ warn "The DRAFT function zcertstore_set_loader()" +
114
+ " is not provided by the installed CZMQ library."
115
+ end
116
+ def self.zcertstore_set_loader(*)
117
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
113
118
  end
114
119
  end
115
120
  attach_function :zcertstore_lookup, [:pointer, :string], :pointer, **opts
@@ -118,12 +123,14 @@ module CZMQ
118
123
  attach_function :zcertstore_empty, [:pointer], :void, **opts
119
124
  rescue ::FFI::NotFoundError
120
125
  if $VERBOSE || $DEBUG
121
- warn "The function zcertstore_empty() can't be used through " +
122
- "this Ruby binding because it's not available."
126
+ warn "The DRAFT function zcertstore_empty()" +
127
+ " is not provided by the installed CZMQ library."
128
+ end
129
+ def self.zcertstore_empty(*)
130
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
123
131
  end
124
132
  end
125
133
  attach_function :zcertstore_print, [:pointer], :void, **opts
126
- attach_function :zcertstore_fprint, [:pointer, :pointer], :void, **opts
127
134
  attach_function :zcertstore_test, [:bool], :void, **opts
128
135
 
129
136
  require_relative 'ffi/zcertstore'
@@ -286,32 +293,44 @@ module CZMQ
286
293
  attach_function :zframe_routing_id, [:pointer], :uint32, **opts
287
294
  rescue ::FFI::NotFoundError
288
295
  if $VERBOSE || $DEBUG
289
- warn "The function zframe_routing_id() can't be used through " +
290
- "this Ruby binding because it's not available."
296
+ warn "The DRAFT function zframe_routing_id()" +
297
+ " is not provided by the installed CZMQ library."
298
+ end
299
+ def self.zframe_routing_id(*)
300
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
291
301
  end
292
302
  end
293
303
  begin # DRAFT method
294
304
  attach_function :zframe_set_routing_id, [:pointer, :uint32], :void, **opts
295
305
  rescue ::FFI::NotFoundError
296
306
  if $VERBOSE || $DEBUG
297
- warn "The function zframe_set_routing_id() can't be used through " +
298
- "this Ruby binding because it's not available."
307
+ warn "The DRAFT function zframe_set_routing_id()" +
308
+ " is not provided by the installed CZMQ library."
309
+ end
310
+ def self.zframe_set_routing_id(*)
311
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
299
312
  end
300
313
  end
301
314
  begin # DRAFT method
302
315
  attach_function :zframe_group, [:pointer], :string, **opts
303
316
  rescue ::FFI::NotFoundError
304
317
  if $VERBOSE || $DEBUG
305
- warn "The function zframe_group() can't be used through " +
306
- "this Ruby binding because it's not available."
318
+ warn "The DRAFT function zframe_group()" +
319
+ " is not provided by the installed CZMQ library."
320
+ end
321
+ def self.zframe_group(*)
322
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
307
323
  end
308
324
  end
309
325
  begin # DRAFT method
310
326
  attach_function :zframe_set_group, [:pointer, :string], :int, **opts
311
327
  rescue ::FFI::NotFoundError
312
328
  if $VERBOSE || $DEBUG
313
- warn "The function zframe_set_group() can't be used through " +
314
- "this Ruby binding because it's not available."
329
+ warn "The DRAFT function zframe_set_group()" +
330
+ " is not provided by the installed CZMQ library."
331
+ end
332
+ def self.zframe_set_group(*)
333
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
315
334
  end
316
335
  end
317
336
  attach_function :zframe_eq, [:pointer, :pointer], :bool, **opts
@@ -343,7 +362,6 @@ module CZMQ
343
362
  attach_function :zhash_load, [:pointer, :string], :int, **opts
344
363
  attach_function :zhash_refresh, [:pointer], :int, **opts
345
364
  attach_function :zhash_autofree, [:pointer], :void, **opts
346
- attach_function :zhash_foreach, [:pointer, :pointer, :pointer], :int, **opts
347
365
  attach_function :zhash_test, [:bool], :void, **opts
348
366
 
349
367
  require_relative 'ffi/zhash'
@@ -354,8 +372,11 @@ module CZMQ
354
372
  attach_function :zhashx_unpack_own, [:pointer, :pointer], :pointer, **opts
355
373
  rescue ::FFI::NotFoundError
356
374
  if $VERBOSE || $DEBUG
357
- warn "The function zhashx_unpack_own() can't be used through " +
358
- "this Ruby binding because it's not available."
375
+ warn "The DRAFT function zhashx_unpack_own()" +
376
+ " is not provided by the installed CZMQ library."
377
+ end
378
+ def self.zhashx_unpack_own(*)
379
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
359
380
  end
360
381
  end
361
382
  attach_function :zhashx_destroy, [:pointer], :void, **opts
@@ -381,8 +402,11 @@ module CZMQ
381
402
  attach_function :zhashx_pack_own, [:pointer, :pointer], :pointer, **opts
382
403
  rescue ::FFI::NotFoundError
383
404
  if $VERBOSE || $DEBUG
384
- warn "The function zhashx_pack_own() can't be used through " +
385
- "this Ruby binding because it's not available."
405
+ warn "The DRAFT function zhashx_pack_own()" +
406
+ " is not provided by the installed CZMQ library."
407
+ end
408
+ def self.zhashx_pack_own(*)
409
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
386
410
  end
387
411
  end
388
412
  attach_function :zhashx_dup, [:pointer], :pointer, **opts
@@ -393,8 +417,6 @@ module CZMQ
393
417
  attach_function :zhashx_set_key_comparator, [:pointer, :pointer], :void, **opts
394
418
  attach_function :zhashx_set_key_hasher, [:pointer, :pointer], :void, **opts
395
419
  attach_function :zhashx_dup_v2, [:pointer], :pointer, **opts
396
- attach_function :zhashx_autofree, [:pointer], :void, **opts
397
- attach_function :zhashx_foreach, [:pointer, :pointer, :pointer], :int, **opts
398
420
  attach_function :zhashx_test, [:bool], :void, **opts
399
421
 
400
422
  require_relative 'ffi/zhashx'
@@ -485,14 +507,7 @@ module CZMQ
485
507
  attach_function :zloop_set_ticket_delay, [:pointer, :size_t], :void, **opts
486
508
  attach_function :zloop_set_max_timers, [:pointer, :size_t], :void, **opts
487
509
  attach_function :zloop_set_verbose, [:pointer, :bool], :void, **opts
488
- begin # DRAFT method
489
- attach_function :zloop_set_nonstop, [:pointer, :bool], :void, **opts
490
- rescue ::FFI::NotFoundError
491
- if $VERBOSE || $DEBUG
492
- warn "The function zloop_set_nonstop() can't be used through " +
493
- "this Ruby binding because it's not available."
494
- end
495
- end
510
+ attach_function :zloop_set_nonstop, [:pointer, :bool], :void, **opts
496
511
  attach_function :zloop_start, [:pointer], :int, **opts
497
512
  attach_function :zloop_test, [:bool], :void, **opts
498
513
 
@@ -512,16 +527,22 @@ module CZMQ
512
527
  attach_function :zmsg_routing_id, [:pointer], :uint32, **opts
513
528
  rescue ::FFI::NotFoundError
514
529
  if $VERBOSE || $DEBUG
515
- warn "The function zmsg_routing_id() can't be used through " +
516
- "this Ruby binding because it's not available."
530
+ warn "The DRAFT function zmsg_routing_id()" +
531
+ " is not provided by the installed CZMQ library."
532
+ end
533
+ def self.zmsg_routing_id(*)
534
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
517
535
  end
518
536
  end
519
537
  begin # DRAFT method
520
538
  attach_function :zmsg_set_routing_id, [:pointer, :uint32], :void, **opts
521
539
  rescue ::FFI::NotFoundError
522
540
  if $VERBOSE || $DEBUG
523
- warn "The function zmsg_set_routing_id() can't be used through " +
524
- "this Ruby binding because it's not available."
541
+ warn "The DRAFT function zmsg_set_routing_id()" +
542
+ " is not provided by the installed CZMQ library."
543
+ end
544
+ def self.zmsg_set_routing_id(*)
545
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
525
546
  end
526
547
  end
527
548
  attach_function :zmsg_prepend, [:pointer, :pointer], :int, **opts
@@ -555,14 +576,7 @@ module CZMQ
555
576
  attach_function :zpoller_destroy, [:pointer], :void, **opts
556
577
  attach_function :zpoller_add, [:pointer, :pointer], :int, **opts
557
578
  attach_function :zpoller_remove, [:pointer, :pointer], :int, **opts
558
- begin # DRAFT method
559
- attach_function :zpoller_set_nonstop, [:pointer, :bool], :void, **opts
560
- rescue ::FFI::NotFoundError
561
- if $VERBOSE || $DEBUG
562
- warn "The function zpoller_set_nonstop() can't be used through " +
563
- "this Ruby binding because it's not available."
564
- end
565
- end
579
+ attach_function :zpoller_set_nonstop, [:pointer, :bool], :void, **opts
566
580
  attach_function :zpoller_wait, [:pointer, :int], :pointer, **opts
567
581
  attach_function :zpoller_expired, [:pointer], :bool, **opts
568
582
  attach_function :zpoller_terminated, [:pointer], :bool, **opts
@@ -574,152 +588,209 @@ module CZMQ
574
588
  attach_function :zproc_czmq_version, [], :int, **opts
575
589
  rescue ::FFI::NotFoundError
576
590
  if $VERBOSE || $DEBUG
577
- warn "The function zproc_czmq_version() can't be used through " +
578
- "this Ruby binding because it's not available."
591
+ warn "The DRAFT function zproc_czmq_version()" +
592
+ " is not provided by the installed CZMQ library."
593
+ end
594
+ def self.zproc_czmq_version(*)
595
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
579
596
  end
580
597
  end
581
598
  begin # DRAFT method
582
599
  attach_function :zproc_interrupted, [], :bool, **opts
583
600
  rescue ::FFI::NotFoundError
584
601
  if $VERBOSE || $DEBUG
585
- warn "The function zproc_interrupted() can't be used through " +
586
- "this Ruby binding because it's not available."
602
+ warn "The DRAFT function zproc_interrupted()" +
603
+ " is not provided by the installed CZMQ library."
604
+ end
605
+ def self.zproc_interrupted(*)
606
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
587
607
  end
588
608
  end
589
609
  begin # DRAFT method
590
610
  attach_function :zproc_has_curve, [], :bool, **opts
591
611
  rescue ::FFI::NotFoundError
592
612
  if $VERBOSE || $DEBUG
593
- warn "The function zproc_has_curve() can't be used through " +
594
- "this Ruby binding because it's not available."
613
+ warn "The DRAFT function zproc_has_curve()" +
614
+ " is not provided by the installed CZMQ library."
615
+ end
616
+ def self.zproc_has_curve(*)
617
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
595
618
  end
596
619
  end
597
620
  begin # DRAFT method
598
621
  attach_function :zproc_hostname, [], :pointer, **opts
599
622
  rescue ::FFI::NotFoundError
600
623
  if $VERBOSE || $DEBUG
601
- warn "The function zproc_hostname() can't be used through " +
602
- "this Ruby binding because it's not available."
624
+ warn "The DRAFT function zproc_hostname()" +
625
+ " is not provided by the installed CZMQ library."
626
+ end
627
+ def self.zproc_hostname(*)
628
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
603
629
  end
604
630
  end
605
631
  begin # DRAFT method
606
632
  attach_function :zproc_daemonize, [:string], :void, **opts
607
633
  rescue ::FFI::NotFoundError
608
634
  if $VERBOSE || $DEBUG
609
- warn "The function zproc_daemonize() can't be used through " +
610
- "this Ruby binding because it's not available."
635
+ warn "The DRAFT function zproc_daemonize()" +
636
+ " is not provided by the installed CZMQ library."
637
+ end
638
+ def self.zproc_daemonize(*)
639
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
611
640
  end
612
641
  end
613
642
  begin # DRAFT method
614
643
  attach_function :zproc_run_as, [:string, :string, :string], :void, **opts
615
644
  rescue ::FFI::NotFoundError
616
645
  if $VERBOSE || $DEBUG
617
- warn "The function zproc_run_as() can't be used through " +
618
- "this Ruby binding because it's not available."
646
+ warn "The DRAFT function zproc_run_as()" +
647
+ " is not provided by the installed CZMQ library."
648
+ end
649
+ def self.zproc_run_as(*)
650
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
619
651
  end
620
652
  end
621
653
  begin # DRAFT method
622
654
  attach_function :zproc_set_io_threads, [:size_t], :void, **opts
623
655
  rescue ::FFI::NotFoundError
624
656
  if $VERBOSE || $DEBUG
625
- warn "The function zproc_set_io_threads() can't be used through " +
626
- "this Ruby binding because it's not available."
657
+ warn "The DRAFT function zproc_set_io_threads()" +
658
+ " is not provided by the installed CZMQ library."
659
+ end
660
+ def self.zproc_set_io_threads(*)
661
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
627
662
  end
628
663
  end
629
664
  begin # DRAFT method
630
665
  attach_function :zproc_set_max_sockets, [:size_t], :void, **opts
631
666
  rescue ::FFI::NotFoundError
632
667
  if $VERBOSE || $DEBUG
633
- warn "The function zproc_set_max_sockets() can't be used through " +
634
- "this Ruby binding because it's not available."
668
+ warn "The DRAFT function zproc_set_max_sockets()" +
669
+ " is not provided by the installed CZMQ library."
670
+ end
671
+ def self.zproc_set_max_sockets(*)
672
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
635
673
  end
636
674
  end
637
675
  begin # DRAFT method
638
676
  attach_function :zproc_set_biface, [:string], :void, **opts
639
677
  rescue ::FFI::NotFoundError
640
678
  if $VERBOSE || $DEBUG
641
- warn "The function zproc_set_biface() can't be used through " +
642
- "this Ruby binding because it's not available."
679
+ warn "The DRAFT function zproc_set_biface()" +
680
+ " is not provided by the installed CZMQ library."
681
+ end
682
+ def self.zproc_set_biface(*)
683
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
643
684
  end
644
685
  end
645
686
  begin # DRAFT method
646
687
  attach_function :zproc_biface, [], :string, **opts
647
688
  rescue ::FFI::NotFoundError
648
689
  if $VERBOSE || $DEBUG
649
- warn "The function zproc_biface() can't be used through " +
650
- "this Ruby binding because it's not available."
690
+ warn "The DRAFT function zproc_biface()" +
691
+ " is not provided by the installed CZMQ library."
692
+ end
693
+ def self.zproc_biface(*)
694
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
651
695
  end
652
696
  end
653
697
  begin # DRAFT method
654
698
  attach_function :zproc_set_log_ident, [:string], :void, **opts
655
699
  rescue ::FFI::NotFoundError
656
700
  if $VERBOSE || $DEBUG
657
- warn "The function zproc_set_log_ident() can't be used through " +
658
- "this Ruby binding because it's not available."
701
+ warn "The DRAFT function zproc_set_log_ident()" +
702
+ " is not provided by the installed CZMQ library."
703
+ end
704
+ def self.zproc_set_log_ident(*)
705
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
659
706
  end
660
707
  end
661
708
  begin # DRAFT method
662
709
  attach_function :zproc_set_log_sender, [:string], :void, **opts
663
710
  rescue ::FFI::NotFoundError
664
711
  if $VERBOSE || $DEBUG
665
- warn "The function zproc_set_log_sender() can't be used through " +
666
- "this Ruby binding because it's not available."
712
+ warn "The DRAFT function zproc_set_log_sender()" +
713
+ " is not provided by the installed CZMQ library."
714
+ end
715
+ def self.zproc_set_log_sender(*)
716
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
667
717
  end
668
718
  end
669
719
  begin # DRAFT method
670
720
  attach_function :zproc_set_log_system, [:bool], :void, **opts
671
721
  rescue ::FFI::NotFoundError
672
722
  if $VERBOSE || $DEBUG
673
- warn "The function zproc_set_log_system() can't be used through " +
674
- "this Ruby binding because it's not available."
723
+ warn "The DRAFT function zproc_set_log_system()" +
724
+ " is not provided by the installed CZMQ library."
725
+ end
726
+ def self.zproc_set_log_system(*)
727
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
675
728
  end
676
729
  end
677
730
  begin # DRAFT method
678
731
  attach_function :zproc_log_error, [:string, :varargs], :void, **opts
679
732
  rescue ::FFI::NotFoundError
680
733
  if $VERBOSE || $DEBUG
681
- warn "The function zproc_log_error() can't be used through " +
682
- "this Ruby binding because it's not available."
734
+ warn "The DRAFT function zproc_log_error()" +
735
+ " is not provided by the installed CZMQ library."
736
+ end
737
+ def self.zproc_log_error(*)
738
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
683
739
  end
684
740
  end
685
741
  begin # DRAFT method
686
742
  attach_function :zproc_log_warning, [:string, :varargs], :void, **opts
687
743
  rescue ::FFI::NotFoundError
688
744
  if $VERBOSE || $DEBUG
689
- warn "The function zproc_log_warning() can't be used through " +
690
- "this Ruby binding because it's not available."
745
+ warn "The DRAFT function zproc_log_warning()" +
746
+ " is not provided by the installed CZMQ library."
747
+ end
748
+ def self.zproc_log_warning(*)
749
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
691
750
  end
692
751
  end
693
752
  begin # DRAFT method
694
753
  attach_function :zproc_log_notice, [:string, :varargs], :void, **opts
695
754
  rescue ::FFI::NotFoundError
696
755
  if $VERBOSE || $DEBUG
697
- warn "The function zproc_log_notice() can't be used through " +
698
- "this Ruby binding because it's not available."
756
+ warn "The DRAFT function zproc_log_notice()" +
757
+ " is not provided by the installed CZMQ library."
758
+ end
759
+ def self.zproc_log_notice(*)
760
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
699
761
  end
700
762
  end
701
763
  begin # DRAFT method
702
764
  attach_function :zproc_log_info, [:string, :varargs], :void, **opts
703
765
  rescue ::FFI::NotFoundError
704
766
  if $VERBOSE || $DEBUG
705
- warn "The function zproc_log_info() can't be used through " +
706
- "this Ruby binding because it's not available."
767
+ warn "The DRAFT function zproc_log_info()" +
768
+ " is not provided by the installed CZMQ library."
769
+ end
770
+ def self.zproc_log_info(*)
771
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
707
772
  end
708
773
  end
709
774
  begin # DRAFT method
710
775
  attach_function :zproc_log_debug, [:string, :varargs], :void, **opts
711
776
  rescue ::FFI::NotFoundError
712
777
  if $VERBOSE || $DEBUG
713
- warn "The function zproc_log_debug() can't be used through " +
714
- "this Ruby binding because it's not available."
778
+ warn "The DRAFT function zproc_log_debug()" +
779
+ " is not provided by the installed CZMQ library."
780
+ end
781
+ def self.zproc_log_debug(*)
782
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
715
783
  end
716
784
  end
717
785
  begin # DRAFT method
718
786
  attach_function :zproc_test, [:bool], :void, **opts
719
787
  rescue ::FFI::NotFoundError
720
788
  if $VERBOSE || $DEBUG
721
- warn "The function zproc_test() can't be used through " +
722
- "this Ruby binding because it's not available."
789
+ warn "The DRAFT function zproc_test()" +
790
+ " is not provided by the installed CZMQ library."
791
+ end
792
+ def self.zproc_test(*)
793
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
723
794
  end
724
795
  end
725
796
 
@@ -742,48 +813,66 @@ module CZMQ
742
813
  attach_function :zsock_new_server, [:string], :pointer, **opts
743
814
  rescue ::FFI::NotFoundError
744
815
  if $VERBOSE || $DEBUG
745
- warn "The function zsock_new_server() can't be used through " +
746
- "this Ruby binding because it's not available."
816
+ warn "The DRAFT function zsock_new_server()" +
817
+ " is not provided by the installed CZMQ library."
818
+ end
819
+ def self.zsock_new_server(*)
820
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
747
821
  end
748
822
  end
749
823
  begin # DRAFT method
750
824
  attach_function :zsock_new_client, [:string], :pointer, **opts
751
825
  rescue ::FFI::NotFoundError
752
826
  if $VERBOSE || $DEBUG
753
- warn "The function zsock_new_client() can't be used through " +
754
- "this Ruby binding because it's not available."
827
+ warn "The DRAFT function zsock_new_client()" +
828
+ " is not provided by the installed CZMQ library."
829
+ end
830
+ def self.zsock_new_client(*)
831
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
755
832
  end
756
833
  end
757
834
  begin # DRAFT method
758
835
  attach_function :zsock_new_radio, [:string], :pointer, **opts
759
836
  rescue ::FFI::NotFoundError
760
837
  if $VERBOSE || $DEBUG
761
- warn "The function zsock_new_radio() can't be used through " +
762
- "this Ruby binding because it's not available."
838
+ warn "The DRAFT function zsock_new_radio()" +
839
+ " is not provided by the installed CZMQ library."
840
+ end
841
+ def self.zsock_new_radio(*)
842
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
763
843
  end
764
844
  end
765
845
  begin # DRAFT method
766
846
  attach_function :zsock_new_dish, [:string], :pointer, **opts
767
847
  rescue ::FFI::NotFoundError
768
848
  if $VERBOSE || $DEBUG
769
- warn "The function zsock_new_dish() can't be used through " +
770
- "this Ruby binding because it's not available."
849
+ warn "The DRAFT function zsock_new_dish()" +
850
+ " is not provided by the installed CZMQ library."
851
+ end
852
+ def self.zsock_new_dish(*)
853
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
771
854
  end
772
855
  end
773
856
  begin # DRAFT method
774
857
  attach_function :zsock_new_gather, [:string], :pointer, **opts
775
858
  rescue ::FFI::NotFoundError
776
859
  if $VERBOSE || $DEBUG
777
- warn "The function zsock_new_gather() can't be used through " +
778
- "this Ruby binding because it's not available."
860
+ warn "The DRAFT function zsock_new_gather()" +
861
+ " is not provided by the installed CZMQ library."
862
+ end
863
+ def self.zsock_new_gather(*)
864
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
779
865
  end
780
866
  end
781
867
  begin # DRAFT method
782
868
  attach_function :zsock_new_scatter, [:string], :pointer, **opts
783
869
  rescue ::FFI::NotFoundError
784
870
  if $VERBOSE || $DEBUG
785
- warn "The function zsock_new_scatter() can't be used through " +
786
- "this Ruby binding because it's not available."
871
+ warn "The DRAFT function zsock_new_scatter()" +
872
+ " is not provided by the installed CZMQ library."
873
+ end
874
+ def self.zsock_new_scatter(*)
875
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
787
876
  end
788
877
  end
789
878
  attach_function :zsock_destroy, [:pointer], :void, **opts
@@ -804,16 +893,22 @@ module CZMQ
804
893
  attach_function :zsock_routing_id, [:pointer], :uint32, **opts
805
894
  rescue ::FFI::NotFoundError
806
895
  if $VERBOSE || $DEBUG
807
- warn "The function zsock_routing_id() can't be used through " +
808
- "this Ruby binding because it's not available."
896
+ warn "The DRAFT function zsock_routing_id()" +
897
+ " is not provided by the installed CZMQ library."
898
+ end
899
+ def self.zsock_routing_id(*)
900
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
809
901
  end
810
902
  end
811
903
  begin # DRAFT method
812
904
  attach_function :zsock_set_routing_id, [:pointer, :uint32], :void, **opts
813
905
  rescue ::FFI::NotFoundError
814
906
  if $VERBOSE || $DEBUG
815
- warn "The function zsock_set_routing_id() can't be used through " +
816
- "this Ruby binding because it's not available."
907
+ warn "The DRAFT function zsock_set_routing_id()" +
908
+ " is not provided by the installed CZMQ library."
909
+ end
910
+ def self.zsock_set_routing_id(*)
911
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
817
912
  end
818
913
  end
819
914
  attach_function :zsock_set_unbounded, [:pointer], :void, **opts
@@ -824,87 +919,65 @@ module CZMQ
824
919
  attach_function :zsock_join, [:pointer, :string], :int, **opts
825
920
  rescue ::FFI::NotFoundError
826
921
  if $VERBOSE || $DEBUG
827
- warn "The function zsock_join() can't be used through " +
828
- "this Ruby binding because it's not available."
922
+ warn "The DRAFT function zsock_join()" +
923
+ " is not provided by the installed CZMQ library."
924
+ end
925
+ def self.zsock_join(*)
926
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
829
927
  end
830
928
  end
831
929
  begin # DRAFT method
832
930
  attach_function :zsock_leave, [:pointer, :string], :int, **opts
833
931
  rescue ::FFI::NotFoundError
834
932
  if $VERBOSE || $DEBUG
835
- warn "The function zsock_leave() can't be used through " +
836
- "this Ruby binding because it's not available."
933
+ warn "The DRAFT function zsock_leave()" +
934
+ " is not provided by the installed CZMQ library."
935
+ end
936
+ def self.zsock_leave(*)
937
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
837
938
  end
838
939
  end
839
940
  attach_function :zsock_is, [:pointer], :bool, **opts
840
941
  attach_function :zsock_resolve, [:pointer], :pointer, **opts
841
- begin # DRAFT method
842
- attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts
843
- rescue ::FFI::NotFoundError
844
- if $VERBOSE || $DEBUG
845
- warn "The function zsock_heartbeat_ivl() can't be used through " +
846
- "this Ruby binding because it's not available."
847
- end
848
- end
849
- begin # DRAFT method
850
- attach_function :zsock_set_heartbeat_ivl, [:pointer, :int], :void, **opts
851
- rescue ::FFI::NotFoundError
852
- if $VERBOSE || $DEBUG
853
- warn "The function zsock_set_heartbeat_ivl() can't be used through " +
854
- "this Ruby binding because it's not available."
855
- end
856
- end
857
- begin # DRAFT method
858
- attach_function :zsock_heartbeat_ttl, [:pointer], :int, **opts
859
- rescue ::FFI::NotFoundError
860
- if $VERBOSE || $DEBUG
861
- warn "The function zsock_heartbeat_ttl() can't be used through " +
862
- "this Ruby binding because it's not available."
863
- end
864
- end
865
- begin # DRAFT method
866
- attach_function :zsock_set_heartbeat_ttl, [:pointer, :int], :void, **opts
867
- rescue ::FFI::NotFoundError
868
- if $VERBOSE || $DEBUG
869
- warn "The function zsock_set_heartbeat_ttl() can't be used through " +
870
- "this Ruby binding because it's not available."
871
- end
872
- end
873
- begin # DRAFT method
874
- attach_function :zsock_heartbeat_timeout, [:pointer], :int, **opts
875
- rescue ::FFI::NotFoundError
876
- if $VERBOSE || $DEBUG
877
- warn "The function zsock_heartbeat_timeout() can't be used through " +
878
- "this Ruby binding because it's not available."
879
- end
880
- end
881
- begin # DRAFT method
882
- attach_function :zsock_set_heartbeat_timeout, [:pointer, :int], :void, **opts
883
- rescue ::FFI::NotFoundError
884
- if $VERBOSE || $DEBUG
885
- warn "The function zsock_set_heartbeat_timeout() can't be used through " +
886
- "this Ruby binding because it's not available."
887
- end
888
- end
889
- begin # DRAFT method
890
- attach_function :zsock_use_fd, [:pointer], :int, **opts
891
- rescue ::FFI::NotFoundError
892
- if $VERBOSE || $DEBUG
893
- warn "The function zsock_use_fd() can't be used through " +
894
- "this Ruby binding because it's not available."
895
- end
896
- end
897
- begin # DRAFT method
898
- attach_function :zsock_set_use_fd, [:pointer, :int], :void, **opts
899
- rescue ::FFI::NotFoundError
900
- if $VERBOSE || $DEBUG
901
- warn "The function zsock_set_use_fd() can't be used through " +
902
- "this Ruby binding because it's not available."
903
- end
904
- end
942
+ attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts
943
+ attach_function :zsock_set_heartbeat_ivl, [:pointer, :int], :void, **opts
944
+ attach_function :zsock_heartbeat_ttl, [:pointer], :int, **opts
945
+ attach_function :zsock_set_heartbeat_ttl, [:pointer, :int], :void, **opts
946
+ attach_function :zsock_heartbeat_timeout, [:pointer], :int, **opts
947
+ attach_function :zsock_set_heartbeat_timeout, [:pointer, :int], :void, **opts
948
+ attach_function :zsock_use_fd, [:pointer], :int, **opts
949
+ attach_function :zsock_set_use_fd, [:pointer, :int], :void, **opts
950
+ attach_function :zsock_set_xpub_manual, [:pointer, :int], :void, **opts
951
+ attach_function :zsock_set_xpub_welcome_msg, [:pointer, :string], :void, **opts
952
+ attach_function :zsock_set_stream_notify, [:pointer, :int], :void, **opts
953
+ attach_function :zsock_invert_matching, [:pointer], :int, **opts
954
+ attach_function :zsock_set_invert_matching, [:pointer, :int], :void, **opts
955
+ attach_function :zsock_set_xpub_verboser, [:pointer, :int], :void, **opts
956
+ attach_function :zsock_connect_timeout, [:pointer], :int, **opts
957
+ attach_function :zsock_set_connect_timeout, [:pointer, :int], :void, **opts
958
+ attach_function :zsock_tcp_maxrt, [:pointer], :int, **opts
959
+ attach_function :zsock_set_tcp_maxrt, [:pointer, :int], :void, **opts
960
+ attach_function :zsock_thread_safe, [:pointer], :int, **opts
961
+ attach_function :zsock_multicast_maxtpdu, [:pointer], :int, **opts
962
+ attach_function :zsock_set_multicast_maxtpdu, [:pointer, :int], :void, **opts
963
+ attach_function :zsock_vmci_buffer_size, [:pointer], :int, **opts
964
+ attach_function :zsock_set_vmci_buffer_size, [:pointer, :int], :void, **opts
965
+ attach_function :zsock_vmci_buffer_min_size, [:pointer], :int, **opts
966
+ attach_function :zsock_set_vmci_buffer_min_size, [:pointer, :int], :void, **opts
967
+ attach_function :zsock_vmci_buffer_max_size, [:pointer], :int, **opts
968
+ attach_function :zsock_set_vmci_buffer_max_size, [:pointer, :int], :void, **opts
969
+ attach_function :zsock_vmci_connect_timeout, [:pointer], :int, **opts
970
+ attach_function :zsock_set_vmci_connect_timeout, [:pointer, :int], :void, **opts
905
971
  attach_function :zsock_tos, [:pointer], :int, **opts
906
972
  attach_function :zsock_set_tos, [:pointer, :int], :void, **opts
907
973
  attach_function :zsock_set_router_handover, [:pointer, :int], :void, **opts
974
+ attach_function :zsock_set_connect_rid, [:pointer, :string], :void, **opts
975
+ attach_function :zsock_set_connect_rid_bin, [:pointer, :pointer], :void, **opts
976
+ attach_function :zsock_handshake_ivl, [:pointer], :int, **opts
977
+ attach_function :zsock_set_handshake_ivl, [:pointer, :int], :void, **opts
978
+ attach_function :zsock_socks_proxy, [:pointer], :pointer, **opts
979
+ attach_function :zsock_set_socks_proxy, [:pointer, :string], :void, **opts
980
+ attach_function :zsock_set_xpub_nodrop, [:pointer, :int], :void, **opts
908
981
  attach_function :zsock_set_router_mandatory, [:pointer, :int], :void, **opts
909
982
  attach_function :zsock_set_probe_router, [:pointer, :int], :void, **opts
910
983
  attach_function :zsock_set_req_relaxed, [:pointer, :int], :void, **opts
@@ -1011,8 +1084,11 @@ module CZMQ
1011
1084
  attach_function :zstr_str, [:pointer], :pointer, **opts
1012
1085
  rescue ::FFI::NotFoundError
1013
1086
  if $VERBOSE || $DEBUG
1014
- warn "The function zstr_str() can't be used through " +
1015
- "this Ruby binding because it's not available."
1087
+ warn "The DRAFT function zstr_str()" +
1088
+ " is not provided by the installed CZMQ library."
1089
+ end
1090
+ def self.zstr_str(*)
1091
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1016
1092
  end
1017
1093
  end
1018
1094
  attach_function :zstr_free, [:pointer], :void, **opts
@@ -1024,72 +1100,99 @@ module CZMQ
1024
1100
  attach_function :ztimerset_new, [], :pointer, **opts
1025
1101
  rescue ::FFI::NotFoundError
1026
1102
  if $VERBOSE || $DEBUG
1027
- warn "The function ztimerset_new() can't be used through " +
1028
- "this Ruby binding because it's not available."
1103
+ warn "The DRAFT function ztimerset_new()" +
1104
+ " is not provided by the installed CZMQ library."
1105
+ end
1106
+ def self.ztimerset_new(*)
1107
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1029
1108
  end
1030
1109
  end
1031
1110
  begin # DRAFT method
1032
1111
  attach_function :ztimerset_destroy, [:pointer], :void, **opts
1033
1112
  rescue ::FFI::NotFoundError
1034
1113
  if $VERBOSE || $DEBUG
1035
- warn "The function ztimerset_destroy() can't be used through " +
1036
- "this Ruby binding because it's not available."
1114
+ warn "The DRAFT function ztimerset_destroy()" +
1115
+ " is not provided by the installed CZMQ library."
1116
+ end
1117
+ def self.ztimerset_destroy(*)
1118
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1037
1119
  end
1038
1120
  end
1039
1121
  begin # DRAFT method
1040
1122
  attach_function :ztimerset_add, [:pointer, :size_t, :pointer, :pointer], :int, **opts
1041
1123
  rescue ::FFI::NotFoundError
1042
1124
  if $VERBOSE || $DEBUG
1043
- warn "The function ztimerset_add() can't be used through " +
1044
- "this Ruby binding because it's not available."
1125
+ warn "The DRAFT function ztimerset_add()" +
1126
+ " is not provided by the installed CZMQ library."
1127
+ end
1128
+ def self.ztimerset_add(*)
1129
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1045
1130
  end
1046
1131
  end
1047
1132
  begin # DRAFT method
1048
1133
  attach_function :ztimerset_cancel, [:pointer, :int], :int, **opts
1049
1134
  rescue ::FFI::NotFoundError
1050
1135
  if $VERBOSE || $DEBUG
1051
- warn "The function ztimerset_cancel() can't be used through " +
1052
- "this Ruby binding because it's not available."
1136
+ warn "The DRAFT function ztimerset_cancel()" +
1137
+ " is not provided by the installed CZMQ library."
1138
+ end
1139
+ def self.ztimerset_cancel(*)
1140
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1053
1141
  end
1054
1142
  end
1055
1143
  begin # DRAFT method
1056
1144
  attach_function :ztimerset_set_interval, [:pointer, :int, :size_t], :int, **opts
1057
1145
  rescue ::FFI::NotFoundError
1058
1146
  if $VERBOSE || $DEBUG
1059
- warn "The function ztimerset_set_interval() can't be used through " +
1060
- "this Ruby binding because it's not available."
1147
+ warn "The DRAFT function ztimerset_set_interval()" +
1148
+ " is not provided by the installed CZMQ library."
1149
+ end
1150
+ def self.ztimerset_set_interval(*)
1151
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1061
1152
  end
1062
1153
  end
1063
1154
  begin # DRAFT method
1064
1155
  attach_function :ztimerset_reset, [:pointer, :int], :int, **opts
1065
1156
  rescue ::FFI::NotFoundError
1066
1157
  if $VERBOSE || $DEBUG
1067
- warn "The function ztimerset_reset() can't be used through " +
1068
- "this Ruby binding because it's not available."
1158
+ warn "The DRAFT function ztimerset_reset()" +
1159
+ " is not provided by the installed CZMQ library."
1160
+ end
1161
+ def self.ztimerset_reset(*)
1162
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1069
1163
  end
1070
1164
  end
1071
1165
  begin # DRAFT method
1072
1166
  attach_function :ztimerset_timeout, [:pointer], :int, **opts
1073
1167
  rescue ::FFI::NotFoundError
1074
1168
  if $VERBOSE || $DEBUG
1075
- warn "The function ztimerset_timeout() can't be used through " +
1076
- "this Ruby binding because it's not available."
1169
+ warn "The DRAFT function ztimerset_timeout()" +
1170
+ " is not provided by the installed CZMQ library."
1171
+ end
1172
+ def self.ztimerset_timeout(*)
1173
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1077
1174
  end
1078
1175
  end
1079
1176
  begin # DRAFT method
1080
1177
  attach_function :ztimerset_execute, [:pointer], :int, **opts
1081
1178
  rescue ::FFI::NotFoundError
1082
1179
  if $VERBOSE || $DEBUG
1083
- warn "The function ztimerset_execute() can't be used through " +
1084
- "this Ruby binding because it's not available."
1180
+ warn "The DRAFT function ztimerset_execute()" +
1181
+ " is not provided by the installed CZMQ library."
1182
+ end
1183
+ def self.ztimerset_execute(*)
1184
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1085
1185
  end
1086
1186
  end
1087
1187
  begin # DRAFT method
1088
1188
  attach_function :ztimerset_test, [:bool], :void, **opts
1089
1189
  rescue ::FFI::NotFoundError
1090
1190
  if $VERBOSE || $DEBUG
1091
- warn "The function ztimerset_test() can't be used through " +
1092
- "this Ruby binding because it's not available."
1191
+ warn "The DRAFT function ztimerset_test()" +
1192
+ " is not provided by the installed CZMQ library."
1193
+ end
1194
+ def self.ztimerset_test(*)
1195
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1093
1196
  end
1094
1197
  end
1095
1198
 
@@ -1099,88 +1202,121 @@ module CZMQ
1099
1202
  attach_function :ztrie_new, [:pointer], :pointer, **opts
1100
1203
  rescue ::FFI::NotFoundError
1101
1204
  if $VERBOSE || $DEBUG
1102
- warn "The function ztrie_new() can't be used through " +
1103
- "this Ruby binding because it's not available."
1205
+ warn "The DRAFT function ztrie_new()" +
1206
+ " is not provided by the installed CZMQ library."
1207
+ end
1208
+ def self.ztrie_new(*)
1209
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1104
1210
  end
1105
1211
  end
1106
1212
  begin # DRAFT method
1107
1213
  attach_function :ztrie_destroy, [:pointer], :void, **opts
1108
1214
  rescue ::FFI::NotFoundError
1109
1215
  if $VERBOSE || $DEBUG
1110
- warn "The function ztrie_destroy() can't be used through " +
1111
- "this Ruby binding because it's not available."
1216
+ warn "The DRAFT function ztrie_destroy()" +
1217
+ " is not provided by the installed CZMQ library."
1218
+ end
1219
+ def self.ztrie_destroy(*)
1220
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1112
1221
  end
1113
1222
  end
1114
1223
  begin # DRAFT method
1115
1224
  attach_function :ztrie_insert_route, [:pointer, :string, :pointer, :pointer], :int, **opts
1116
1225
  rescue ::FFI::NotFoundError
1117
1226
  if $VERBOSE || $DEBUG
1118
- warn "The function ztrie_insert_route() can't be used through " +
1119
- "this Ruby binding because it's not available."
1227
+ warn "The DRAFT function ztrie_insert_route()" +
1228
+ " is not provided by the installed CZMQ library."
1229
+ end
1230
+ def self.ztrie_insert_route(*)
1231
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1120
1232
  end
1121
1233
  end
1122
1234
  begin # DRAFT method
1123
1235
  attach_function :ztrie_remove_route, [:pointer, :string], :int, **opts
1124
1236
  rescue ::FFI::NotFoundError
1125
1237
  if $VERBOSE || $DEBUG
1126
- warn "The function ztrie_remove_route() can't be used through " +
1127
- "this Ruby binding because it's not available."
1238
+ warn "The DRAFT function ztrie_remove_route()" +
1239
+ " is not provided by the installed CZMQ library."
1240
+ end
1241
+ def self.ztrie_remove_route(*)
1242
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1128
1243
  end
1129
1244
  end
1130
1245
  begin # DRAFT method
1131
1246
  attach_function :ztrie_matches, [:pointer, :string], :bool, **opts
1132
1247
  rescue ::FFI::NotFoundError
1133
1248
  if $VERBOSE || $DEBUG
1134
- warn "The function ztrie_matches() can't be used through " +
1135
- "this Ruby binding because it's not available."
1249
+ warn "The DRAFT function ztrie_matches()" +
1250
+ " is not provided by the installed CZMQ library."
1251
+ end
1252
+ def self.ztrie_matches(*)
1253
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1136
1254
  end
1137
1255
  end
1138
1256
  begin # DRAFT method
1139
1257
  attach_function :ztrie_hit_data, [:pointer], :pointer, **opts
1140
1258
  rescue ::FFI::NotFoundError
1141
1259
  if $VERBOSE || $DEBUG
1142
- warn "The function ztrie_hit_data() can't be used through " +
1143
- "this Ruby binding because it's not available."
1260
+ warn "The DRAFT function ztrie_hit_data()" +
1261
+ " is not provided by the installed CZMQ library."
1262
+ end
1263
+ def self.ztrie_hit_data(*)
1264
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1144
1265
  end
1145
1266
  end
1146
1267
  begin # DRAFT method
1147
1268
  attach_function :ztrie_hit_parameter_count, [:pointer], :size_t, **opts
1148
1269
  rescue ::FFI::NotFoundError
1149
1270
  if $VERBOSE || $DEBUG
1150
- warn "The function ztrie_hit_parameter_count() can't be used through " +
1151
- "this Ruby binding because it's not available."
1271
+ warn "The DRAFT function ztrie_hit_parameter_count()" +
1272
+ " is not provided by the installed CZMQ library."
1273
+ end
1274
+ def self.ztrie_hit_parameter_count(*)
1275
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1152
1276
  end
1153
1277
  end
1154
1278
  begin # DRAFT method
1155
1279
  attach_function :ztrie_hit_parameters, [:pointer], :pointer, **opts
1156
1280
  rescue ::FFI::NotFoundError
1157
1281
  if $VERBOSE || $DEBUG
1158
- warn "The function ztrie_hit_parameters() can't be used through " +
1159
- "this Ruby binding because it's not available."
1282
+ warn "The DRAFT function ztrie_hit_parameters()" +
1283
+ " is not provided by the installed CZMQ library."
1284
+ end
1285
+ def self.ztrie_hit_parameters(*)
1286
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1160
1287
  end
1161
1288
  end
1162
1289
  begin # DRAFT method
1163
1290
  attach_function :ztrie_hit_asterisk_match, [:pointer], :string, **opts
1164
1291
  rescue ::FFI::NotFoundError
1165
1292
  if $VERBOSE || $DEBUG
1166
- warn "The function ztrie_hit_asterisk_match() can't be used through " +
1167
- "this Ruby binding because it's not available."
1293
+ warn "The DRAFT function ztrie_hit_asterisk_match()" +
1294
+ " is not provided by the installed CZMQ library."
1295
+ end
1296
+ def self.ztrie_hit_asterisk_match(*)
1297
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1168
1298
  end
1169
1299
  end
1170
1300
  begin # DRAFT method
1171
1301
  attach_function :ztrie_print, [:pointer], :void, **opts
1172
1302
  rescue ::FFI::NotFoundError
1173
1303
  if $VERBOSE || $DEBUG
1174
- warn "The function ztrie_print() can't be used through " +
1175
- "this Ruby binding because it's not available."
1304
+ warn "The DRAFT function ztrie_print()" +
1305
+ " is not provided by the installed CZMQ library."
1306
+ end
1307
+ def self.ztrie_print(*)
1308
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1176
1309
  end
1177
1310
  end
1178
1311
  begin # DRAFT method
1179
1312
  attach_function :ztrie_test, [:bool], :void, **opts
1180
1313
  rescue ::FFI::NotFoundError
1181
1314
  if $VERBOSE || $DEBUG
1182
- warn "The function ztrie_test() can't be used through " +
1183
- "this Ruby binding because it's not available."
1315
+ warn "The DRAFT function ztrie_test()" +
1316
+ " is not provided by the installed CZMQ library."
1317
+ end
1318
+ def self.ztrie_test(*)
1319
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1184
1320
  end
1185
1321
  end
1186
1322