class Bundler::GemVersionPromoter

def segments_do_not_match?(a, b, level)

def segments_do_not_match?(a, b, level)
  index = [:major, :minor].index(level)
  a.segments[index] != b.segments[index]
end