From 8f43db3167ffb9a34d00f1f815e022d95d885412 Mon Sep 17 00:00:00 2001 From: Andy Kluger Date: Wed, 2 Oct 2013 17:55:30 -0400 Subject: [PATCH] Fix for Issue #2470 - gem version string processing This fix assumes that no sane gem version has spaces in it, so when one like that is encountered, it will get truncated at the first space. --- packaging/gem | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/gem b/packaging/gem index 762bf576d50..2741dd90406 100644 --- a/packaging/gem +++ b/packaging/gem @@ -104,7 +104,7 @@ def get_installed_versions(module, remote=False): if match: versions = match.group(1) for version in versions.split(', '): - installed_versions.append(version) + installed_versions.append(version.split()[0]) return installed_versions def exists(module):