Avoid using `chomp:true` option to `File.readlines`.

The option is not available in the old version of Ruby.
parent 7ab7cadb
......@@ -164,7 +164,8 @@ file presym_file => cfiles+rbfiles+[__FILE__] do
src.scan(/\bdef +(\w+)/)]
end
symbols = (csymbols+rbsymbols+op_table.keys).flatten.compact.uniq.sort
presyms = File.readlines(presym_file, chomp: true) rescue []
presyms = File.readlines(presym_file) rescue []
presyms.each{|x| x.chomp!}
if presyms != symbols
File.write(presym_file, symbols.join("\n"))
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment