Last active
April 25, 2016 20:30
-
-
Save larryfox/e2adadd26c7f7bd1393ca7199dc9672d to your computer and use it in GitHub Desktop.
Get gem licenses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File.open('licenses.txt', 'w+') do |io| | |
Dir.glob('.gem/**/*LICENSE*').map do |filename| | |
io.write("====================================\n") | |
io.write("#{filename}\n") | |
io.write("====================================\n\n") | |
io.write File.read(filename) | |
io.write("\n\n\n\n") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment