From 7dac74c9537da8866bdb071dab02183562c56a33 Mon Sep 17 00:00:00 2001 From: Andrey Mikhaltsov Date: Thu, 22 Sep 2016 15:31:16 +0300 Subject: [PATCH] fix version detection with epoch version numbers from deb/ubuntu like 2:3.0.6-rwky1~trusty --- libraries/redisio.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/redisio.rb b/libraries/redisio.rb index 2188312b..32b447bf 100644 --- a/libraries/redisio.rb +++ b/libraries/redisio.rb @@ -44,7 +44,7 @@ def self.version_to_hash(version_string) version_array.flatten! { - major: version_array[0], + major: version_array[0].include?(':') ? version_array[0].split(':')[1] : version_array[0], minor: version_array[1], tiny: version_array[2], rc: version_array[3]