bin/review-check in review-3.2.0 vs bin/review-check in review-4.0.0

- old
+ new

@@ -48,11 +48,11 @@ raise ReVIEW::ApplicationError, "section #{n} not exist" files = ents.map(&:path) end opts.on('--text', 'Check text.') do modes ||= [] - modes.push :text + modes.push(:text) end opts.on('--help', 'print this message and quit.') do puts opts.help exit 0 end @@ -70,11 +70,11 @@ modes ||= [:text] modes.each do |mode| case mode when :text - check_text files + check_text(files) else raise 'must not happen' end end end @@ -120,13 +120,13 @@ nega = [] File.foreach(rc) do |line| next if line[0, 1] == '#' if / !/ =~ line line, n = *line.split('!', 2) - nega.push n.strip + nega.push(n.strip) end - words.push line.strip + words.push(line.strip) end return Regexp.compile(words.join('|')), nega.empty? ? nil : Regexp.compile(nega.join('|')) end @@ -155,10 +155,10 @@ lineno = f.lineno while line = f.gets break if line.strip.empty? break if %r{\A(?:=|//[\w\}])} =~ line next if /\A\#@/ =~ line - buf.push line.strip + buf.push(line.strip) end yield buf, lineno @review_utils_word_ok = nil end end