Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

pact-ffi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pact-ffi

  • 0.4.22.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

PactFfi

Ruby spike gem, to show interactions with the Pact Rust FFI methods.

Available on RubyGems - https://rubygems.org/gems/pact-ffi

Installation

Add this line to your application's Gemfile:

gem 'pact-ffi'

And then execute:

bundle

Or install it yourself as:

gem install pact-ffi

Usage

Simple

require 'pact/ffi'

puts PactFfi.pactffi_version

Supported Platforms

  • Ruby
    • This gem is compatible with all the rubies, and various platforms, it comes pre-packaged with the pact_ffi binary for each platform.
OSRubyArchitectureSupportedRuby Platform
OSX2.6 - 3.3x86_64βœ…x86_64-darwin
OSX2.6 - 3.3aarch64 (arm)βœ…arm64-darwin
Linux2.6 - 3.3x86_64βœ…x86_64-linux
Linux2.6 - 3.3aarch64 (arm)βœ…aarch64-linux
Linux (musl)2.6 - 3.3x86_64βœ…x86_64-linux-musl
Linux (musl)2.6 - 3.3aarch64 (arm)βœ…aarch64-linux-musl
Windows2.6 - 3.3x86_64βœ…x64-mingw-ucrt

You can checkout the ci tests, to see all the architectures, platforms and examples tested

note - Alpine is currently not supported, but is on the list

  • FFI libraries for your current platform - run ./script/download-libs.sh to download

  • If testing the protobuf plugin

    • 3.0 for protobuf/grpc example
      • See https://grpc.io/docs/languages/ruby/quickstart/ for steps
      • See examples/proto-ruby/README.md for notes
      • ruby-grpc is not currently, on m1 hardware for the pact-protobuf-plugin example
      • Have the pact-protobuf plugin available
        • Run pact-plugin-cli -y install https://github.com/pactflow/pact-protobuf-plugin/releases/latest

Development

  • run bin/setup or bundle install to install dependencies
  • run ./script/download-libs.sh to download FFI libraries for your current platform
  • run rake spec to run tests

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pact-ffi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the PactFfi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Pact Compatibility Suite

Help us implement the Pact Compatibility Suite

compatibility-suite/pact-compatibility-suite/features
β”œβ”€β”€ V1
β”‚   β”œβ”€β”€ http_consumer.feature
β”‚   └── http_provider.feature
β”œβ”€β”€ V2
β”‚   β”œβ”€β”€ http_consumer.feature
β”‚   └── http_provider.feature
β”œβ”€β”€ V3
β”‚   β”œβ”€β”€ generators.feature
β”‚   β”œβ”€β”€ http_consumer.feature
β”‚   β”œβ”€β”€ http_generators.feature
β”‚   β”œβ”€β”€ http_matching.feature
β”‚   β”œβ”€β”€ http_provider.feature
β”‚   β”œβ”€β”€ matching_rules.feature
β”‚   β”œβ”€β”€ message_consumer.feature
β”‚   └── message_provider.feature
β”œβ”€β”€ V4
β”‚   β”œβ”€β”€ generators.feature
β”‚   β”œβ”€β”€ http_consumer.feature βœ…
β”‚   β”œβ”€β”€ http_provider.feature
β”‚   β”œβ”€β”€ matching_rules.feature
β”‚   β”œβ”€β”€ message_consumer.feature βœ…
β”‚   β”œβ”€β”€ message_provider.feature βœ…
β”‚   β”œβ”€β”€ synchronous_message_consumer.feature βœ…
β”‚   └── v4.feature βœ…

FAQs

Package last updated on 16 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc