lib/cyclonedx/base.rb
def build_components_object
      components = []
      @scan_report.info[:dependencies].each do |dependency|
        component = {
          "bom-ref": "",
          "type": DEFAULT_COMPONENT_TYPE,
          "group": "",
          "name": dependency[:name],
          "version": "",
          "purl": ""
        }

        # TODO: Add specific component parsing for individual scanners
        components << component
      end
      components
    end
# Returns the 'components' object for a supported/unsupported scanner's report
Returns the 'components' object for a supported/unsupported scanner's report
Returns the ' components ' object for a supported / unsupported scanner ' s report
def build_components_object
      components = []
      @scan_report.info[:dependencies].each do |dependency|
        component = {
          "bom-ref": "",
          "type": DEFAULT_COMPONENT_TYPE,
          "group": "",
          "name": dependency[:name],
          "version": "",
          "purl": ""
        }
        components << component
      end
      components
    end
def build_components_object components = [ ] @scan_report . info [ :dependencies ] . each do | dependency | component = { "bom-ref" : "" , "type" : DEFAULT_COMPONENT_TYPE , "group" : "" , "name" : dependency [ :name ] , "version" : "" , "purl" : "" } components << component end components end
Returns the 'components' object for a supported/unsupported scanner's report
Returns the ' components ' object for a supported / unsupported scanner ' s report
# TODO: Add specific component parsing for individual scanners