Skip to content

Instantly share code, notes, and snippets.

@v-kolesnikov
Created October 6, 2021 09:39
Show Gist options
  • Save v-kolesnikov/dcdd61adb8c3233b61e0339124904c1d to your computer and use it in GitHub Desktop.
Save v-kolesnikov/dcdd61adb8c3233b61e0339124904c1d to your computer and use it in GitHub Desktop.
Gem licenses ruby
text = Gem.loaded_specs.map do |name, spec|
"#{name};#{spec.licenses.join(', ')}"
end.join("\n")
puts text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment