Ruby

Applicability

Snyk supports Ruby for code analysis and Ruby for open source.

Check the language availability to be imported as an application, tested, or monitored using the Snyk products.

Available functions:

  • SCM import, available for Snyk Open Source and Snyk Code.

  • Test or monitor your app through CLI and IDE, available for Snyk Open Source and Snyk Code.

  • Test your app's SBOM using pkg:gem

  • Test your app's packages using pkg:gem

Package managers and supported file extensions

Snyk for Ruby supports Bundler as a package manager and all Gemfile and Gemfile.lock are compatible with the Snyk supported Ruby versions.

As a package registry, rubygems.org is supported.

Supported Ruby versions

Ruby main version
Ruby specific version

2.3.X

2.3.1, 2.3.6

2.4.X

2.4.0, 2.4.1, 2.4.2, 2.4.5, 2.4.6, 2.4.9

2.5.X

2.5.0, 2.5.1, 2.5.3

2.6.X

2.6.1, 2.6.3, 2.6.5, 2.6.6

2.7.X

2.7.2, 2.7.3, 2.7.4, 2.7.5, 2.7.6, 2.7.7, 2.7.8

3.0.X

3.0.0

3.1.X

3.1.0, 3.1.1, 3.1.2, 3.1.3

3.2.X

3.2.0, 3.2.1

Snyk for Ruby supports the following file formats:

  • Snyk Open Source: gemfile, gemfile.lock

  • Snyk Code: .erb, .haml, .rb, .rhtml, .slm

Frameworks and libraries

The following frameworks and libraries are supported in Snyk for Ruby:

  • ActiveRecord - Partial

  • Connection - Comprehensive

  • LibXML - Comprehensive

  • mysql2 - Comprehensive

  • Nokogiri - Comprehensive

  • OpenSSL - Comprehensive

  • openai ruby client - Comprehensive

  • ruby-openai - Comprehensive

  • rexml - Comprehensive

  • Ruby On Rails - Comprehensive

  • sinatra - Comprehensive

  • sqlite3-ruby - Comprehensive

Features

The following features are supported in Snyk for Ruby:

Snyk Open Source
Snyk Code
  • Fix PRs

  • License scanning

  • Reports

  • Reports

  • Custom rules

Troubleshooting Snyk for Ruby

If you need help, contact Snyk Support.

Last updated

More information

Snyk privacy policy

© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.