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-2.2.102 lib/utils/spdx.rb
inspec-2.2.102 lib/utils/spdx.rb
inspec-core-2.2.101 lib/utils/spdx.rb
inspec-2.2.101 lib/utils/spdx.rb
inspec-core-2.2.78 lib/utils/spdx.rb
inspec-2.2.78 lib/utils/spdx.rb
inspec-core-2.2.70 lib/utils/spdx.rb
inspec-2.2.70 lib/utils/spdx.rb
inspec-core-2.2.64 lib/utils/spdx.rb
inspec-2.2.64 lib/utils/spdx.rb
inspec-core-2.2.61 lib/utils/spdx.rb
inspec-2.2.61 lib/utils/spdx.rb
inspec-core-2.2.55 lib/utils/spdx.rb
inspec-2.2.55 lib/utils/spdx.rb
inspec-core-2.2.54 lib/utils/spdx.rb
inspec-2.2.54 lib/utils/spdx.rb
inspec-core-2.2.50 lib/utils/spdx.rb
inspec-2.2.50 lib/utils/spdx.rb
inspec-core-2.2.41 lib/utils/spdx.rb
inspec-2.2.41 lib/utils/spdx.rb