a tale of two releases
hey friends! i haven’t released a lemoncurry update in about a month, but i have been working on it! since last time, i’ve made versions 1.9.3 and 1.9.4 (whoa!! i know, right?) so here’s what happened in both of them :o
first up, lemoncurry 1.9.3!
- bootstrap 4 came out of beta, so i switched from the beta to the final release!! woo
- i set up continuous integration with gitlab ci! what that means is that the unit tests are automatically run every time i push a new commit, and a cute little checkmark is displayed on the commit when i view it on gitlab? unless the tests failed, in which case i get an unpleasant little cross instead? so at a glance i know if a commit Broke The Tests, which is handy info!
- font awesome put out a few more releases, so now i’m on v5.0.8 instead! neat
- lots of refactoring: i previously defined separate named routes in django
for each kind of post, like
entries:articles_index, but that makes figuring out whether a particular url points to an entry or something else way more of a hassle, since there are lots of different route names to match? and it turns out you need to know whether a given url on your site points at an entry to receive webmentions (!!!!!!!) for that entry, so i changed all that stuff around :o now there’s just a route called
entries:indexthat takes a parameter for the entry kind, which is much easier to process c:
- the permalink pages, like
/notes/3and such, weren’t checking whether the entry with id 3 actually existed. which meant it crashed and gave you a 500 server error. now, it checks upfront and returns the correct error if you ask for a nonexistent entry - 404, not found!
and now, lemoncurry 1.9.4!!
- i started writing code to receive webmentions!!!!!!!! it’s nowhere near finished yet, and i haven’t made it discoverable so other people’s sites won’t know to use it, but it can receive mentions, figure out which entry was being mentioned, and save that information to the database?? next, i need to use the job queue to test whether the webmention is valid (i.e., whether the source page really mentions the target page) and then if it’s valid to actually display it someplace :o really good start so far tho!
- i decided to install the lovely highlight.js, for pretty code colours every time i post a code block :3
- previously, the nya.as short urls were being generated by a third-party plugin called django-shorturls, but that plugin hasn’t been updated since 2016! since it doesn’t really do much anyway, i decided to spend a few hours reimplementing its functionality myself. easy peasy
- the big advantage of dropping django-shorturls is that it wasn’t compatible with django 2 - since i’m not using it any more, i upgraded django to 2.0.3!! yay!! it seems pretty much the same as before but still!! yay!!
so that’s what’s up! here’s a pretty little python code block to celebrate :o
def is_cutie(person): """ Test whether the person provided is an absolute cutie pie. """ if person.is_reading_this: return True return True # yes, even people not reading this are cuties