class CKEditor5::Rails::Semver

def safe_update?(other_version)

def safe_update?(other_version)
  other = self.class.new(other_version)
  return false if other.major != major
  return true if other.minor > minor
  return true if other.minor == minor && other.patch > patch
  false
end