Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Vendor_gem_source_index.rb Bug Fix

DZone's Guide to

Vendor_gem_source_index.rb Bug Fix

·
Free Resource
// 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:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}