Skip to content

Instantly share code, notes, and snippets.

@mdesantis
Created September 14, 2011 21:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdesantis/1217779 to your computer and use it in GitHub Desktop.
Save mdesantis/1217779 to your computer and use it in GitHub Desktop.
Displaying installed gems without version numbers - in one line =)
#!/usr/bin/env ruby
puts `gem list`.split("\n").map{ |gem_with_version| gem_with_version[/^.*?(?= )/] }.join("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment