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
remove extra / if passed with --url #378
Conversation
@yyyc514 I understand the reason behind this. The simplest solution for the moment is to delegate to Ruby's url = File.join(url, "/api/read/json/") Additionally, it'd be better if you can add a test for this as well.. |
HAHA, that's a typo vs an actual expected mistake, but I hear you. Might take me a day or two to circle back but sure we can use File.join and I'll see about a test also. |
Better? |
@yyyc514 Yes, it is much better now. Thank you. Technically, your So I suggest that you declare it explicitly: class << self
# existing methods in this class
private # declaration towards the end of the class
def api_feed_url(url, page, per_page: 50)
url = File.join(url, "/api/read/json/")
"#{url}?num=#{per_page}&start=#{page * per_page}"
end
end The existing methods cannot be declared as Additionally, I requested the use of |
Why are we using |
Because at the time when the test was authored, the method was indeed But 🤷♂️ |
It's redundant because it was outside the |
Possibly. But there's a catch. Exposing private methods as So please only convert your method to |
Ugh. Indeed. 😐 |
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.
LGTM! 👍
Finally. 😇 |
@jekyllbot: merge +minor |
No description provided.