In the Rails console:
For some Gems that have their licensing information included in its specification, you can display them by running them from the rails console:
Gem.loaded_specs.each do |name, spec|
puts "#{name}: #{spec.license}"
end
or From your linux bash terminal:
for i in `gem list | cut -d" " -f1`; do echo "$i :" ; gem spec $i license; done
source
share