lib/massa/analyzer.rb in massa-0.5.0 vs lib/massa/analyzer.rb in massa-0.6.0

- old
+ new

@@ -6,14 +6,15 @@ require 'English' module Massa class Analyzier attr_reader :verbose + alias verbose? verbose def self.run!(options) - new(options).run! + new(**options).run! end def initialize(verbose: false) @verbose = verbose end @@ -42,10 +43,10 @@ command_output = '' if verbose? system(tool.command) else - IO.popen(tool.command, err: [:child, :out]) { |io| command_output = io.read } + IO.popen(tool.command, err: %i[child out]) { |io| command_output = io.read } end return if $CHILD_STATUS.success? Massa::CLI.colorize :red, "¯\\_(ツ)_/¯ #{tool.description} failed:"