-
Notifications
You must be signed in to change notification settings - Fork 553
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
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. @rafaelfranca ?
For what it's worth, my initial motivation to change this was to avoid using class Thor::Runner < Thor #:nodoc:
autoload :OpenURI, "open-uri"
# ...
end because 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.