Ruby for open source

Ruby for open source support

Refer to the Ruby details for supported package managers and features.

Open source and licensing

Bundler support

Snyk supports testing, monitoring, and fixing Ruby Projects in the CLI and Git integrations that have their dependencies managed by Bundler and comparing the specific dependency versions against the Ruby vulnerability database.

Snyk tests all Bundler groups. It is not possible to exclude certain groups, such as test or development groups.

Manifest files supported with Snyk for Ruby

The following manifest files are supported:

  • Gemfile

  • Gemfile.lock

Snyk requires both files to be present to correctly test, monitor, and fix Ruby Projects.

Private Gem sources

If your Gemfile needs access to private Gem sources, see Private gem sources for Ruby configuration.

Using private Gem sources should work normally when you are using the Snyk CLI.

When creating Fix PRs for Ruby Projects using private Gem sources, Snyk may need access to the service hosting the Gems to update the file correctly.

Fixing vulnerabilities in your Ruby Projects

Snyk can fix vulnerabilities by updating vulnerable gems using bundle updateafter modifying your Gemfile, adhering to the rules you have specified there as far as possible.

In some scenarios, Snyk cannot upgrade all dependencies to non-vulnerable versions. In this case, consider updating the rules in your Gemfile.

Last updated

Was this helpful?