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

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

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.
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.

1 participant