Update derive_lang_from_path to derive from any part of path#222
Update derive_lang_from_path to derive from any part of path#222untra merged 2 commits intountra:masterfrom
derive_lang_from_path to derive from any part of path#222Conversation
Co-authored-by: Samuel Volin <untra.sam@gmail.com>
|
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. |
untra
left a comment
There was a problem hiding this comment.
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_pathonly 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.jsonandassets/data/pt-br/cards.jsonand 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