diff options
Diffstat (limited to 'lib/leap/platform.rb')
-rw-r--r-- | lib/leap/platform.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/leap/platform.rb b/lib/leap/platform.rb index d97650b..89b1bc1 100644 --- a/lib/leap/platform.rb +++ b/lib/leap/platform.rb @@ -44,6 +44,9 @@ module Leap # return true if the platform version is within the specified range. # def version_in_range?(range) + if range.is_a? String + range = range.split('..') + end minimum_platform_version = Versionomy.parse(range.first) maximum_platform_version = Versionomy.parse(range.last) @version >= minimum_platform_version && @version <= maximum_platform_version |