Over a million developers have joined DZone.

Vendor_gem_source_index.rb Bug Fix

·
// This fixes improper handling gems with -win32 postfix in names


def version_for_dir(d)
  matches = /-(\d+\.\d+\.\d+)/.match(d) #matches = /-([^-]+)$/.match(d) #Zhoran
  Gem::Version.new(matches[1]) if matches
end
Topics:

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

{{ parent.tldr }}

{{ parent.urlSource.name }}