Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mustermann is not compatible with JRuby --enable=frozen-string-literal param #110

Closed
brometeo opened this issue Sep 14, 2020 · 11 comments
Closed
Assignees

Comments

@brometeo
Copy link

It tries to modify a frozen String in the code line:

mustermann-1.1.1/lib/mustermann/ast/node.rb:59

@brometeo
Copy link
Author

Any news about this issue? Opinion? :(

@olleolleolle
Copy link
Member

@brometeo Would you like to offer a PR?

@olleolleolle
Copy link
Member

https://github.com/sinatra/mustermann/blob/master/mustermann/lib/mustermann/ast/node.rb#L111 This line defines a String which is not mutable, and we need it to be. +"" would make a mutable String, whereas "" (the existing code) is a frozen one.

@brometeo
Copy link
Author

brometeo commented Apr 15, 2021

@brometeo Would you like to offer a PR?

Pull Request? I need permission for updating code :)

@namusyaka
Copy link
Member

I'll take a look at this after switching our Ci into actions. Sorry for the late reply.

@michal-granec
Copy link

If it's ok with you @namusyaka I can handle the PR for this issue. WDYT?

@dentarg
Copy link
Member

dentarg commented Mar 4, 2022

Go for it

michal-granec pushed a commit to michal-granec/mustermann that referenced this issue Mar 13, 2022
@michal-granec
Copy link

@olleolleolle and @namusyaka PR is ready to be reviewed. Let me know if there is anything I should change, add or try out 😉

@brometeo
Copy link
Author

Any news about this issue? It is very annoying :(

jkowens added a commit that referenced this issue May 19, 2022
@jkowens
Copy link
Member

jkowens commented May 19, 2022

I merged @michal-granec's PR into mustermann master, but we'll need @namusyaka to cut a release to get the fix out.

@jkowens
Copy link
Member

jkowens commented Jul 17, 2022

Released 1.1.2

@jkowens jkowens closed this as completed Jul 17, 2022
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

No branches or pull requests

6 participants