Skip to content
Snippets Groups Projects
Unverified Commit 0ba79a63 authored by Rémy Coutable's avatar Rémy Coutable Committed by GitHub
Browse files

Use Gem Version in comparison

parent 1baa713a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -290,7 +290,7 @@ module Guard
 
def _history(pry)
# https://github.com/pry/pry/blob/5bf2585d0a49a4a3666a9eae80ee31153e3ffcf4/CHANGELOG.md#v0120-november-5-2018
if Pry::VERSION < "0.12.0"
if Gem::Version.new(Pry::VERSION) < Gem::Version.new("0.12.0")
return pry.input_array.size
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment