Do proper version comparison (e.g. so 0.1.10 is >= 0.1.6)
# File lib/safe_yaml/libyaml_checker.rb, line 29 def self.libyaml_patched? return false if (`which dpkg` rescue '').empty? libyaml_version = `dpkg -s libyaml-0-2`.match(/^Version: (.*)$/) return false if libyaml_version.nil? KNOWN_PATCHED_LIBYAML_VERSIONS.include?(libyaml_version[1]) end
Generated with the Darkfish Rdoc Generator 2.