ovirt-engine-sdk 4.4.1 → 4.6.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: 3cbf21cc36a2d2e6cc01b2c93a66c911d986f701204f5da8c9a546dd03eda60e
4
- data.tar.gz: 0102e341d81119a0f2e6c8181e2931c1bf57134836d1cc4a8d28eace0c873287
3
+ metadata.gz: 593677086e88de577c872f2e3629dabf7d2e4cefa26e73595d19c3127e77008e
4
+ data.tar.gz: 39a8361a675a62f8b462715a06a0de2d63f8c7c579eca10ff0cb936327580d09
5
5
  SHA512:
6
- metadata.gz: ee46d1debeafe7d3fe376f86413aaa650ba99e7bc2e211868b2418a6597c832e0bb3f8aa0da8cfff4ec3501d41af66a74fad9125c5a3550b8ddd4ffa1a3f3c2c
7
- data.tar.gz: b0f854782e5e8257056d51c03e070d509972baa175c8006d06e3e75ad13968eef5624b4fd23a58ff65c8258df93060b0b6e9a34d11bc601edcbbfbcffa7729db
6
+ metadata.gz: d99f97a8fd180f9c9b6ee0c9c8a5681001f4a83a1fc5b88909c64dae6bcb09ef157d114ea80328900f11762853b0ef0f7971d97f701c9f19e6c638ad3e26e296
7
+ data.tar.gz: e3bfb91602e07cfbb35b641acd589e6973280479d2cb98246cbd0a565598bdf93368cd40b0641d81534675ab64a52086822e037a83312fde2f06ed8bd4ce2b80
data/CHANGES.adoc CHANGED
@@ -2,8 +2,15 @@
2
2
 
3
3
  This document describes the relevant changes between releases of the SDK.
4
4
 
5
+ == 4.6.0 / Feb 1 2024
6
+ Upgrade to model 4.6.0 and metamodel 1.3.10
7
+
8
+ New features:
9
+
10
+ * Replace rb_cData with rb_cObject, making it compatible with ruby 3.1+
11
+
5
12
  == 4.4.1 / Feb 23 2021
6
- Upgrade to model 4.4.22, metamodel 1.3.4
13
+ Upgrade to model 4.4.26, metamodel 1.3.4
7
14
 
8
15
  * Remove python dependencies from build scripts
9
16
 
@@ -26,7 +33,7 @@ Deprecations:
26
33
 
27
34
  * packaging: drop fc28, fc29, el7
28
35
 
29
- * automation: drop fc28, fc29, el7
36
+ * automation: drop fc28, fc29, el7
30
37
 
31
38
  == 4.3.0 / Jan 16 2018
32
39
  Update to model 4.3.21.
@@ -117,7 +124,7 @@ New features:
117
124
 
118
125
  * Add `cancel` action to transfer image session.
119
126
 
120
- * Add `export` template as OVA to a given path on a host
127
+ * Add `export` template as OVA to a given path on a host
121
128
  https://bugzilla.redhat.com/1526033[#1526033].
122
129
 
123
130
  * Add service to list user groups
@@ -490,12 +490,20 @@ static int ov_http_client_debug_function(CURL* handle, curl_infotype type, char*
490
490
  /* Get the pointer to the transfer: */
491
491
  ov_http_transfer_ptr(transfer, transfer_ptr);
492
492
 
493
- /* Execute the debug code with the global interpreter lock acquired, as it needs to call Ruby methods: */
493
+ /* The global interpreter lock may be acquired or not, so we need to check and either call the task directly
494
+ or else call it after acquiring the lock. Note that the `ruby_thread_has_gvl_p` function that we ue to
495
+ check if the GVL is acquired is marked as experimental, and not defined in `thread.h`, so it may be
496
+ removed at any time, but I didn't find any other way to check if the GVL is acquired. */
494
497
  context.client = transfer_ptr->client;
495
498
  context.type = type;
496
499
  context.data = data;
497
500
  context.size = size;
498
- rb_thread_call_with_gvl(ov_http_client_debug_task, &context);
501
+ if (ruby_thread_has_gvl_p()) {
502
+ ov_http_client_debug_task(&context);
503
+ }
504
+ else {
505
+ rb_thread_call_with_gvl(ov_http_client_debug_task, &context);
506
+ }
499
507
  return 0;
500
508
  }
501
509
 
@@ -344,7 +344,7 @@ static VALUE ov_http_request_initialize(int argc, VALUE* argv, VALUE self) {
344
344
 
345
345
  void ov_http_request_define(void) {
346
346
  /* Define the class: */
347
- ov_http_request_class = rb_define_class_under(ov_module, "HttpRequest", rb_cData);
347
+ ov_http_request_class = rb_define_class_under(ov_module, "HttpRequest", rb_cObject);
348
348
 
349
349
  /* Define the constructor: */
350
350
  rb_define_alloc_func(ov_http_request_class, ov_http_request_alloc);
@@ -184,7 +184,7 @@ static VALUE ov_http_response_initialize(int argc, VALUE* argv, VALUE self) {
184
184
 
185
185
  void ov_http_response_define(void) {
186
186
  /* Define the class: */
187
- ov_http_response_class = rb_define_class_under(ov_module, "HttpResponse", rb_cData);
187
+ ov_http_response_class = rb_define_class_under(ov_module, "HttpResponse", rb_cObject);
188
188
 
189
189
  /* Define the constructor: */
190
190
  rb_define_alloc_func(ov_http_response_class, ov_http_response_alloc);
@@ -80,7 +80,7 @@ static VALUE ov_http_transfer_inspect(VALUE self) {
80
80
 
81
81
  void ov_http_transfer_define(void) {
82
82
  /* Define the class: */
83
- ov_http_transfer_class = rb_define_class_under(ov_module, "HttpTransfer", rb_cData);
83
+ ov_http_transfer_class = rb_define_class_under(ov_module, "HttpTransfer", rb_cObject);
84
84
 
85
85
  /* Define the constructor: */
86
86
  rb_define_alloc_func(ov_http_transfer_class, ov_http_transfer_alloc);
@@ -430,7 +430,7 @@ void ov_xml_reader_define(void) {
430
430
  rb_require("stringio");
431
431
 
432
432
  /* Define the class: */
433
- ov_xml_reader_class = rb_define_class_under(ov_module, "XmlReader", rb_cData);
433
+ ov_xml_reader_class = rb_define_class_under(ov_module, "XmlReader", rb_cObject);
434
434
 
435
435
  /* Define the constructor: */
436
436
  rb_define_alloc_func(ov_xml_reader_class, ov_xml_reader_alloc);
OSZAR »