lib/rouge/cli.rb in rouge-4.2.0 vs lib/rouge/cli.rb in rouge-4.2.1

- old
+ new

@@ -345,12 +345,11 @@ def run Formatter.enable_escape! if @escape formatter.format(lexer.lex(input), &method(:print)) end - private_class_method - def self.parse_cgi(str) + private_class_method def self.parse_cgi(str) pairs = CGI.parse(str).map { |k, v| [k.to_sym, v.first] } Hash[pairs] end end @@ -509,11 +508,10 @@ end end end - private_class_method - def self.normalize_syntax(argv) + private_class_method def self.normalize_syntax(argv) out = [] argv.each do |arg| case arg when /^(--\w+)=(.*)$/ out << $1 << $2