https://github.com/cyclonedx/cyclonedx-ruby-gem
Creates CycloneDX Software Bill of Materials (SBOM) from Ruby projects
https://github.com/cyclonedx/cyclonedx-ruby-gem
bill-of-materials bom bundler cyclonedx gem mbom obom owasp package-url purl ruby saasbom sbom sbom-generator software-bill-of-materials spdx vex
Last synced: 10 months ago
JSON representation
Creates CycloneDX Software Bill of Materials (SBOM) from Ruby projects
- Host: GitHub
- URL: https://github.com/cyclonedx/cyclonedx-ruby-gem
- Owner: CycloneDX
- License: apache-2.0
- Created: 2018-05-21T21:52:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-18T13:20:36.000Z (about 2 years ago)
- Last Synced: 2025-03-28T19:37:54.859Z (11 months ago)
- Topics: bill-of-materials, bom, bundler, cyclonedx, gem, mbom, obom, owasp, package-url, purl, ruby, saasbom, sbom, sbom-generator, software-bill-of-materials, spdx, vex
- Language: Ruby
- Homepage: https://cyclonedx.org/
- Size: 85.9 KB
- Stars: 26
- Watchers: 4
- Forks: 18
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/CycloneDX/cyclonedx-ruby-gem/actions?workflow=Ruby+CI)
[](https://badge.fury.io/rb/cyclonedx-ruby)
[][License]
[](https://cyclonedx.org/)
[](https://cyclonedx.org/slack/invite)
[](https://groups.io/g/CycloneDX)
[](https://twitter.com/CycloneDX_Spec)
# CycloneDX Ruby Gem
The CycloneDX Ruby Gem creates a valid CycloneDX Software Bill of Materials (SBOM) from all project dependencies. CycloneDX is a lightweight SBOM specification that is easily created, human readable, and simple to parse.
#### Installing from RubyGems
```bash
gem install cyclonedx-ruby
```
#### Building and Installing From Source
```bash
gem build cyclonedx-ruby.gemspec
gem install cyclonedx-ruby-x.x.x.gem
```
#### Usage
cyclonedx-ruby [options]
`-v, --[no-]verbose` Run verbosely
`-p, --path path` Path to Ruby project directory
`-f, --format` Bom output format
`-h, --help` Show help message
**Output:** bom.xml or bom.json file in project directory
#### Example
```bash
cyclonedx-ruby -p /path/to/ruby/project
```
Copyright & License
-------------------
CycloneDX Ruby Gem is Copyright (c) OWASP Foundation. All Rights Reserved.
Permission to modify and redistribute is granted under the terms of the Apache 2.0 license. See the [LICENSE] file for the full license.
[License]: https://github.com/CycloneDX/cyclonedx-ruby-gem/blob/master/LICENSE