Sha256: dd63efda5d9bf17a686360b07990b3b485bd3e0dde21b39ab7376c14b9dfde5c
Contents?: true
Size: 386 Bytes
Versions: 5
Compression:
Stored size: 386 Bytes
Contents
# # Author: Waldemar Hummer (hummer@dsg.tuwien.ac.at) # provides "gems" gems Mash.new output = `gem list --local` # build list of gems output.split("\n").each do |line| if line.strip != "" && line[0] != "*" name = line.gsub(/^([a-z0-9A-Z\-]+) .*/, '\1') versions = line.gsub(/^.*\((.*)\)/, '\1') versions = versions.split(/[ ,]+/) gems[name] = versions end end
Version data entries
5 entries across 5 versions & 1 rubygems