Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Updates for frozen string literal compatibility. #1182
To be clear, @twalpole did all the hard work previously in #1023, so I've doubled up on their efforts (taking a bit of a different approach, mostly to use
Given that all the testing dependencies seem to be frozen-string-literal friendly, you could take the approach of enabling the flag for MRI 2.4 onwards in the Travis configuration to avoid regressions:
before_script: - if (ruby -e "exit RUBY_VERSION.to_f >= 2.4"); then export RUBYOPT="--enable-frozen-string-literal"; fi; echo $RUBYOPT
Or adding the pragma comments will do the trick as well.