qpid_proton 0.34.0 → 0.37.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ac8b96488f863160e534736c193e468534c965ded7eb04085cef605efea58e6
4
- data.tar.gz: 7e0cbc90e431c318f9bceb6d4052c2f7db3da3b5bf929346ab5d12f50161f1ff
3
+ metadata.gz: 2b28f4c14ffb5651783ca4b0b796ae9c622b4fd15957f4535802e6d2aa4b813d
4
+ data.tar.gz: 90a4f65ff4cf3fbbf895b6d55538498991945e90b6681a3d5d648f2ca2d5e237
5
5
  SHA512:
6
- metadata.gz: '08e63bc86504b15270cd9286eb74d6990629533ce7e2b3a63285f58da62dde4ddf18f1488f86cdb2a4f2999f2b73161ca9736f3df679b5d992e7ad4878cdc47d'
7
- data.tar.gz: d95b09e8a5eef4e2eb2dd44979f622635bae45fb3110d37d8e8d62d605fa74460c78e5bb4c8256ddfe7242fa0ffc4643b2a899c3a7fce44cdf30c026bb4617b8
6
+ metadata.gz: 37cbacf47d58813b14ddb3575b4f2e71ff8f9c9ea8b5d540ad5841404c806f7fbc1c895bce153936960021c63501ea86cf2d5bc36c05596259c48ad83a006137
7
+ data.tar.gz: d8b674bee7dc938db7bc2ce78922eac7ef5778c42f74e248c94ec4cc90d53429e874467fb39171ddeb4b3c82c587a37627f446a1bdf1ff4dd08dadba3379ecde
data/examples/ssl_send.rb CHANGED
@@ -32,8 +32,9 @@ class SimpleSend < Qpid::Proton::MessagingHandler
32
32
  end
33
33
 
34
34
  def on_container_start(container)
35
- # Use a default client SSL domain
35
+ # Use anonymous client SSL domain
36
36
  ssl_domain = Qpid::Proton::SSLDomain.new(Qpid::Proton::SSLDomain::MODE_CLIENT)
37
+ ssl_domain.peer_authentication(Qpid::Proton::SSLDomain::ANONYMOUS_PEER)
37
38
  c = container.connect(@url, { :ssl_domain => ssl_domain })
38
39
  c.open_sender(@address)
39
40
  end
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.1
3
+ * Version 4.0.2
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -953,30 +953,46 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
953
953
 
954
954
 
955
955
  /*
956
- * Need to be very careful about how these macros are defined, especially
957
- * when compiling C++ code or C code with an ANSI C compiler.
956
+ * The following macros are used for providing the correct type of a
957
+ * function pointer to the Ruby C API.
958
+ * Starting with Ruby 2.7 (corresponding to RB_METHOD_DEFINITION_DECL being
959
+ * defined) these macros act transparently due to Ruby's moving away from
960
+ * ANYARGS and instead employing strict function signatures.
958
961
  *
959
- * VALUEFUNC(f) is a macro used to typecast a C function that implements
960
- * a Ruby method so that it can be passed as an argument to API functions
961
- * like rb_define_method() and rb_define_singleton_method().
962
+ * Note: In case of C (not C++) the macros are transparent even before
963
+ * Ruby 2.7 due to the fact that the Ruby C API used function declarators
964
+ * with empty parentheses, which allows for an unspecified number of
965
+ * arguments.
962
966
  *
963
- * VOIDFUNC(f) is a macro used to typecast a C function that implements
964
- * either the "mark" or "free" stuff for a Ruby Data object, so that it
965
- * can be passed as an argument to API functions like Data_Wrap_Struct()
967
+ * PROTECTFUNC(f) is used for the function pointer argument of the Ruby
968
+ * C API function rb_protect().
969
+ *
970
+ * VALUEFUNC(f) is used for the function pointer argument(s) of Ruby C API
971
+ * functions like rb_define_method() and rb_define_singleton_method().
972
+ *
973
+ * VOIDFUNC(f) is used to typecast a C function that implements either
974
+ * the "mark" or "free" stuff for a Ruby Data object, so that it can be
975
+ * passed as an argument to Ruby C API functions like Data_Wrap_Struct()
966
976
  * and Data_Make_Struct().
977
+ *
978
+ * SWIG_RUBY_VOID_ANYARGS_FUNC(f) is used for the function pointer
979
+ * argument(s) of Ruby C API functions like rb_define_virtual_variable().
980
+ *
981
+ * SWIG_RUBY_INT_ANYARGS_FUNC(f) is used for the function pointer
982
+ * argument(s) of Ruby C API functions like st_foreach().
967
983
  */
968
984
  #if defined(__cplusplus) && !defined(RB_METHOD_DEFINITION_DECL)
969
985
  # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
970
986
  # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
971
987
  # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
972
- # define VOID_ANYARGS_FUNC(f) ((void (*)(ANYARGS))(f))
973
- # define INT_ANYARGS_FUNC(f) ((int (*)(ANYARGS))(f))
988
+ # define SWIG_RUBY_VOID_ANYARGS_FUNC(f) ((void (*)(ANYARGS))(f))
989
+ # define SWIG_RUBY_INT_ANYARGS_FUNC(f) ((int (*)(ANYARGS))(f))
974
990
  #else
975
991
  # define PROTECTFUNC(f) (f)
976
992
  # define VALUEFUNC(f) (f)
977
993
  # define VOIDFUNC(f) (f)
978
- # define VOID_ANYARGS_FUNC(f) (f)
979
- # define INT_ANYARGS_FUNC(f) (f)
994
+ # define SWIG_RUBY_VOID_ANYARGS_FUNC(f) (f)
995
+ # define SWIG_RUBY_INT_ANYARGS_FUNC(f) (f)
980
996
  #endif
981
997
 
982
998
  /* Don't use for expressions have side effect */
@@ -1232,7 +1248,9 @@ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
1232
1248
  swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value);
1233
1249
  }
1234
1250
 
1235
- rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", VALUEFUNC(swig_ruby_trackings_count), VOID_ANYARGS_FUNC((rb_gvar_setter_t*)NULL));
1251
+ rb_define_virtual_variable("SWIG_TRACKINGS_COUNT",
1252
+ VALUEFUNC(swig_ruby_trackings_count),
1253
+ SWIG_RUBY_VOID_ANYARGS_FUNC((rb_gvar_setter_t*)NULL));
1236
1254
  }
1237
1255
 
1238
1256
  /* Add a Tracking from a C/C++ struct to a Ruby object */
@@ -1287,7 +1305,9 @@ static int swig_ruby_internal_iterate_callback(st_data_t ptr, st_data_t obj, st_
1287
1305
  }
1288
1306
 
1289
1307
  SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) {
1290
- st_foreach(swig_ruby_trackings, INT_ANYARGS_FUNC(swig_ruby_internal_iterate_callback), (st_data_t)meth);
1308
+ st_foreach(swig_ruby_trackings,
1309
+ SWIG_RUBY_INT_ANYARGS_FUNC(swig_ruby_internal_iterate_callback),
1310
+ (st_data_t)meth);
1291
1311
  }
1292
1312
 
1293
1313
  #ifdef __cplusplus
@@ -1568,6 +1588,8 @@ SWIGRUNTIMEINLINE char *
1568
1588
  SWIG_Ruby_MangleStr(VALUE obj)
1569
1589
  {
1570
1590
  VALUE stype = rb_iv_get(obj, "@__swigtype__");
1591
+ if (NIL_P(stype))
1592
+ return NULL;
1571
1593
  return StringValuePtr(stype);
1572
1594
  }
1573
1595
 
@@ -1884,7 +1906,7 @@ static VALUE mCproton;
1884
1906
  #define SWIG_RUBY_THREAD_END_BLOCK
1885
1907
 
1886
1908
 
1887
- #define SWIGVERSION 0x040001
1909
+ #define SWIGVERSION 0x040002
1888
1910
  #define SWIG_VERSION SWIGVERSION
1889
1911
 
1890
1912
 
@@ -1919,7 +1941,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
1919
1941
  }
1920
1942
 
1921
1943
 
1922
- /*@SWIG:/usr/share/swig/4.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1944
+ /*@SWIG:/usr/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1923
1945
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
1924
1946
  {
1925
1947
  VALUE *args = (VALUE *)arg;
@@ -1965,7 +1987,7 @@ SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
1965
1987
 
1966
1988
 
1967
1989
  #ifdef SWIG_LONG_LONG_AVAILABLE
1968
- /*@SWIG:/usr/share/swig/4.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1990
+ /*@SWIG:/usr/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1969
1991
  SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE arg)
1970
1992
  {
1971
1993
  VALUE *args = (VALUE *)arg;
@@ -2296,7 +2318,7 @@ SWIG_From_bool (bool value)
2296
2318
 
2297
2319
 
2298
2320
 
2299
- /*@SWIG:/usr/share/swig/4.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2321
+ /*@SWIG:/usr/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2300
2322
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
2301
2323
  {
2302
2324
  VALUE *args = (VALUE *)arg;
@@ -2612,7 +2634,7 @@ inline int SWIG_isfinite_func(T x) {
2612
2634
  #endif
2613
2635
 
2614
2636
 
2615
- /*@SWIG:/usr/share/swig/4.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2637
+ /*@SWIG:/usr/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2616
2638
  SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
2617
2639
  {
2618
2640
  VALUE *args = (VALUE *)arg;
@@ -2702,7 +2724,7 @@ SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val)
2702
2724
 
2703
2725
 
2704
2726
  #ifdef SWIG_LONG_LONG_AVAILABLE
2705
- /*@SWIG:/usr/share/swig/4.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2727
+ /*@SWIG:/usr/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2706
2728
  SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
2707
2729
  {
2708
2730
  VALUE *args = (VALUE *)arg;
@@ -13749,7 +13771,7 @@ _wrap_pn_message_get_id(int argc, VALUE *argv, VALUE self) {
13749
13771
  pn_message_t *arg1 = (pn_message_t *) 0 ;
13750
13772
  void *argp1 = 0 ;
13751
13773
  int res1 = 0 ;
13752
- pn_atom_t result;
13774
+ pn_msgid_t result;
13753
13775
  VALUE vresult = Qnil;
13754
13776
 
13755
13777
  if ((argc < 1) || (argc > 1)) {
@@ -13831,7 +13853,7 @@ fail:
13831
13853
  SWIGINTERN VALUE
13832
13854
  _wrap_pn_message_set_id(int argc, VALUE *argv, VALUE self) {
13833
13855
  pn_message_t *arg1 = (pn_message_t *) 0 ;
13834
- pn_atom_t arg2 ;
13856
+ pn_msgid_t arg2 ;
13835
13857
  void *argp1 = 0 ;
13836
13858
  int res1 = 0 ;
13837
13859
  int result;
@@ -13895,8 +13917,6 @@ _wrap_pn_message_set_id(int argc, VALUE *argv, VALUE self) {
13895
13917
  }
13896
13918
  }
13897
13919
  }
13898
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
13899
-
13900
13920
  result = (int)pn_message_set_id(arg1,arg2);
13901
13921
  vresult = SWIG_From_int((int)(result));
13902
13922
  return vresult;
@@ -14190,7 +14210,7 @@ _wrap_pn_message_get_correlation_id(int argc, VALUE *argv, VALUE self) {
14190
14210
  pn_message_t *arg1 = (pn_message_t *) 0 ;
14191
14211
  void *argp1 = 0 ;
14192
14212
  int res1 = 0 ;
14193
- pn_atom_t result;
14213
+ pn_msgid_t result;
14194
14214
  VALUE vresult = Qnil;
14195
14215
 
14196
14216
  if ((argc < 1) || (argc > 1)) {
@@ -14272,7 +14292,7 @@ fail:
14272
14292
  SWIGINTERN VALUE
14273
14293
  _wrap_pn_message_set_correlation_id(int argc, VALUE *argv, VALUE self) {
14274
14294
  pn_message_t *arg1 = (pn_message_t *) 0 ;
14275
- pn_atom_t arg2 ;
14295
+ pn_msgid_t arg2 ;
14276
14296
  void *argp1 = 0 ;
14277
14297
  int res1 = 0 ;
14278
14298
  int result;
@@ -14336,8 +14356,6 @@ _wrap_pn_message_set_correlation_id(int argc, VALUE *argv, VALUE self) {
14336
14356
  }
14337
14357
  }
14338
14358
  }
14339
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
14340
-
14341
14359
  result = (int)pn_message_set_correlation_id(arg1,arg2);
14342
14360
  vresult = SWIG_From_int((int)(result));
14343
14361
  return vresult;
@@ -18408,6 +18426,38 @@ fail:
18408
18426
  }
18409
18427
 
18410
18428
 
18429
+ SWIGINTERN VALUE
18430
+ _wrap_pn_connection_driver_read_buffer_sized(int argc, VALUE *argv, VALUE self) {
18431
+ pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
18432
+ size_t arg2 ;
18433
+ void *argp1 = 0 ;
18434
+ int res1 = 0 ;
18435
+ size_t val2 ;
18436
+ int ecode2 = 0 ;
18437
+ pn_rwbytes_t result;
18438
+ VALUE vresult = Qnil;
18439
+
18440
+ if ((argc < 2) || (argc > 2)) {
18441
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
18442
+ }
18443
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
18444
+ if (!SWIG_IsOK(res1)) {
18445
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_buffer_sized", 1, argv[0] ));
18446
+ }
18447
+ arg1 = (pn_connection_driver_t *)(argp1);
18448
+ ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
18449
+ if (!SWIG_IsOK(ecode2)) {
18450
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_connection_driver_read_buffer_sized", 2, argv[1] ));
18451
+ }
18452
+ arg2 = (size_t)(val2);
18453
+ result = pn_connection_driver_read_buffer_sized(arg1,arg2);
18454
+ vresult = SWIG_NewPointerObj((pn_rwbytes_t *)memcpy((pn_rwbytes_t *)calloc(1,sizeof(pn_rwbytes_t)),&result,sizeof(pn_rwbytes_t)), SWIGTYPE_p_pn_rwbytes_t, SWIG_POINTER_OWN | 0 );
18455
+ return vresult;
18456
+ fail:
18457
+ return Qnil;
18458
+ }
18459
+
18460
+
18411
18461
  SWIGINTERN VALUE
18412
18462
  _wrap_pn_connection_driver_read_buffer(int argc, VALUE *argv, VALUE self) {
18413
18463
  pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
@@ -18540,6 +18590,8 @@ _wrap_pn_connection_driver_write_done(int argc, VALUE *argv, VALUE self) {
18540
18590
  int res1 = 0 ;
18541
18591
  size_t val2 ;
18542
18592
  int ecode2 = 0 ;
18593
+ pn_bytes_t result;
18594
+ VALUE vresult = Qnil;
18543
18595
 
18544
18596
  if ((argc < 2) || (argc > 2)) {
18545
18597
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
@@ -18554,8 +18606,11 @@ _wrap_pn_connection_driver_write_done(int argc, VALUE *argv, VALUE self) {
18554
18606
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_connection_driver_write_done", 2, argv[1] ));
18555
18607
  }
18556
18608
  arg2 = (size_t)(val2);
18557
- pn_connection_driver_write_done(arg1,arg2);
18558
- return Qnil;
18609
+ result = pn_connection_driver_write_done(arg1,arg2);
18610
+ {
18611
+ vresult = rb_str_new((&result)->start, (&result)->size);
18612
+ }
18613
+ return vresult;
18559
18614
  fail:
18560
18615
  return Qnil;
18561
18616
  }
@@ -19258,7 +19313,7 @@ static swig_type_info _swigt__p_long = {"_p_long", "int32_t *|long *", 0, 0, (vo
19258
19313
  static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long long *|pn_timestamp_t *", 0, 0, (void*)0, 0};
19259
19314
  static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
19260
19315
  static swig_type_info _swigt__p_p_pn_connection_driver_t = {"_p_p_pn_connection_driver_t", "struct pn_connection_driver_t **|pn_connection_driver_t **", 0, 0, (void*)0, 0};
19261
- static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "pn_atom_t *", 0, 0, (void*)0, 0};
19316
+ static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "pn_atom_t *|pn_msgid_t *", 0, 0, (void*)0, 0};
19262
19317
  static swig_type_info _swigt__p_pn_bytes_t = {"_p_pn_bytes_t", "struct pn_bytes_t *|pn_bytes_t *", 0, 0, (void*)0, 0};
19263
19318
  static swig_type_info _swigt__p_pn_cid_t = {"_p_pn_cid_t", "enum pn_cid_t *|pn_cid_t *", 0, 0, (void*)0, 0};
19264
19319
  static swig_type_info _swigt__p_pn_class_t = {"_p_pn_class_t", "struct pn_class_t *|pn_class_t *", 0, 0, (void*)0, 0};
@@ -19839,18 +19894,18 @@ SWIGEXPORT void Init_cproton(void) {
19839
19894
  rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1);
19840
19895
  rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
19841
19896
  rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
19842
- rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(34)));
19897
+ rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(37)));
19843
19898
  rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
19844
19899
  rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
19845
19900
  rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
19846
19901
  rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1);
19847
- rb_define_singleton_method(mCproton, "pn_bytes_null", _wrap_pn_bytes_null_get, 0);
19902
+ rb_define_singleton_method(mCproton, "pn_bytes_null", VALUEFUNC(_wrap_pn_bytes_null_get), 0);
19848
19903
  rb_define_module_function(mCproton, "pn_rwbytes", _wrap_pn_rwbytes, -1);
19849
- rb_define_singleton_method(mCproton, "pn_rwbytes_null", _wrap_pn_rwbytes_null_get, 0);
19904
+ rb_define_singleton_method(mCproton, "pn_rwbytes_null", VALUEFUNC(_wrap_pn_rwbytes_null_get), 0);
19850
19905
  rb_define_const(mCproton, "PROTON_OBJECT_H", SWIG_From_int((int)(1)));
19851
- rb_define_singleton_method(mCproton, "PN_OBJECT", _wrap_PN_OBJECT_get, 0);
19852
- rb_define_singleton_method(mCproton, "PN_VOID", _wrap_PN_VOID_get, 0);
19853
- rb_define_singleton_method(mCproton, "PN_WEAKREF", _wrap_PN_WEAKREF_get, 0);
19906
+ rb_define_singleton_method(mCproton, "PN_OBJECT", VALUEFUNC(_wrap_PN_OBJECT_get), 0);
19907
+ rb_define_singleton_method(mCproton, "PN_VOID", VALUEFUNC(_wrap_PN_VOID_get), 0);
19908
+ rb_define_singleton_method(mCproton, "PN_WEAKREF", VALUEFUNC(_wrap_PN_WEAKREF_get), 0);
19854
19909
  rb_define_module_function(mCproton, "pn_class_id", _wrap_pn_class_id, -1);
19855
19910
  rb_define_module_function(mCproton, "pn_class_name", _wrap_pn_class_name, -1);
19856
19911
  rb_define_module_function(mCproton, "pn_class_new", _wrap_pn_class_new, -1);
@@ -20542,6 +20597,7 @@ SWIGEXPORT void Init_cproton(void) {
20542
20597
  rb_define_module_function(mCproton, "pn_connection_driver_bind", _wrap_pn_connection_driver_bind, -1);
20543
20598
  rb_define_module_function(mCproton, "pn_connection_driver_destroy", _wrap_pn_connection_driver_destroy, -1);
20544
20599
  rb_define_module_function(mCproton, "pn_connection_driver_release_connection", _wrap_pn_connection_driver_release_connection, -1);
20600
+ rb_define_module_function(mCproton, "pn_connection_driver_read_buffer_sized", _wrap_pn_connection_driver_read_buffer_sized, -1);
20545
20601
  rb_define_module_function(mCproton, "pn_connection_driver_read_buffer", _wrap_pn_connection_driver_read_buffer, -1);
20546
20602
  rb_define_module_function(mCproton, "pn_connection_driver_read_done", _wrap_pn_connection_driver_read_done, -1);
20547
20603
  rb_define_module_function(mCproton, "pn_connection_driver_read_close", _wrap_pn_connection_driver_read_close, -1);
data/lib/core/sender.rb CHANGED
@@ -32,7 +32,9 @@ module Qpid::Proton
32
32
  # @overload open_sender(address)
33
33
  # @param address [String] address of the target to send to
34
34
  # @overload open_sender(opts)
35
- # @option opts [Boolean] :auto_settle (true) if true, automatically settle transfers
35
+ # @option opts [Boolean] :auto_settle (true) If true (default), automatically settle
36
+ # messages upon receiving a settled disposition for that delivery. Otherwise messages
37
+ # must be explicitly settled.
36
38
  # @option opts [Boolean] :dynamic (false) dynamic property for source {Terminus#dynamic}
37
39
  # @option opts [String,Hash] :source source address or source options, see {Terminus#apply}
38
40
  # @option opts [String,Hash] :target target address or target options, see {Terminus#apply}
@@ -95,5 +97,3 @@ module Qpid::Proton
95
97
  can_raise_error :stream, :error_class => Qpid::Proton::LinkError
96
98
  end
97
99
  end
98
-
99
-
@@ -105,9 +105,10 @@ module Qpid::Proton
105
105
  # Configures the level of verification used on the peer certificate.
106
106
  #
107
107
  # This method congtrols how the peer's certificate is validated, if at all.
108
- # By default, neither servers nor clients attempt to verify their peers
109
- # (*ANONYMOUS_PEER*). Once certficates and trusted CAs are configured, peer
110
- # verification can be enabled.
108
+ # By default, servers do not attempt to verify their peers
109
+ # (*ANONYMOUS_PEER*) but clients attempt to verify both the certificate and
110
+ # peer name (*VERIFY_PEER_NAME*). Once certficates and trusted CAs are
111
+ # configured, peer verification can be enabled.
111
112
  #
112
113
  # *NOTE:* In order to verify a peer, a trusted CA must be configured.
113
114
  #
data/lib/core/uri.rb CHANGED
@@ -20,6 +20,13 @@ require 'uri'
20
20
 
21
21
  # Extend the standard ruby {URI} with AMQP and AMQPS schemes
22
22
  module URI
23
+ # monkey patch register_scheme for earlier versions of ruby
24
+ if !self.respond_to? :register_scheme
25
+ def self.register_scheme (scheme, klass)
26
+ @@schemes[scheme] = klass
27
+ end
28
+ end
29
+
23
30
  # AMQP URI scheme for the AMQP protocol
24
31
  class AMQP < Generic
25
32
  DEFAULT_PORT = 5672
@@ -27,13 +34,13 @@ module URI
27
34
  # @return [String] The AMQP address is the {#path} stripped of any leading "/"
28
35
  def amqp_address() path[0] == "/" ? path[1..-1] : path; end
29
36
  end
30
- @@schemes['AMQP'] = AMQP
37
+ register_scheme 'AMQP', AMQP
31
38
 
32
39
  # AMQPS URI scheme for the AMQP protocol over TLS
33
40
  class AMQPS < AMQP
34
41
  DEFAULT_PORT = 5671
35
42
  end
36
- @@schemes['AMQPS'] = AMQPS
43
+ register_scheme 'AMQPS', AMQPS
37
44
  end
38
45
 
39
46
  module Qpid::Proton
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qpid_proton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darryl L. Pierce
8
8
  - Alan Conway
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-05-17 00:00:00.000000000 Z
12
+ date: 2022-04-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: |
15
15
  Proton is a high performance, lightweight messaging library. It can be used in
@@ -107,7 +107,7 @@ homepage: http://qpid.apache.org/proton
107
107
  licenses:
108
108
  - Apache-2.0
109
109
  metadata: {}
110
- post_install_message:
110
+ post_install_message:
111
111
  rdoc_options: []
112
112
  require_paths:
113
113
  - lib
@@ -122,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  requirements: []
125
- rubygems_version: 3.1.6
126
- signing_key:
125
+ rubygems_version: 3.2.22
126
+ signing_key:
127
127
  specification_version: 4
128
128
  summary: Ruby language bindings for the Qpid Proton messaging framework
129
129
  test_files: []