Blueberry: Compatibility updates and bugfixes
Fixes a handful of issues that came about when trying to integrate Flapjack with one of our internal apps. Many of these changes are things we had already done to similar code inside of the app, but those changes had never made their way back around to Flapjack.
DataContext.findOrCreate(_:attributes:)
now returns a non-optional tupleNSManagedObjectContext
will onlypersist()
if there are actual persistent changed values (thanks toisDirty
)Set<>
s now get parsed properly when fed into anNSCompoundPredicate
using an attributes dictionaryCoreSingleDataSource
now hinges primarily on anNSPredicate
instead of anattributes
dictionaryCoreSingleDataSource
also now listens for contexts being created and torn down, in case the data source's lifecycle outlives that of the context it was listening toCoreSingleDataSource
now has a few more convenience initializersCoreDataSource
no longer tracks its ownNSPersistentStore
array- Objects now properly get found from mixed-type object sets in an
NSManagedObjectContext
change notification - A new method exists for getting a single entity from a
Layer
inside ofNSMigrationManager
- A few properties have been marked as
public
that were previouslyinternal
orprivate
MigrationPolicy
is nowopen
for subclassing