pact-ffi 0.0.3-x64-mingw-ucrt → 0.4.22.1-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
data/lib/pact/ffi.rb CHANGED
@@ -8,8 +8,8 @@ module PactFfi
8
8
 
9
9
  # at least neccessary on x64-mingw-ucrt as uint32_type is undefined
10
10
  # also neccessary on linux aarch64 it seems
11
- DetectOS.windows? || DetectOS.linux_arm? ? (typedef :uint32, :uint32_type) : (typedef :uint32_t, :uint32_type)
12
-
11
+ # DetectOS.windows? || DetectOS.linux_arm? ? (typedef :uint32, :uint32_type) : (typedef :uint32_t, :uint32_type) (typedef :uint32, :uint32_type)
12
+ (typedef :uint32, :uint32_type)
13
13
  FfiSpecificationVersion = Hash[
14
14
  'SPECIFICATION_VERSION_UNKNOWN' => 0,
15
15
  'SPECIFICATION_VERSION_V1' => 1,
@@ -147,29 +147,43 @@ module PactFfi
147
147
  attach_function :async_message_delete, :pactffi_async_message_delete, %i[pointer], :void
148
148
  attach_function :async_message_get_contents, :pactffi_async_message_get_contents, %i[pointer], :pointer
149
149
  attach_function :async_message_get_contents_str, :pactffi_async_message_get_contents_str, %i[pointer], :string
150
- attach_function :async_message_set_contents_str, :pactffi_async_message_set_contents_str, %i[pointer string string], :void
150
+ attach_function :async_message_set_contents_str, :pactffi_async_message_set_contents_str, %i[pointer string string],
151
+ :void
151
152
  attach_function :async_message_get_contents_length, :pactffi_async_message_get_contents_length, %i[pointer], :size_t
152
153
  attach_function :async_message_get_contents_bin, :pactffi_async_message_get_contents_bin, %i[pointer], :pointer
153
- attach_function :async_message_set_contents_bin, :pactffi_async_message_set_contents_bin, %i[pointer pointer size_t string], :void
154
+ attach_function :async_message_set_contents_bin, :pactffi_async_message_set_contents_bin,
155
+ %i[pointer pointer size_t string], :void
154
156
  attach_function :async_message_get_description, :pactffi_async_message_get_description, %i[pointer], :string
155
157
  attach_function :async_message_set_description, :pactffi_async_message_set_description, %i[pointer string], :int32
156
- attach_function :async_message_get_provider_state, :pactffi_async_message_get_provider_state, %i[pointer uint32_type], :pointer
157
- attach_function :async_message_get_provider_state_iter, :pactffi_async_message_get_provider_state_iter, %i[pointer], :pointer
158
+ attach_function :async_message_get_provider_state, :pactffi_async_message_get_provider_state,
159
+ %i[pointer uint32_type], :pointer
160
+ attach_function :async_message_get_provider_state_iter, :pactffi_async_message_get_provider_state_iter, %i[pointer],
161
+ :pointer
158
162
  attach_function :consumer_get_name, :pactffi_consumer_get_name, %i[pointer], :string
159
163
  attach_function :pact_get_consumer, :pactffi_pact_get_consumer, %i[pointer], :pointer
160
164
  attach_function :pact_consumer_delete, :pactffi_pact_consumer_delete, %i[pointer], :void
161
165
  attach_function :message_contents_get_contents_str, :pactffi_message_contents_get_contents_str, %i[pointer], :string
162
- attach_function :message_contents_set_contents_str, :pactffi_message_contents_set_contents_str, %i[pointer string string], :void
163
- attach_function :message_contents_get_contents_length, :pactffi_message_contents_get_contents_length, %i[pointer], :size_t
166
+ attach_function :message_contents_set_contents_str, :pactffi_message_contents_set_contents_str,
167
+ %i[pointer string string], :void
168
+ attach_function :message_contents_get_contents_length, :pactffi_message_contents_get_contents_length, %i[pointer],
169
+ :size_t
164
170
  attach_function :message_contents_get_contents_bin, :pactffi_message_contents_get_contents_bin, %i[pointer], :pointer
165
- attach_function :message_contents_set_contents_bin, :pactffi_message_contents_set_contents_bin, %i[pointer pointer size_t string], :void
166
- attach_function :message_contents_get_metadata_iter, :pactffi_message_contents_get_metadata_iter, %i[pointer], :pointer
167
- attach_function :message_contents_get_matching_rule_iter, :pactffi_message_contents_get_matching_rule_iter, %i[pointer int32], :pointer
168
- attach_function :request_contents_get_matching_rule_iter, :pactffi_request_contents_get_matching_rule_iter, %i[pointer int32], :pointer
169
- attach_function :response_contents_get_matching_rule_iter, :pactffi_response_contents_get_matching_rule_iter, %i[pointer int32], :pointer
170
- attach_function :message_contents_get_generators_iter, :pactffi_message_contents_get_generators_iter, %i[pointer int32], :pointer
171
- attach_function :request_contents_get_generators_iter, :pactffi_request_contents_get_generators_iter, %i[pointer int32], :pointer
172
- attach_function :response_contents_get_generators_iter, :pactffi_response_contents_get_generators_iter, %i[pointer int32], :pointer
171
+ attach_function :message_contents_set_contents_bin, :pactffi_message_contents_set_contents_bin,
172
+ %i[pointer pointer size_t string], :void
173
+ attach_function :message_contents_get_metadata_iter, :pactffi_message_contents_get_metadata_iter, %i[pointer],
174
+ :pointer
175
+ attach_function :message_contents_get_matching_rule_iter, :pactffi_message_contents_get_matching_rule_iter,
176
+ %i[pointer int32], :pointer
177
+ attach_function :request_contents_get_matching_rule_iter, :pactffi_request_contents_get_matching_rule_iter,
178
+ %i[pointer int32], :pointer
179
+ attach_function :response_contents_get_matching_rule_iter, :pactffi_response_contents_get_matching_rule_iter,
180
+ %i[pointer int32], :pointer
181
+ attach_function :message_contents_get_generators_iter, :pactffi_message_contents_get_generators_iter,
182
+ %i[pointer int32], :pointer
183
+ attach_function :request_contents_get_generators_iter, :pactffi_request_contents_get_generators_iter,
184
+ %i[pointer int32], :pointer
185
+ attach_function :response_contents_get_generators_iter, :pactffi_response_contents_get_generators_iter,
186
+ %i[pointer int32], :pointer
173
187
  attach_function :parse_matcher_definition, :pactffi_parse_matcher_definition, %i[string], :pointer
174
188
  attach_function :matcher_definition_error, :pactffi_matcher_definition_error, %i[pointer], :string
175
189
  attach_function :matcher_definition_value, :pactffi_matcher_definition_value, %i[pointer], :string
@@ -194,24 +208,36 @@ module PactFfi
194
208
  attach_function :sync_http_delete, :pactffi_sync_http_delete, %i[pointer], :void
195
209
  attach_function :sync_http_get_request, :pactffi_sync_http_get_request, %i[pointer], :pointer
196
210
  attach_function :sync_http_get_request_contents, :pactffi_sync_http_get_request_contents, %i[pointer], :string
197
- attach_function :sync_http_set_request_contents, :pactffi_sync_http_set_request_contents, %i[pointer string string], :void
198
- attach_function :sync_http_get_request_contents_length, :pactffi_sync_http_get_request_contents_length, %i[pointer], :size_t
199
- attach_function :sync_http_get_request_contents_bin, :pactffi_sync_http_get_request_contents_bin, %i[pointer], :pointer
200
- attach_function :sync_http_set_request_contents_bin, :pactffi_sync_http_set_request_contents_bin, %i[pointer pointer size_t string], :void
211
+ attach_function :sync_http_set_request_contents, :pactffi_sync_http_set_request_contents, %i[pointer string string],
212
+ :void
213
+ attach_function :sync_http_get_request_contents_length, :pactffi_sync_http_get_request_contents_length, %i[pointer],
214
+ :size_t
215
+ attach_function :sync_http_get_request_contents_bin, :pactffi_sync_http_get_request_contents_bin, %i[pointer],
216
+ :pointer
217
+ attach_function :sync_http_set_request_contents_bin, :pactffi_sync_http_set_request_contents_bin,
218
+ %i[pointer pointer size_t string], :void
201
219
  attach_function :sync_http_get_response, :pactffi_sync_http_get_response, %i[pointer], :pointer
202
220
  attach_function :sync_http_get_response_contents, :pactffi_sync_http_get_response_contents, %i[pointer], :string
203
- attach_function :sync_http_set_response_contents, :pactffi_sync_http_set_response_contents, %i[pointer string string], :void
204
- attach_function :sync_http_get_response_contents_length, :pactffi_sync_http_get_response_contents_length, %i[pointer], :size_t
205
- attach_function :sync_http_get_response_contents_bin, :pactffi_sync_http_get_response_contents_bin, %i[pointer], :pointer
206
- attach_function :sync_http_set_response_contents_bin, :pactffi_sync_http_set_response_contents_bin, %i[pointer pointer size_t string], :void
221
+ attach_function :sync_http_set_response_contents, :pactffi_sync_http_set_response_contents,
222
+ %i[pointer string string], :void
223
+ attach_function :sync_http_get_response_contents_length, :pactffi_sync_http_get_response_contents_length,
224
+ %i[pointer], :size_t
225
+ attach_function :sync_http_get_response_contents_bin, :pactffi_sync_http_get_response_contents_bin, %i[pointer],
226
+ :pointer
227
+ attach_function :sync_http_set_response_contents_bin, :pactffi_sync_http_set_response_contents_bin,
228
+ %i[pointer pointer size_t string], :void
207
229
  attach_function :sync_http_get_description, :pactffi_sync_http_get_description, %i[pointer], :string
208
230
  attach_function :sync_http_set_description, :pactffi_sync_http_set_description, %i[pointer string], :int32
209
- attach_function :sync_http_get_provider_state, :pactffi_sync_http_get_provider_state, %i[pointer uint32_type], :pointer
231
+ attach_function :sync_http_get_provider_state, :pactffi_sync_http_get_provider_state, %i[pointer uint32_type],
232
+ :pointer
210
233
  attach_function :sync_http_get_provider_state_iter, :pactffi_sync_http_get_provider_state_iter, %i[pointer], :pointer
211
- attach_function :pact_interaction_as_synchronous_http, :pactffi_pact_interaction_as_synchronous_http, %i[pointer], :pointer
234
+ attach_function :pact_interaction_as_synchronous_http, :pactffi_pact_interaction_as_synchronous_http, %i[pointer],
235
+ :pointer
212
236
  attach_function :pact_interaction_as_message, :pactffi_pact_interaction_as_message, %i[pointer], :pointer
213
- attach_function :pact_interaction_as_asynchronous_message, :pactffi_pact_interaction_as_asynchronous_message, %i[pointer], :pointer
214
- attach_function :pact_interaction_as_synchronous_message, :pactffi_pact_interaction_as_synchronous_message, %i[pointer], :pointer
237
+ attach_function :pact_interaction_as_asynchronous_message, :pactffi_pact_interaction_as_asynchronous_message,
238
+ %i[pointer], :pointer
239
+ attach_function :pact_interaction_as_synchronous_message, :pactffi_pact_interaction_as_synchronous_message,
240
+ %i[pointer], :pointer
215
241
  attach_function :pact_message_iter_delete, :pactffi_pact_message_iter_delete, %i[pointer], :void
216
242
  attach_function :pact_message_iter_next, :pactffi_pact_message_iter_next, %i[pointer], :pointer
217
243
  attach_function :pact_sync_message_iter_next, :pactffi_pact_sync_message_iter_next, %i[pointer], :pointer
@@ -268,28 +294,42 @@ module PactFfi
268
294
  attach_function :provider_state_param_pair_delete, :pactffi_provider_state_param_pair_delete, %i[pointer], :void
269
295
  attach_function :sync_message_new, :pactffi_sync_message_new, %i[], :pointer
270
296
  attach_function :sync_message_delete, :pactffi_sync_message_delete, %i[pointer], :void
271
- attach_function :sync_message_get_request_contents_str, :pactffi_sync_message_get_request_contents_str, %i[pointer], :string
272
- attach_function :sync_message_set_request_contents_str, :pactffi_sync_message_set_request_contents_str, %i[pointer string string], :void
273
- attach_function :sync_message_get_request_contents_length, :pactffi_sync_message_get_request_contents_length, %i[pointer], :size_t
274
- attach_function :sync_message_get_request_contents_bin, :pactffi_sync_message_get_request_contents_bin, %i[pointer], :pointer
275
- attach_function :sync_message_set_request_contents_bin, :pactffi_sync_message_set_request_contents_bin, %i[pointer pointer size_t string], :void
297
+ attach_function :sync_message_get_request_contents_str, :pactffi_sync_message_get_request_contents_str, %i[pointer],
298
+ :string
299
+ attach_function :sync_message_set_request_contents_str, :pactffi_sync_message_set_request_contents_str,
300
+ %i[pointer string string], :void
301
+ attach_function :sync_message_get_request_contents_length, :pactffi_sync_message_get_request_contents_length,
302
+ %i[pointer], :size_t
303
+ attach_function :sync_message_get_request_contents_bin, :pactffi_sync_message_get_request_contents_bin, %i[pointer],
304
+ :pointer
305
+ attach_function :sync_message_set_request_contents_bin, :pactffi_sync_message_set_request_contents_bin,
306
+ %i[pointer pointer size_t string], :void
276
307
  attach_function :sync_message_get_request_contents, :pactffi_sync_message_get_request_contents, %i[pointer], :pointer
277
308
  attach_function :sync_message_get_number_responses, :pactffi_sync_message_get_number_responses, %i[pointer], :size_t
278
- attach_function :sync_message_get_response_contents_str, :pactffi_sync_message_get_response_contents_str, %i[pointer size_t], :string
279
- attach_function :sync_message_set_response_contents_str, :pactffi_sync_message_set_response_contents_str, %i[pointer size_t string string], :void
280
- attach_function :sync_message_get_response_contents_length, :pactffi_sync_message_get_response_contents_length, %i[pointer size_t], :size_t
281
- attach_function :sync_message_get_response_contents_bin, :pactffi_sync_message_get_response_contents_bin, %i[pointer size_t], :pointer
282
- attach_function :sync_message_set_response_contents_bin, :pactffi_sync_message_set_response_contents_bin, %i[pointer size_t pointer size_t string], :void
283
- attach_function :sync_message_get_response_contents, :pactffi_sync_message_get_response_contents, %i[pointer size_t], :pointer
309
+ attach_function :sync_message_get_response_contents_str, :pactffi_sync_message_get_response_contents_str,
310
+ %i[pointer size_t], :string
311
+ attach_function :sync_message_set_response_contents_str, :pactffi_sync_message_set_response_contents_str,
312
+ %i[pointer size_t string string], :void
313
+ attach_function :sync_message_get_response_contents_length, :pactffi_sync_message_get_response_contents_length,
314
+ %i[pointer size_t], :size_t
315
+ attach_function :sync_message_get_response_contents_bin, :pactffi_sync_message_get_response_contents_bin,
316
+ %i[pointer size_t], :pointer
317
+ attach_function :sync_message_set_response_contents_bin, :pactffi_sync_message_set_response_contents_bin,
318
+ %i[pointer size_t pointer size_t string], :void
319
+ attach_function :sync_message_get_response_contents, :pactffi_sync_message_get_response_contents, %i[pointer size_t],
320
+ :pointer
284
321
  attach_function :sync_message_get_description, :pactffi_sync_message_get_description, %i[pointer], :string
285
322
  attach_function :sync_message_set_description, :pactffi_sync_message_set_description, %i[pointer string], :int32
286
- attach_function :sync_message_get_provider_state, :pactffi_sync_message_get_provider_state, %i[pointer uint32_type], :pointer
287
- attach_function :sync_message_get_provider_state_iter, :pactffi_sync_message_get_provider_state_iter, %i[pointer], :pointer
323
+ attach_function :sync_message_get_provider_state, :pactffi_sync_message_get_provider_state, %i[pointer uint32_type],
324
+ :pointer
325
+ attach_function :sync_message_get_provider_state_iter, :pactffi_sync_message_get_provider_state_iter, %i[pointer],
326
+ :pointer
288
327
  attach_function :string_delete, :pactffi_string_delete, %i[string], :void
289
328
  attach_function :create_mock_server, :pactffi_create_mock_server, %i[string string bool], :int32
290
329
  attach_function :get_tls_ca_certificate, :pactffi_get_tls_ca_certificate, %i[], :string
291
330
  attach_function :create_mock_server_for_pact, :pactffi_create_mock_server_for_pact, %i[uint16 string bool], :int32
292
- attach_function :create_mock_server_for_transport, :pactffi_create_mock_server_for_transport, %i[uint16 string uint16 string string], :int32
331
+ attach_function :create_mock_server_for_transport, :pactffi_create_mock_server_for_transport,
332
+ %i[uint16 string uint16 string string], :int32
293
333
  attach_function :mock_server_matched, :pactffi_mock_server_matched, %i[int32], :bool
294
334
  attach_function :mock_server_mismatches, :pactffi_mock_server_mismatches, %i[int32], :string
295
335
  attach_function :cleanup_mock_server, :pactffi_cleanup_mock_server, %i[int32], :bool
@@ -305,13 +345,13 @@ module PactFfi
305
345
  attach_function :new_sync_message_interaction, :pactffi_new_sync_message_interaction, %i[uint16 string], :uint32_type
306
346
  attach_function :upon_receiving, :pactffi_upon_receiving, %i[uint32_type string], :bool
307
347
  attach_function :given, :pactffi_given, %i[uint32_type string], :bool
308
- attach_function :given, :pactffi_given, %i[uint32_type string], :bool
309
- attach_function :given_with_params, :pactffi_given_with_params, %i[uint32_t string string], :int32
348
+ attach_function :given_with_params, :pactffi_given_with_params, %i[uint32_type string string], :int32
310
349
  attach_function :interaction_test_name, :pactffi_interaction_test_name, %i[uint32_type string], :uint32_type
311
350
  attach_function :given_with_param, :pactffi_given_with_param, %i[uint32_type string string string], :bool
312
351
  attach_function :with_request, :pactffi_with_request, %i[uint32_type string string], :bool
313
352
  attach_function :with_query_parameter, :pactffi_with_query_parameter, %i[uint32_type string size_t string], :bool
314
- attach_function :with_query_parameter_v2, :pactffi_with_query_parameter_v2, %i[uint32_type string size_t string], :bool
353
+ attach_function :with_query_parameter_v2, :pactffi_with_query_parameter_v2, %i[uint32_type string size_t string],
354
+ :bool
315
355
  attach_function :with_specification, :pactffi_with_specification, %i[uint16 int32], :bool
316
356
  attach_function :with_pact_metadata, :pactffi_with_pact_metadata, %i[uint16 string string string], :bool
317
357
  attach_function :with_header, :pactffi_with_header, %i[uint32_type int32 string size_t string], :bool
@@ -319,7 +359,8 @@ module PactFfi
319
359
  attach_function :response_status, :pactffi_response_status, %i[uint32_type uint16], :bool
320
360
  attach_function :with_body, :pactffi_with_body, %i[uint32_type int32 string string], :bool
321
361
  attach_function :with_binary_file, :pactffi_with_binary_file, %i[uint32_type int32 string pointer size_t], :bool
322
- attach_function :with_multipart_file, :pactffi_with_multipart_file, %i[uint32_type int32 string string string], :pointer
362
+ attach_function :with_multipart_file, :pactffi_with_multipart_file, %i[uint32_type int32 string string string],
363
+ :pointer
323
364
  attach_function :pact_handle_get_message_iter, :pactffi_pact_handle_get_message_iter, %i[uint16], :pointer
324
365
  attach_function :pact_handle_get_sync_message_iter, :pactffi_pact_handle_get_sync_message_iter, %i[uint16], :pointer
325
366
  attach_function :pact_handle_get_sync_http_iter, :pactffi_pact_handle_get_sync_http_iter, %i[uint16], :pointer
@@ -327,12 +368,16 @@ module PactFfi
327
368
  attach_function :new_message, :pactffi_new_message, %i[uint16 string], :uint32_type
328
369
  attach_function :message_expects_to_receive, :pactffi_message_expects_to_receive, %i[uint32_type string], :void
329
370
  attach_function :message_given, :pactffi_message_given, %i[uint32_type string], :void
330
- attach_function :message_given_with_param, :pactffi_message_given_with_param, %i[uint32_type string string string], :void
371
+ attach_function :message_given_with_param, :pactffi_message_given_with_param, %i[uint32_type string string string],
372
+ :void
331
373
  attach_function :message_with_contents, :pactffi_message_with_contents, %i[uint32_type string pointer size_t], :void
332
374
  attach_function :message_with_metadata, :pactffi_message_with_metadata, %i[uint32_type string string], :void
375
+ attach_function :message_with_metadata_v2, :pactffi_message_with_metadata_v2, %i[uint32_type string string], :void
376
+ attach_function :with_metadata, :pactffi_with_metadata, %i[uint32_type string string int], :void
333
377
  attach_function :message_reify, :pactffi_message_reify, %i[uint32_type], :string
334
378
  attach_function :write_message_pact_file, :pactffi_write_message_pact_file, %i[uint16 string bool], :int32
335
- attach_function :with_message_pact_metadata, :pactffi_with_message_pact_metadata, %i[uint16 string string string], :void
379
+ attach_function :with_message_pact_metadata, :pactffi_with_message_pact_metadata, %i[uint16 string string string],
380
+ :void
336
381
  attach_function :pact_handle_write_file, :pactffi_pact_handle_write_file, %i[uint16 string bool], :int32
337
382
  attach_function :new_async_message, :pactffi_new_async_message, %i[uint16 string], :uint32_type
338
383
  attach_function :free_pact_handle, :pactffi_free_pact_handle, %i[uint16], :uint32_type
@@ -341,35 +386,56 @@ module PactFfi
341
386
  attach_function :verifier_new, :pactffi_verifier_new, %i[], :pointer
342
387
  attach_function :verifier_new_for_application, :pactffi_verifier_new_for_application, %i[string string], :pointer
343
388
  attach_function :verifier_shutdown, :pactffi_verifier_shutdown, %i[pointer], :void
344
- attach_function :verifier_set_provider_info, :pactffi_verifier_set_provider_info, %i[pointer string string string uint16 string], :void
345
- attach_function :verifier_add_provider_transport, :pactffi_verifier_add_provider_transport, %i[pointer string uint16 string string], :void
389
+ attach_function :verifier_set_provider_info, :pactffi_verifier_set_provider_info,
390
+ %i[pointer string string string ushort string], :void
391
+ attach_function :verifier_add_provider_transport, :pactffi_verifier_add_provider_transport,
392
+ %i[pointer string uint16 string string], :void
346
393
  attach_function :verifier_set_filter_info, :pactffi_verifier_set_filter_info, %i[pointer string string uint8], :void
347
- attach_function :verifier_set_provider_state, :pactffi_verifier_set_provider_state, %i[pointer string uint8 uint8], :void
348
- attach_function :verifier_set_verification_options, :pactffi_verifier_set_verification_options, %i[pointer uint8 ulong_long], :int32
394
+ attach_function :verifier_set_provider_state, :pactffi_verifier_set_provider_state, %i[pointer string uint8 uint8],
395
+ :void
396
+ attach_function :verifier_set_verification_options, :pactffi_verifier_set_verification_options,
397
+ %i[pointer uint8 ulong_long], :int32
349
398
  attach_function :verifier_set_coloured_output, :pactffi_verifier_set_coloured_output, %i[pointer uint8], :int32
350
399
  attach_function :verifier_set_no_pacts_is_error, :pactffi_verifier_set_no_pacts_is_error, %i[pointer uint8], :int32
351
- attach_function :verifier_set_publish_options, :pactffi_verifier_set_publish_options, %i[pointer string string pointer uint16 string], :int32
352
- attach_function :verifier_set_consumer_filters, :pactffi_verifier_set_consumer_filters, %i[pointer pointer uint16], :void
400
+ attach_function :verifier_set_publish_options, :pactffi_verifier_set_publish_options,
401
+ %i[pointer string string pointer uint16 string], :int32
402
+ attach_function :verifier_set_consumer_filters, :pactffi_verifier_set_consumer_filters, %i[pointer pointer uint16],
403
+ :void
353
404
  attach_function :verifier_add_custom_header, :pactffi_verifier_add_custom_header, %i[pointer string string], :void
354
405
  attach_function :verifier_add_file_source, :pactffi_verifier_add_file_source, %i[pointer string], :void
355
406
  attach_function :verifier_add_directory_source, :pactffi_verifier_add_directory_source, %i[pointer string], :void
356
407
  attach_function :verifier_url_source, :pactffi_verifier_url_source, %i[pointer string string string string], :void
357
- attach_function :verifier_broker_source, :pactffi_verifier_broker_source, %i[pointer string string string string], :void
358
- attach_function :verifier_broker_source_with_selectors, :pactffi_verifier_broker_source_with_selectors, %i[pointer string string string string uint8 string pointer uint16 string pointer uint16 pointer uint16], :void
408
+ attach_function :verifier_broker_source, :pactffi_verifier_broker_source, %i[pointer string string string string],
409
+ :void
410
+ attach_function :verifier_broker_source_with_selectors, :pactffi_verifier_broker_source_with_selectors,
411
+ %i[pointer string string string string uint8 string pointer uint16 string pointer uint16 pointer uint16], :void
359
412
  attach_function :verifier_execute, :pactffi_verifier_execute, %i[pointer], :int32
360
413
  attach_function :verifier_cli_args, :pactffi_verifier_cli_args, %i[], :string
361
414
  attach_function :verifier_logs, :pactffi_verifier_logs, %i[pointer], :string
362
415
  attach_function :verifier_logs_for_provider, :pactffi_verifier_logs_for_provider, %i[string], :string
363
416
  attach_function :verifier_output, :pactffi_verifier_output, %i[pointer uint8], :string
364
417
  attach_function :verifier_json, :pactffi_verifier_json, %i[pointer], :string
365
- attach_function :using_plugin, :pactffi_using_plugin, %i[uint16 string string], :uint32_type
366
- attach_function :cleanup_plugins, :pactffi_cleanup_plugins, %i[uint16], :void
367
- attach_function :interaction_contents, :pactffi_interaction_contents, %i[uint32_type int32 string string], :uint32_type
418
+ attach_function :using_plugin, :pactffi_using_plugin, %i[pointer string string], :uint32_type
419
+ attach_function :cleanup_plugins, :pactffi_cleanup_plugins, %i[pointer], :void
420
+ attach_function :interaction_contents, :pactffi_interaction_contents, %i[uint32_type int32 string string],
421
+ :uint32_type
368
422
  attach_function :matches_string_value, :pactffi_matches_string_value, %i[pointer string string uint8], :string
369
423
  attach_function :matches_u64_value, :pactffi_matches_u64_value, %i[pointer ulong_long ulong_long uint8], :string
370
424
  attach_function :matches_i64_value, :pactffi_matches_i64_value, %i[pointer int64 int64 uint8], :string
371
425
  attach_function :matches_f64_value, :pactffi_matches_f64_value, %i[pointer double double uint8], :string
372
426
  attach_function :matches_bool_value, :pactffi_matches_bool_value, %i[pointer uint8 uint8 uint8], :string
373
- attach_function :matches_binary_value, :pactffi_matches_binary_value, %i[pointer pointer ulong_long pointer ulong_long uint8], :string
427
+ attach_function :matches_binary_value, :pactffi_matches_binary_value,
428
+ %i[pointer pointer ulong_long pointer ulong_long uint8], :string
374
429
  attach_function :matches_json_value, :pactffi_matches_json_value, %i[pointer string string uint8], :string
430
+ attach_function :pact_handle_to_pointer, :pactffi_pact_handle_to_pointer, %i[uint16], :pointer
431
+ attach_function :handle_get_pact_spec_version, :pactffi_handle_get_pact_spec_version, %i[uint16], :int32
432
+ attach_function :with_multipart_file, :pactffi_with_multipart_file, %i[uint32_type int32 string string string],
433
+ :pointer
434
+ attach_function :set_header, :pactffi_set_header, %i[uint32_type int32 string string], :bool
435
+ attach_function :with_binary_body, :pactffi_with_binary_body, %i[uint32_type int32 string pointer size_t], :bool
436
+ attach_function :with_matching_rules, :pactffi_with_matching_rules, %i[uint32_type int32 string], :bool
437
+ attach_function :with_multipart_file_v2, :pactffi_with_multipart_file_v2,
438
+ %i[uint32_type int32 string string string string], :pointer
439
+ attach_function :message_with_metadata_v2, :pactffi_message_with_metadata_v2, %i[uint32_type string string], :void
440
+ attach_function :with_generators, :pactffi_with_generators, %i[uint32_type int string], :bool
375
441
  end
metadata CHANGED
@@ -1,43 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.4.22.1
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Yousaf Nabi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-05 00:00:00.000000000 Z
11
+ date: 2024-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: cucumber
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.4'
19
+ version: '9.2'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.4'
26
+ version: '9.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: httparty
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.17.3
33
+ version: 0.21.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.17.3
40
+ version: 0.21.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: nokogiri
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.16'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +80,20 @@ dependencies:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
82
  version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webrick
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.8'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.8'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: ffi
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -99,15 +127,14 @@ files:
99
127
  - lib/pact/ffi/async_message_pact.rb
100
128
  - lib/pact/ffi/http_consumer.rb
101
129
  - lib/pact/ffi/logger.rb
102
- - lib/pact/ffi/message_pact.rb
130
+ - lib/pact/ffi/message_consumer.rb
103
131
  - lib/pact/ffi/mock_server.rb
104
- - lib/pact/ffi/plugins.rb
132
+ - lib/pact/ffi/plugin_consumer.rb
105
133
  - lib/pact/ffi/sync_http_consumer.rb
106
134
  - lib/pact/ffi/sync_message_consumer.rb
107
135
  - lib/pact/ffi/utils.rb
108
136
  - lib/pact/ffi/verifier.rb
109
137
  - lib/pact/ffi/version.rb
110
- - lib/pact/fiddle.rb
111
138
  homepage: https://github.com/you54f/pact-ffi
112
139
  licenses:
113
140
  - MIT
@@ -127,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
154
  - !ruby/object:Gem::Version
128
155
  version: '0'
129
156
  requirements: []
130
- rubygems_version: 3.3.3
157
+ rubygems_version: 3.5.11
131
158
  signing_key:
132
159
  specification_version: 4
133
160
  summary: Pact Reference FFI libpact_ffi library wrapper