1# rubocop:disable Lint/DeprecatedGemVersion 2class Rex::Version < Gem::Version 3 4 def initialize(version) 5 if version.nil? 6 # Rubygems 4 is deprecating `nil` as a valid version number 7 # Currently it is the equivalent of a `0` so we set that here to keep the same functionality 8 version = 0 9 end 10 super version 11 end 12end 13# rubocop:enable Lint/DeprecatedGemVersion 14 15