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-4.3.2 lib/utils/spdx.rb
inspec-4.3.2 lib/utils/spdx.rb
inspec-core-4.2.0.preview lib/utils/spdx.rb
inspec-4.2.0.preview lib/utils/spdx.rb
inspec-core-4.1.4.preview lib/utils/spdx.rb
inspec-4.1.4.preview lib/utils/spdx.rb
inspec-core-3.9.3 lib/utils/spdx.rb
inspec-3.9.3 lib/utils/spdx.rb
inspec-core-3.9.0 lib/utils/spdx.rb
inspec-3.9.0 lib/utils/spdx.rb
inspec-core-3.7.11 lib/utils/spdx.rb
inspec-3.7.11 lib/utils/spdx.rb
inspec-core-3.7.1 lib/utils/spdx.rb
inspec-3.7.1 lib/utils/spdx.rb
inspec-core-3.6.6 lib/utils/spdx.rb
inspec-3.6.6 lib/utils/spdx.rb
inspec-core-3.6.4 lib/utils/spdx.rb
inspec-3.6.4 lib/utils/spdx.rb
inspec-core-2.3.28 lib/utils/spdx.rb
inspec-2.3.28 lib/utils/spdx.rb