-
Notifications
You must be signed in to change notification settings - Fork 63
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
Update derive_lang_from_path
to derive from any part of path
#222
Conversation
Co-authored-by: Samuel Volin <[email protected]>
Now just missing the testing part. |
fwiw I've made progress writing rspec tests for I'm coordinating stories and work for a v1.9 release. Thanks again for your help @george-gca ! keep poking me, I really appreciate your contributions and support. |
Just out of curiosity, what are the advantages of rspec? I made a fork of an official jekyll plugin, and I saw that they use minitest. Tbh I don't have enough knowledge of testing in ruby. |
both testing specs are fairly similar and can accomplish the same things. I don't think one library is better than the other. check out PR #227 I opened implementing a few tests for |
Thanks, it would be nice. Also, is it possible to add some kind of code coverage badge? Maybe it would be useful to have this, or not. |
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.
approving and merging this, before adding in tests
will get to this for the next release. I'm making an issue to followup on this. |
🔤 Polyglot PR
Currently
derive_lang_from_path
only considers small parts of the path. This changes to consider any part inany/part/of/the/path.txt
. This allows, for example, creating files likeassets/data/en-us/cards.json
andassets/data/pt-br/cards.json
and setting its permalink to/assets/data/cards.json
.I need help setting tests for this, I have no idea where to start.
Type of change
Checklists