Support thor install <uri> to install remote thor files#787
Conversation
|
Tests seem to be failing. Also, can you please describe what the problem was and how this fixes it? |
|
Yes, test are failing in the main branch. #780 should be merged first, and then I can rebase this to get it green hopefully :) Sorry for not describing this enough. As the title says, this PR intends to fix running To fix the problem, I detect whether the given argument is an uri or not. If it's an uri, I use Let me know if there's more I should clarify! |
|
@deivid-rodriguez I think the issue has to do with the changing of the functionality of |
|
You're right, it sounds like this is broken since Ruby 3.0. And my new approach only works for rubies where I actually based this solution on what's done at Lines 204 to 234 in ab3b5be Anyways, I will amend this to support old rubies once the repo gets some activity and CI in the main branch is back to green 👍. |
3684eae to
59ad393
Compare
|
@dorner This should be green now. As noticed, there's some code in |
|
For what it's worth, my initial motivation to change this was to avoid using class Thor::Runner < Thor #:nodoc:
autoload :OpenURI, "open-uri"
# ...
endbecause that just got deprecated and will no longer work as it works today in the future. See ruby/ruby#5949. But then when I attempted to change the code to not use the above, I realized that the code was not actually working, so I went ahead and fixed that too. |
The previous code suggested that this was supported, but it was not really working as expected.
59ad393 to
439a593
Compare
|
Rebased! |
|
By the way, I think this PR is maybe a bit complicated to review due to indentation changes, I recommend looking at the patch with |
|
Thanks so much @rafaelfranca! |
The previous code suggested that this was supported, but it was not really working as expected.