generate list of files for gem spec

Gemspec files require the list of files to include in the gem build, here’s simple command you can run to add all files descending from the current directory, it ignores the .git directory and sorts the list for you.

1
find . -type file | grep -v .git/ | sort

You just to add the ruby array syntax.
replace ./ with ”
replace \n with “,\n

Leave a Reply