Platinum Partner

Remove Older Gem Versions

// description of your code here
This code removes all but the most recent version of each ruby gem in your system.


EOL_SEPARATOR = "\n"
gems = `gem list`.split(EOL_SEPARATOR)
gems.each do |g|    
  gem_name = g.split("(").first
  cmd = "gem cleanup #{gem_name}"
  system(cmd)
end
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}