Current ruby-brace-to-do-end function does not remove trailing spaces at the end of the block. This issue was originally reported at https://github.com/syl20bnr/spacemacs/issues/12548 and then https://bugs.ruby-lang.org/issues/16014.