Sha256: 6f9ff0e8d9813f30c2a045e5c99a0f7684a71204b8bf39efbbb985a5758c1f79
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
class CompareLinker class Formatter class Base private def downgrade?(old_ver, new_ver, old_tag, new_tag) Gem::Version.new(new_ver) < Gem::Version.new(old_ver) || (old_tag && new_tag && Gem::Version.new(to_ver(new_tag)) < Gem::Version.new(to_ver(old_tag))) end def to_ver(tag) return $1 if tag =~ /(\d+(?:\.\d+)+)\z/ end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
compare_linker-1.3.0 | lib/compare_linker/formatter/base.rb |