Skip to content

Commit

Permalink
chore: fix plugin should be uint16 not pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Aug 16, 2024
1 parent b3fb711 commit eb6af90
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ task :yank do
end

task :push do
sh 'cd pkg && gem push pact-ffi-0.4.22.1-arm64-darwin.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.1-x64-mingw-ucrt.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.1-x86_64-darwin.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.1-aarch64-linux.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.1-x86_64-linux.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.1-aarch64-linux-musl.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.1-x86_64-linux-musl.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.2-arm64-darwin.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.2-x64-mingw-ucrt.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.2-x86_64-darwin.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.2-aarch64-linux.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.2-x86_64-linux.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.2-aarch64-linux-musl.gem'
sh 'cd pkg && gem push pact-ffi-0.4.22.2-x86_64-linux-musl.gem'
end
4 changes: 2 additions & 2 deletions lib/pact/ffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ module PactFfi
attach_function :verifier_logs_for_provider, :pactffi_verifier_logs_for_provider, %i[string], :string
attach_function :verifier_output, :pactffi_verifier_output, %i[pointer uint8], :string
attach_function :verifier_json, :pactffi_verifier_json, %i[pointer], :string
attach_function :using_plugin, :pactffi_using_plugin, %i[pointer string string], :uint32_type
attach_function :cleanup_plugins, :pactffi_cleanup_plugins, %i[pointer], :void
attach_function :using_plugin, :pactffi_using_plugin, %i[uint16 string string], :uint32_type
attach_function :cleanup_plugins, :pactffi_cleanup_plugins, %i[uint16], :void
attach_function :interaction_contents, :pactffi_interaction_contents, %i[uint32_type int32 string string],
:uint32_type
attach_function :matches_string_value, :pactffi_matches_string_value, %i[pointer string string uint8], :string
Expand Down
4 changes: 2 additions & 2 deletions lib/pact/ffi/plugin_consumer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ module PluginConsumer
'RESULT_FAILED' => 1,
]

attach_function :using_plugin, :pactffi_using_plugin, %i[pointer string string], :uint32_type
attach_function :cleanup_plugins, :pactffi_cleanup_plugins, %i[pointer], :void
attach_function :using_plugin, :pactffi_using_plugin, %i[uint16 string string], :uint32_type
attach_function :cleanup_plugins, :pactffi_cleanup_plugins, %i[uint16], :void
attach_function :interaction_contents, :pactffi_interaction_contents, %i[uint32_type int32 string string],
:uint32_type
end
Expand Down
2 changes: 1 addition & 1 deletion lib/pact/ffi/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Pact
module Version
VERSION = '0.4.22.1'
VERSION = '0.4.22.2'
end
end
2 changes: 1 addition & 1 deletion pact-ffi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = 'pact-ffi'
spec.version = '0.4.22.1'
spec.version = '0.4.22.2'
spec.authors = ['Yousaf Nabi']
spec.email = ['[email protected]']
spec.summary = 'Pact Reference FFI libpact_ffi library wrapper'
Expand Down

0 comments on commit eb6af90

Please sign in to comment.