Module: LogStash::DependencyReport::SPDX

Defined in:
lib/logstash/dependency_report.rb

Constant Summary collapse

ALIASES =

This is a non-exhaustive, best effort list of licenses as they map to SPDX identifiers.

{
  "Apache-2.0" => [
    "Apache 2",
    "apache-2.0",
    "Apache 2.0",
    "Apache License (2.0)",
    "Apache License 2.0",
    "https://www.apache.org/licenses/LICENSE-2.0.txt",
    "http://www.apache.org/licenses/LICENSE-2.0.txt",
  ],
  "Artistic-2.0" => [
    "Artistic 2.0"
  ],
  "BSD-2-Clause" => [
    "2-clause BSDL",
    "2-clause"
  ],
  "GPL-2.0" => [
    "GPL-2"
  ]
}
MAP_APACHE2 =

Get a map of name => spdx

MAP_ARTISTIC2 =
MAP_BSD =
MAP_GPL2 =

Class Method Summary collapse

Class Method Details

.map(value) ⇒ Object



139
140
141
# File 'lib/logstash/dependency_report.rb', line 139

def map(value)
  MAP_APACHE2[value] ||  MAP_ARTISTIC2[value] || MAP_BSD[value] ||  MAP_GPL2[value] || value
end