qpid_proton 0.25.0 → 0.26.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
  SHA1:
3
- metadata.gz: fde434d5285fb6abbc72b55887a150cfaec4eab5
4
- data.tar.gz: 2dc3c6f5b0f00dca6dca17230666ca01ffb127a9
3
+ metadata.gz: ced8f50cc9aed4fb1974c8ee9278597470094ab7
4
+ data.tar.gz: 05ca4b067b7c11fb3f324dd0b9f78b95ef7ec001
5
5
  SHA512:
6
- metadata.gz: df21ac8e2af23076685f8de87f3149a244fa7643acda91ef901416d6d3567b9ff59407d653a92ee407601ae427ba1e426f0335a82fb43f2527017da63ef6e5c3
7
- data.tar.gz: '049f70bbf34072c18e9a3c2bc30f637855d5eb54d32f8e58ed6033e32dd4ed2e6f8cc9870e63c7e06aefbc6aadcf6d7d405106b35e7eaa5f0159b152b0cca46f'
6
+ metadata.gz: 23a7a30ea8f32106f14d54c86c08fd189fc8035a53d81afc120e2daee0a9e6266579400b472e7acf45ffac2b6c00961fd35f2c4894f3e6cb1df819332e58e398
7
+ data.tar.gz: dff4e65bf82191bb0b23699b34f62411e9e845f4eed40d4cbbd84b7c141ae1a52ae9035c718b7794c61215000c08767fea5ea81e2d2a2178d488602296883c28
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby
1
+ #!/usr/bin/ruby
2
2
  #
3
3
  # Licensed to the Apache Software Foundation (ASF) under one
4
4
  # or more contributor license agreements. See the NOTICE file
@@ -14814,6 +14814,38 @@ fail:
14814
14814
  }
14815
14815
 
14816
14816
 
14817
+ SWIGINTERN VALUE
14818
+ _wrap_pn_message_encode2(int argc, VALUE *argv, VALUE self) {
14819
+ pn_message_t *arg1 = (pn_message_t *) 0 ;
14820
+ pn_rwbytes_t *arg2 = (pn_rwbytes_t *) 0 ;
14821
+ void *argp1 = 0 ;
14822
+ int res1 = 0 ;
14823
+ void *argp2 = 0 ;
14824
+ int res2 = 0 ;
14825
+ ssize_t result;
14826
+ VALUE vresult = Qnil;
14827
+
14828
+ if ((argc < 2) || (argc > 2)) {
14829
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
14830
+ }
14831
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
14832
+ if (!SWIG_IsOK(res1)) {
14833
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_encode2", 1, argv[0] ));
14834
+ }
14835
+ arg1 = (pn_message_t *)(argp1);
14836
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_rwbytes_t, 0 | 0 );
14837
+ if (!SWIG_IsOK(res2)) {
14838
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_rwbytes_t *","pn_message_encode2", 2, argv[1] ));
14839
+ }
14840
+ arg2 = (pn_rwbytes_t *)(argp2);
14841
+ result = (ssize_t)pn_message_encode2(arg1,arg2);
14842
+ vresult = SWIG_From_int((int)(result));
14843
+ return vresult;
14844
+ fail:
14845
+ return Qnil;
14846
+ }
14847
+
14848
+
14817
14849
  SWIGINTERN VALUE
14818
14850
  _wrap_pn_message_send(int argc, VALUE *argv, VALUE self) {
14819
14851
  pn_message_t *arg1 = (pn_message_t *) 0 ;
@@ -15184,67 +15216,6 @@ fail:
15184
15216
  }
15185
15217
 
15186
15218
 
15187
- SWIGINTERN VALUE
15188
- _wrap_pn_selectables(int argc, VALUE *argv, VALUE self) {
15189
- pn_selectables_t *result = 0 ;
15190
- VALUE vresult = Qnil;
15191
-
15192
- if ((argc < 0) || (argc > 0)) {
15193
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15194
- }
15195
- result = (pn_selectables_t *)pn_selectables();
15196
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_iterator_t, 0 | 0 );
15197
- return vresult;
15198
- fail:
15199
- return Qnil;
15200
- }
15201
-
15202
-
15203
- SWIGINTERN VALUE
15204
- _wrap_pn_selectables_next(int argc, VALUE *argv, VALUE self) {
15205
- pn_selectables_t *arg1 = (pn_selectables_t *) 0 ;
15206
- void *argp1 = 0 ;
15207
- int res1 = 0 ;
15208
- pn_selectable_t *result = 0 ;
15209
- VALUE vresult = Qnil;
15210
-
15211
- if ((argc < 1) || (argc > 1)) {
15212
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
15213
- }
15214
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 | 0 );
15215
- if (!SWIG_IsOK(res1)) {
15216
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectables_t *","pn_selectables_next", 1, argv[0] ));
15217
- }
15218
- arg1 = (pn_selectables_t *)(argp1);
15219
- result = (pn_selectable_t *)pn_selectables_next(arg1);
15220
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_selectable_t, 0 | 0 );
15221
- return vresult;
15222
- fail:
15223
- return Qnil;
15224
- }
15225
-
15226
-
15227
- SWIGINTERN VALUE
15228
- _wrap_pn_selectables_free(int argc, VALUE *argv, VALUE self) {
15229
- pn_selectables_t *arg1 = (pn_selectables_t *) 0 ;
15230
- void *argp1 = 0 ;
15231
- int res1 = 0 ;
15232
-
15233
- if ((argc < 1) || (argc > 1)) {
15234
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
15235
- }
15236
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 | 0 );
15237
- if (!SWIG_IsOK(res1)) {
15238
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectables_t *","pn_selectables_free", 1, argv[0] ));
15239
- }
15240
- arg1 = (pn_selectables_t *)(argp1);
15241
- pn_selectables_free(arg1);
15242
- return Qnil;
15243
- fail:
15244
- return Qnil;
15245
- }
15246
-
15247
-
15248
15219
  SWIGINTERN VALUE
15249
15220
  _wrap_pn_selectable(int argc, VALUE *argv, VALUE self) {
15250
15221
  pn_selectable_t *result = 0 ;
@@ -21412,7 +21383,7 @@ static swig_type_info _swigt__p_pn_event_type_t = {"_p_pn_event_type_t", "enum p
21412
21383
  static swig_type_info _swigt__p_pn_expiry_policy_t = {"_p_pn_expiry_policy_t", "enum pn_expiry_policy_t *|pn_expiry_policy_t *", 0, 0, (void*)0, 0};
21413
21384
  static swig_type_info _swigt__p_pn_handler_t = {"_p_pn_handler_t", "pn_handshaker_t *|struct pn_handler_t *|pn_flowcontroller_t *|pn_handler_t *|pn_iohandler_t *", 0, 0, (void*)0, 0};
21414
21385
  static swig_type_info _swigt__p_pn_hash_t = {"_p_pn_hash_t", "struct pn_hash_t *|pn_hash_t *", 0, 0, (void*)0, 0};
21415
- static swig_type_info _swigt__p_pn_iterator_t = {"_p_pn_iterator_t", "pn_selectables_t *|struct pn_iterator_t *|pn_iterator_t *", 0, 0, (void*)0, 0};
21386
+ static swig_type_info _swigt__p_pn_iterator_t = {"_p_pn_iterator_t", "struct pn_iterator_t *|pn_iterator_t *", 0, 0, (void*)0, 0};
21416
21387
  static swig_type_info _swigt__p_pn_link_t = {"_p_pn_link_t", "struct pn_link_t *|pn_link_t *", 0, 0, (void*)0, 0};
21417
21388
  static swig_type_info _swigt__p_pn_list_t = {"_p_pn_list_t", "struct pn_list_t *|pn_list_t *", 0, 0, (void*)0, 0};
21418
21389
  static swig_type_info _swigt__p_pn_listener_t = {"_p_pn_listener_t", "struct pn_listener_t *|pn_listener_t *", 0, 0, (void*)0, 0};
@@ -21996,7 +21967,7 @@ SWIGEXPORT void Init_cproton(void) {
21996
21967
  rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1);
21997
21968
  rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
21998
21969
  rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
21999
- rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(25)));
21970
+ rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(26)));
22000
21971
  rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
22001
21972
  rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
22002
21973
  rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
@@ -22507,6 +22478,7 @@ SWIGEXPORT void Init_cproton(void) {
22507
22478
  rb_define_module_function(mCproton, "pn_message_properties", _wrap_pn_message_properties, -1);
22508
22479
  rb_define_module_function(mCproton, "pn_message_body", _wrap_pn_message_body, -1);
22509
22480
  rb_define_module_function(mCproton, "pn_message_decode", _wrap_pn_message_decode, -1);
22481
+ rb_define_module_function(mCproton, "pn_message_encode2", _wrap_pn_message_encode2, -1);
22510
22482
  rb_define_module_function(mCproton, "pn_message_send", _wrap_pn_message_send, -1);
22511
22483
  rb_define_module_function(mCproton, "pn_message_data", _wrap_pn_message_data, -1);
22512
22484
  rb_define_const(mCproton, "PROTON_SASL_H", SWIG_From_int((int)(1)));
@@ -22529,9 +22501,6 @@ SWIGEXPORT void Init_cproton(void) {
22529
22501
  rb_define_module_function(mCproton, "pn_sasl_config_path", _wrap_pn_sasl_config_path, -1);
22530
22502
  rb_define_const(mCproton, "PROTON_SELECTABLE_H", SWIG_From_int((int)(1)));
22531
22503
  rb_define_const(mCproton, "PN_INVALID_SOCKET", SWIG_From_int((int)((-1))));
22532
- rb_define_module_function(mCproton, "pn_selectables", _wrap_pn_selectables, -1);
22533
- rb_define_module_function(mCproton, "pn_selectables_next", _wrap_pn_selectables_next, -1);
22534
- rb_define_module_function(mCproton, "pn_selectables_free", _wrap_pn_selectables_free, -1);
22535
22504
  rb_define_module_function(mCproton, "pn_selectable", _wrap_pn_selectable, -1);
22536
22505
  rb_define_module_function(mCproton, "pn_selectable_on_readable", _wrap_pn_selectable_on_readable, -1);
22537
22506
  rb_define_module_function(mCproton, "pn_selectable_on_writable", _wrap_pn_selectable_on_writable, -1);
@@ -351,7 +351,7 @@ class ContainerTest < MiniTest::Test
351
351
  x = a.shift
352
352
  assert_equal d, x[0]
353
353
  end
354
- assert_equalish delays.sum, Time.now-start
354
+ assert_equalish delays.reduce(:+), Time.now-start
355
355
  end
356
356
 
357
357
  # Test container work queue finishes due tasks on external stop, drops future tasks
@@ -389,7 +389,7 @@ class ContainerTest < MiniTest::Test
389
389
  start = Time.now
390
390
  c.run
391
391
  assert_equal 3, a.size
392
- assert_equalish delays.sum, Time.now-start
392
+ assert_equalish delays.reduce(:+), Time.now-start
393
393
  end
394
394
 
395
395
  # Schedule calls from handlers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qpid_proton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darryl L. Pierce
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-13 00:00:00.000000000 Z
12
+ date: 2018-10-08 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
@@ -29,7 +29,6 @@ files:
29
29
  - examples/client.rb
30
30
  - examples/direct_recv.rb
31
31
  - examples/direct_send.rb
32
- - examples/example_test.rb
33
32
  - examples/helloworld.rb
34
33
  - examples/server.rb
35
34
  - examples/simple_recv.rb
@@ -44,6 +43,7 @@ files:
44
43
  - examples/ssl-certs/tserver-full.p12
45
44
  - examples/ssl-certs/tserver-private-key.pem
46
45
  - examples/ssl_send.rb
46
+ - examples/testme
47
47
  - ext/cproton/cproton.c
48
48
  - ext/cproton/extconf.rb
49
49
  - lib/codec/data.rb