Remove trailing semicolons in Ruby code