ruby/patches.nix: sort attributes alphabetically

And remove trailing whitespace.