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

vault_coh

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vault_coh

  • 6.2.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Vault

Gem Version Documentation

A native Ruby client wrapper for the vault Company of Heroes replay parser, integrated via a Rust native extension.

Installation

First, make sure you have a relatively recent version of the Rust toolchain installed (minimum supported Rust version for vault is 1.66.0). You can install Rust easily using rustup.

Then you can add to Gemfile:

gem 'vault_coh'

And run bundle install.

Usage

Currently vault accepts a byte array and parses it as a Company of Heroes 3 replay file, returning a parsed object when successful or an error on failure:

require 'vault_coh'

bytes = File.read('/path/to/replay.rec').unpack('C*')
replay = VaultCoh::Replay.from_bytes(bytes)
puts replay.version

All information available from parsing can be found in the documentation.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ryantaylor/vault-rb.

If you need to make changes to the Rust code, you can compile the extension by running rake compile or run tests with cargo test.

License

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

FAQs

Package last updated on 30 Sep 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