Skip to content

Commit

Permalink
fix version detection with epoch version numbers from deb/ubuntu like…
Browse files Browse the repository at this point in the history
… 2:3.0.6-rwky1~trusty
  • Loading branch information
Andrey Mikhaltsov committed Feb 6, 2017
1 parent 63af45a commit 7dac74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/redisio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7dac74c

Please sign in to comment.