Sha256: e490e18fc8d64088f9083af15d70bb8418522ee08a9586d2efa9605101be3943

Contents?: true

Size: 293 Bytes

Versions: 148

Compression:

Stored size: 293 Bytes

Contents

# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter
class Spdx
  def self.licenses
    spdx_file = File.join(File.dirname(__FILE__), 'spdx.txt').freeze
    File.read(spdx_file).split("\n")
  end

  def self.valid_license?(license)
    licenses.include?(license)
  end
end

Version data entries

148 entries across 148 versions & 2 rubygems

Version Path
inspec-core-3.6.2 lib/utils/spdx.rb
inspec-3.6.2 lib/utils/spdx.rb
inspec-core-3.5.0 lib/utils/spdx.rb
inspec-3.5.0 lib/utils/spdx.rb
inspec-core-3.4.1 lib/utils/spdx.rb
inspec-3.4.1 lib/utils/spdx.rb
inspec-core-3.3.14 lib/utils/spdx.rb
inspec-3.3.14 lib/utils/spdx.rb
inspec-core-3.2.6 lib/utils/spdx.rb
inspec-3.2.6 lib/utils/spdx.rb
inspec-core-3.1.3 lib/utils/spdx.rb
inspec-3.1.3 lib/utils/spdx.rb
inspec-core-3.0.64 lib/utils/spdx.rb
inspec-3.0.64 lib/utils/spdx.rb
inspec-core-3.0.61 lib/utils/spdx.rb
inspec-3.0.61 lib/utils/spdx.rb
inspec-core-3.0.52 lib/utils/spdx.rb
inspec-3.0.52 lib/utils/spdx.rb
inspec-core-3.0.46 lib/utils/spdx.rb
inspec-3.0.46 lib/utils/spdx.rb