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

Fix Sprockets::Base#unescape to avoid unexpected change landed in 3.7.4 #808

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

tricknotes
Copy link
Contributor

384bf45 breaks Sprockets::Base#unescape.

The following code has been changed between 3.7.3 and 3.7.4.

$ ruby -I ./lib -r sprockets -e 'p [Sprockets::VERSION, Sprockets::Environment.new.send(:unescape, "%")]'
["3.7.3", "%"]
["3.7.4", "%25"]

This commit changes back to the behavior of 3.7.3.

This method is not covered by auto-mated tests.
I'm not sure this method is supported officially or not.
Could you tell me we should add specs for this method.

….7.4.

384bf45 breaks `Sprockets::Base#unescape`.

The following code has been changed between 3.7.3 and 3.7.4.
``` console
$ ruby -I ./lib -r sprockets -e 'p [Sprockets::VERSION, Sprockets::Environment.new.send(:unescape, "%")]'
```

```
["3.7.3", "%"]
["3.7.4", "%25"]
```

This commit changes back to the behavior of 3.7.3.
@tricknotes
Copy link
Contributor Author

@byroot Could you review this PR?

@byroot byroot merged commit 2952558 into rails:3.x Sep 19, 2024
10 of 11 checks passed
@byroot
Copy link
Member

byroot commented Sep 19, 2024

Thanks. 3.7.5 has been released.

@tricknotes tricknotes deleted the fix-sprockets-base-unescape-for-3.x branch September 19, 2024 14:27
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