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

Load 500 first langlinks for pages too #79

Merged
merged 4 commits into from
Mar 25, 2018
Merged

Load 500 first langlinks for pages too #79

merged 4 commits into from
Mar 25, 2018

Conversation

imustafin
Copy link
Contributor

Langlinks are links to translations of a page (MediaWiki API).

This patch adds Page#langlinks method which returns a hash { lang_code => title }.

I changed Client#request_page to include langlinks in the result. This makes test fixtures (files in /spec/fixtures/) kinda invalid because they do not contain langlinks. For the test of Page#langlinks I made a new fixture of a new page. Should I update the current fixtures and update the tests for the new version or we leave them as they are?

@imustafin
Copy link
Contributor Author

Checks fail because of #80

@pietromenna
Copy link
Collaborator

Hi @imustafin ,

Thank you very much for your PR. The tests are not passing.

I checked that you sent another PR (#80 ) which seems to fix the test. Would you mind to send the commit in the second PR to this PR? You can do this by adding the other commit to the branch you used in this pull request.

Let me know if you need further help.

@imustafin
Copy link
Contributor Author

Like this?

@pietromenna
Copy link
Collaborator

Yes! Also, you could add an example to this file (https://github.com/kenpratt/wikipedia-client/blob/master/README.textile) and sign your work by adding your name to contributors 👍

What do you think about it?

@imustafin
Copy link
Contributor Author

Done ☺️

@pietromenna pietromenna merged commit cf514cd into kenpratt:master Mar 25, 2018
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.

None yet

2 participants