It seems like pliny is not configuring its Serialize extension correctly. The extensions guide explains how to extend the DSL (as Serialize is doing here with its serializer method) - using register.
As is stands this module is depending on internal behaviour of sinatra - that it uses include to pull in helpers - so it was always at risk of breaking. In sinatra 2.1 it finally broke - the internal behaviour changed to use prepend.
336 is a simple fix for this - switching the module to assume it is prepended rather than included - but there is no guarantee this behaviour won't change and break things again. Unfortunately the problem with this change is it requires a change in applications using pliny:
I would probably just take the hit and go with this change, so we're protected from changes in future. Given pliny is still on a 0.x.y version it's "allowed" (according to SemVer) to break stuff. I doubt the number of applications using pliny is large, so we're not generating a large amount of effort downstream because of this.
It seems like pliny is not configuring its
Serialize
extension correctly. The extensions guide explains how to extend the DSL (asSerialize
is doing here with itsserializer
method) - usingregister
.As is stands this module is depending on internal behaviour of sinatra - that it uses
include
to pull in helpers - so it was always at risk of breaking. In sinatra 2.1 it finally broke - the internal behaviour changed to useprepend
.336 is a simple fix for this - switching the module to assume it is
prepended
rather thanincluded
- but there is no guarantee this behaviour won't change and break things again. Unfortunately the problem with this change is it requires a change in applications using pliny:I would probably just take the hit and go with this change, so we're protected from changes in future. Given pliny is still on a
0.x.y
version it's "allowed" (according to SemVer) to break stuff. I doubt the number of applications using pliny is large, so we're not generating a large amount of effort downstream because of this.