bin/licensee in licensee-6.1.1 vs bin/licensee in licensee-7.0.0
- old
+ new
@@ -1,20 +1,23 @@
#!/usr/bin/env ruby
-require_relative "../lib/licensee"
+require_relative '../lib/licensee'
path = ARGV[0] || Dir.pwd
-project = Licensee::GitProject.new(path, detect_packages: true)
+options = { detect_packages: true, detect_readme: true }
+project = Licensee::GitProject.new(path, options)
file = project.matched_file
if project.license_file
puts "License file: #{project.license_file.filename}"
- puts "Attribution: #{project.license_file.attribution}" if project.license_file.attribution
+ if project.license_file.attribution
+ puts "Attribution: #{project.license_file.attribution}"
+ end
end
if file
puts "License: #{file.license ? file.license.meta['title'] : 'no license'}"
puts "Confidence: #{file.confidence}%"
puts "Method: #{file.matcher.class}"
else
- puts "Unknown"
+ puts 'Unknown'
end