Many authors distribute example scripts with their releases.
Here is a small patch to include a list of examples on the release info page.
Make example scripts distributed with a release more prominent
Have you tried extending https://github.com/CPAN-API/metacpan-web/blob/master/lib/MetaCPAN/Web/Model/API/Release.pm#L247 ? that would safe us a roundtrip to the api and I don't see a reason why that shouldn't work.
You can then extract the examples again from the files returned and render them differently.
I'll investigate that option.
merge root_files and example_files methods into a single interesting_…
oops, drop Data::Dumper
don't show files called 'example' in 't' or 'xt' directories
Currently failing t/controller/diff.t because of this broken page:
Not entirely sure how my edits could have caused this breakage. I've not touched the Diff model, controller or template. It may just be a temporary issue with the MetaCPAN API?
I have some commits to push to the api later that might fix that diff issue
@rwstauner do you know when/how that regression was introduced? It certainly worked at some point.
I found an issue on my dev machine where the diff paths were getting truncated and I think the difference (b/t working and not) is a difference of environment. I believe I have fixed that though (locally).
As far as I can tell the live api is still working normally, though, so the two things may not be related.
Nevermind. I deployed the api changes and https://metacpan.org/diff/file/?target=DOY/Moose-2.0202/lib/Moose.pm&source=DOY/Moose-2.0201/lib/Moose.pm is still missing the file names.
@tobyink I fixed the api; the diff should display correctly for you now. Thanks.
I also fixed the test in this repo.
force push to work??
I've pulled in all kinds of upstream stuff, and it now passes all tests.
Thanks very much for this. My apologies that we lost track of it. Please don't let that discourage any future contributions. This is a very helpful addition. 👍
thank you very much!