Skip to content

Instantly share code, notes, and snippets.

@Fryguy
Created March 21, 2017 21:07
Show Gist options
  • Save Fryguy/105255eb47fc78560ae26dd16cad8462 to your computer and use it in GitHub Desktop.
Save Fryguy/105255eb47fc78560ae26dd16cad8462 to your computer and use it in GitHub Desktop.
require 'licensee'
require 'active_support/core_ext/object/try'
licenses = `bundle list --paths`.split.collect do |gem_path|
[File.basename(gem_path), Licensee.license(gem_path).try(:key)]
end
require 'more_core_extensions/core_ext/array/tableize'
puts licenses.unshift(["gem", "license"]).tableize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment