The "squiggly" heredoc was introduced in later versions of Ruby, so using a more compatible version of them with gsubing (to have the same effect) to allow this to build on more versions of Ruby.