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-1.49.2 lib/utils/spdx.rb
inspec-1.48.0 lib/utils/spdx.rb
inspec-1.47.0 lib/utils/spdx.rb
inspec-1.46.2 lib/utils/spdx.rb
inspec-1.45.13 lib/utils/spdx.rb
inspec-1.45.9 lib/utils/spdx.rb
inspec-1.44.8 lib/utils/spdx.rb
inspec-1.43.8 lib/utils/spdx.rb
inspec-1.43.5 lib/utils/spdx.rb
inspec-1.42.3 lib/utils/spdx.rb
inspec-1.41.0 lib/utils/spdx.rb
inspec-1.40.0 lib/utils/spdx.rb
inspec-1.39.1 lib/utils/spdx.rb
inspec-1.38.8 lib/utils/spdx.rb
inspec-1.37.6 lib/utils/spdx.rb
inspec-1.36.1 lib/utils/spdx.rb
inspec-1.35.1 lib/utils/spdx.rb
inspec-1.34.1 lib/utils/spdx.rb
inspec-1.33.12 lib/utils/spdx.rb
inspec-1.33.1 lib/utils/spdx.rb