diff --git a/CoreStore.podspec b/CoreStore.podspec index 16aa318..2b521c1 100644 --- a/CoreStore.podspec +++ b/CoreStore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CoreStore" - s.version = "4.0.0-beta2" + s.version = "4.0.0-beta3" s.license = "MIT" s.summary = "Unleashing the real power of Core Data with the elegance and safety of Swift" s.homepage = "https://github.com/JohnEstropia/CoreStore" diff --git a/Sources/CoreStore+CustomDebugStringConvertible.swift b/Sources/CoreStore+CustomDebugStringConvertible.swift index 92adf7a..77fcdaf 100644 --- a/Sources/CoreStore+CustomDebugStringConvertible.swift +++ b/Sources/CoreStore+CustomDebugStringConvertible.swift @@ -983,7 +983,7 @@ extension VersionLock: CustomStringConvertible, CustomDebugStringConvertible, Co string.append(":]") return string } - for (index, keyValue) in self.hashesByEntityName.enumerated() { + for (index, keyValue) in self.hashesByEntityName.sorted(by: { $0.key < $1.key }).enumerated() { let data = keyValue.value let count = data.count diff --git a/Sources/CoreStoreSchema.swift b/Sources/CoreStoreSchema.swift index e03bc89..5886ec4 100644 --- a/Sources/CoreStoreSchema.swift +++ b/Sources/CoreStoreSchema.swift @@ -187,7 +187,7 @@ public final class CoreStoreSchema: DynamicSchema { #if DEBUG CoreStore.log( .notice, - message: "These are hashes for the \(cs_typeName(CoreStoreSchema.self)) with version name \"\(modelVersion)\". Copy the dictionary below and pass it to the \(cs_typeName(CoreStoreSchema.self)) initializer's \"versionLock\" argument:\n\(VersionLock(entityVersionHashesByName: self.rawModel().entityVersionHashesByName))" + message: "These are hashes for the \(cs_typeName(CoreStoreSchema.self)) with version name \"\(modelVersion)\". Copy the dictionary below and pass it to the \(cs_typeName(CoreStoreSchema.self)) initializer's \"versionLock\" argument:\nversionLock: \(VersionLock(entityVersionHashesByName: self.rawModel().entityVersionHashesByName))" ) #endif } diff --git a/Sources/EntityIdentifier.swift b/Sources/EntityIdentifier.swift index ad560cd..b547584 100644 --- a/Sources/EntityIdentifier.swift +++ b/Sources/EntityIdentifier.swift @@ -54,7 +54,7 @@ internal struct EntityIdentifier: Hashable { internal init(_ type: CoreStoreObject.Type) { self.category = .coreStore - self.interfacedClassName = String(reflecting: type) + self.interfacedClassName = NSStringFromClass(type) } internal init(_ type: DynamicObject.Type) {