Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
squiggly heredoc with single quotes fails to run #4169
We routinely see an error in JRuby runs on Travis when loading the file capybara/node/actions. The reason for this is that it contains squiggly heredocs with delimiters with quotes (<<~'JS' to be specific). link: https://github.com/teamcapybara/capybara/blob/3.2.0/lib/capybara/node/actions.rb#L310-L331 JRuby couldn't parse squiggly heredocs with single quotes in the delimeter until 188.8.131.52. link: jruby/jruby#4169 Because capybara isn't a runtime dependency for spinach, making our JRuby runs on Travis use a newer version of JRuby doesn't actually affect our users. The alternative, getting capybara's maintainers to accept a PR removing the quotes from the heredoc delimeters in that file, seems like it would take much more effort, for very little benefit. As a side note, I have no clue what the benefit of adding quotes (single or double) to a heredoc delimeter is. Those capybara heredocs work fine with or without quotes in the delimeter.