-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add support for Unicode links #46
base: master
Are you sure you want to change the base?
Conversation
mukrop
commented
Oct 27, 2019
- In function 'external?', URI is now escaped before split.
- This adheres to the recommendation in the URI docs: https://www.rubydoc.info/stdlib/uri/URI.parse
- Resolves Error: URI must be ascii only #33.
Sorry it took so long, my past two weeks were also rather busy. |
Hi @mukrop , Thank for sharing your work :) The travis checks are failing can you look into why, please? Also, thank you for the version number :) |
The problem is that URI escape is deprecated, I suggest to use CGI.escape() instead. They do NOT behave in the same way, but in this particular case it does not matter how the URI is escaped, because this is for comparison only
|
Thank you @mcrobs .. sorry for the cheeky request but is any chance you can update this PR by @mukrop to use the other parser, please? If not I'll try to get to it asap but I'm rather busy and away from a Ruby IDE at this moment. |
I do apologize for my inactivity, but I'm rather busy now. I'd be glad if you managed to resolve this without me. |
I understand and thank you for all your help in this 😄 |
@mukrop @keithmifsud polite bump :) |
Any news on this one? |
* In function 'external?', URI is now escaped before split. * Class Addressable is used for parsing since it is capable of parsing Unicode URIs (IRIs). Another option would be to escape the URI before parsing but URI.escape is deprecated and alternatives (e.g. CGI.escape) work differently. * Resolves keithmifsud#33.
Hi. I've looked into this after a longer while. In the end, I used the Addressable class for URI parsing as
The tests now pass but the build fails on not finding |
I'm off for the rest of the week but I believe I'll be able to find some time for this next week :-). |
Hi. I've tested the patch, but the issue is not fixed, the error seems the same.
|
Could it be that the code or test isn't using the Addressable implementation of URI, but still the standard on of Ruby? |
Aah, sorry @jochenjonc, I misunderstood what I was supposed to check. I did it properly now and, indeed, #61 fixes the thing! For testing purposes, I've added an extra commit to this PR replicating #61. For the sake of a clean codebase, I presume you want to merge #61 first and then merge this onto it without the replicating commit? |
@mukrop you can choose how to merge everything. None of the PRs are mine. 😉 |
Oh, and you are not the repository owner either, I thought you were :-). |
Funny, I thought you where the repo owner. 🤔 |
@keithmifsud are you able to merge this PR and create a new release? |
Hi @jochenjonc ..I'll merge it asap. I need to remove the Travis CI check first but they seem to have changed the access. I'll get back to you asap. The PR looks good. Thank you 😄 |
@keithmifsud any luck on removing Travis CI check? |