Sha256: 0baffd7be872145e047b77a62f4b600e6b7abf8971eae2100225c572f641b3f1

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

#!/usr/bin/env ruby

require_relative "../lib/licensee"
project = Licensee::Project.new(Dir.pwd)
license = project.license_file

if license
  puts "License file: #{project.send(:license_blob)[:name]}"
  puts "License: #{license.match ? license.match.meta['title'] : 'no license'}"
  puts "Confidence: #{license.confidence}%"
  puts "Method: #{license.matcher.class}"
else
  puts "Unknown"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
licensee-4.4.2 bin/licensee
licensee-4.4.1 bin/licensee
licensee-4.4.0 bin/licensee
licensee-4.3.3 bin/licensee
licensee-4.3.2 bin/licensee