Sha256: a71af1089ebc6669e699b306aedf1be1587a9554d7937fdbdccc4e6ebfff1131

Contents?: true

Size: 314 Bytes

Versions: 13

Compression:

Stored size: 314 Bytes

Contents

#!/usr/bin/env ruby

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

if license
  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

13 entries across 13 versions & 1 rubygems

Version Path
licensee-4.3.1 bin/licensee
licensee-4.3.0 bin/licensee
licensee-4.2.4 bin/licensee
licensee-4.2.3 bin/licensee
licensee-4.2.2 bin/licensee
licensee-4.2.1 bin/licensee
licensee-4.2.0 bin/licensee
licensee-4.1.2 bin/licensee
licensee-4.1.1 bin/licensee
licensee-4.1.0 bin/licensee
licensee-4.0.1 bin/licensee
licensee-4.0.0 bin/licensee
licensee-3.0.0 bin/licensee