Sha256: aa46d45e518131f6925db96150ce8a644e1dcdadac2fa032a0d9896fdf71d4c9
Contents?: true
Size: 674 Bytes
Versions: 4
Compression:
Stored size: 674 Bytes
Contents
module PolishGeeks module DevTools module Commands # Command wrapper for Bundler Audit # Checks for vulnerable versions of gems in Gemfile.lock. # @see https://github.com/rubysec/bundler-audit class BundlerAudit < Base self.type = :validator # Executes this command # @return [String] command output def execute @output = Shell.new.execute('bundle-audit update 2>&1 > /dev/null; bundle-audit check') end # @return [Boolean] true if there were no vulnerabilities found def valid? @output.match(/Unpatched versions found/).nil? end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems