# File bundler/version_ranges.rb, line 15 def cover?(v) return false if left.inclusive && left.version > v return false if !left.inclusive && left.version >= v if right.version != INFINITY return false if right.inclusive && right.version < v return false if !right.inclusive && right.version <= v end true end
# File bundler/version_ranges.rb, line 27 def empty? left.version == right.version && !(left.inclusive && right.inclusive) end