GithubHelp home page GithubHelp logo

cyclonedx / cyclonedx-ruby-gem Goto Github PK

View Code? Open in Web Editor NEW
19.0 5.0 18.0 88 KB

Creates CycloneDX Software Bill of Materials (SBOM) from Ruby projects

Home Page: https://cyclonedx.org/

License: Apache License 2.0

Ruby 77.55% Gherkin 22.45%
bom spdx ruby gem bundler bill-of-materials software-bill-of-materials package-url purl sbom cyclonedx owasp sbom-generator obom mbom saasbom vex

cyclonedx-ruby-gem's Introduction

Build Status Gem Version License Website Slack Invite Group Discussion Twitter

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

gem install cyclonedx-ruby 

Building and Installing From Source

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

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.

cyclonedx-ruby-gem's People

Contributors

chris-sansone-angi avatar coderpatros avatar jeffreysfllo24 avatar jkbuster avatar jkobti avatar josephkobti avatar mscottford avatar ryancammer avatar ssproessig avatar stevespringett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cyclonedx-ruby-gem's Issues

invalid option: --format

$ cyclonedx-ruby --path . --format json
/bundle/gems/cyclonedx-ruby-1.1.0/lib/bom_builder.rb:68:in `setup': invalid option: --format (OptionParser::InvalidOption)
	from /bundle/gems/cyclonedx-ruby-1.1.0/lib/bom_builder.rb:15:in `build'
	from /bundle/gems/cyclonedx-ruby-1.1.0/bin/cyclonedx-ruby:4:in `<top (required)>'
	from /bundle/bin/cyclonedx-ruby:23:in `load'
	from /bundle/bin/cyclonedx-ruby:23:in `<main>'

format is in readme.md, but didn't work

Copyright & License

I have a question about Copyright & License!
I have already created a gem that is working, should I include the Copyright & License notice at the head of each file, or should I simply create a PR with the code I have and then we'll add that stuff later on before we merge it?
I'm not really familiar how this stuff work

Lack of dependencies in cyclonedx-ruby.gemspec file causing runtime issues if client does not have appropriate dependent gems installed

The cyclonedx-ruby.gemspec file does not have any dependencies defined using s.add_runtime_dependency or s.add_development_dependency. If a user does not have a dependent gem library installed they will get errors.

For example a client that does not have the rest-client gem installed will get the following error when they run cyclonedx-ruby:

kernel_require.rb:54:in `require': cannot load such file -- rest-client (LoadError)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.