You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spec.summary="CycloneDX Software Bill of Material (SBOM) generation utility"
6
-
spec.description="CycloneDX is a lightweight software bill-of-material (SBOM) specification designed for use in application security contexts and supply chain component analysis. This Gem generates CycloneDX BOMs from Ruby projects."
spec.description='CycloneDX is a lightweight software bill-of-material (SBOM) specification designed for use in application security contexts and supply chain component analysis. This Gem generates CycloneDX BOMs from Ruby projects.'
# Licensed to the Apache Software Foundation (ASF) under one
4
-
# or more contributor license agreements. See the NOTICE file
5
-
# distributed with this work for additional information
6
-
# regarding copyright ownership. The ASF licenses this file
7
-
# to you under the Apache License, Version 2.0 (the
8
-
# "License"); you may not use this file except in compliance
9
-
# with the License. You may obtain a copy of the License at
10
-
#
11
-
# http://www.apache.org/licenses/LICENSE-2.0
12
-
#
13
-
# Unless required by applicable law or agreed to in writing,
14
-
# software distributed under the License is distributed on an
15
-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
-
# KIND, either express or implied. See the License for the
17
-
# specific language governing permissions and limitations
18
-
# under the License.
19
-
#
20
-
# SPDX-License-Identifier: Apache-2.0
21
-
# Copyright (c) OWASP Foundation. All Rights Reserved.
22
-
require"bundler"
23
-
require"fileutils"
24
-
require"json"
25
-
require"logger"
26
-
require"nokogiri"
27
-
require"optparse"
28
-
require"ostruct"
29
-
require"rest_client"
1
+
# frozen_string_literal: true
2
+
3
+
require'bundler'
4
+
require'fileutils'
5
+
require'json'
6
+
require'logger'
7
+
require'nokogiri'
8
+
require'optparse'
9
+
require'ostruct'
10
+
require'rest_client'
30
11
require'securerandom'
31
-
require_relative"bom_helpers"
12
+
require_relative'bom_helpers'
32
13
33
14
classBombuilder
34
15
defself.build(path)
@@ -40,29 +21,29 @@ def self.build(path)
40
21
begin
41
22
@logger.info("Changing directory to the original working directory located at #{original_working_directory}")
42
23
Dir.chdiroriginal_working_directory
43
-
rescue=>e
24
+
rescueStandardError=>e
44
25
@logger.error("Unable to change directory the original working directory located at #{original_working_directory}. #{e.message}: #{e.backtrace.join('\n')}")
0 commit comments