Skip to content

Updates for frozen string literal compatibility. - #1376

Merged
nateberkopec merged 1 commit into
puma:masterfrom
pat:frozen-string-literals
Aug 3, 2017
Merged

nateberkopec merged 1 commit into
puma:masterfrom
pat:frozen-string-literals

Conversation

@pat

@pat pat commented Jul 22, 2017

Copy link
Copy Markdown
Contributor

These changes allow the tests to run with RUBYOPT="--enable-frozen-string-literal" - well, except for the last three tests in test/test_integration.rb, which were hanging for me, so I added temporary skip statements in (though this happens without the env variable too - a quirk of my system, I guess).

At the current point in time, Rubocop is not frozen-string-literal friendly, as it depends on parser (which I've got a pending PR submitted for), but parser depends on racc (which has existing PRs from quite some time ago, not yet merged). So, if anyone knows anything about racc, would love your input there, as the maintainer of parser is happy enough with my patch but wants racc patched first. Due to the compiling nature of parser, it can't be used as a git reference in Gemfiles, so this is certainly more of a roadblock than I'd like.

All of that is to say: there's no point setting the RUBYOPT flag for MRI 2.4+ in the Travis configuration until these dependencies are sorted, which means there's the possibility of introducing regressions in the meantime.

whitequark/parser#354
ruby/racc#80
ruby/racc#81

@nateberkopec nateberkopec modified the milestone: 3.10.0 Aug 3, 2017
@nateberkopec
nateberkopec merged commit b25dc5d into puma:master Aug 3, 2017
@pat

pat commented Aug 3, 2017

Copy link
Copy Markdown
Contributor Author

Thanks Nate :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants