From b475afe79f33a0dfdbda1275bb56e913ba29c3e0 Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Mon, 17 Aug 2015 23:51:08 +0900 Subject: [PATCH 1/4] updated Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f11ee1c..ded62d4 100644 --- a/README.md +++ b/README.md @@ -956,7 +956,7 @@ let person2 = self.monitor[1, 2] # Installation - Requires: - iOS 8 SDK and above - - Swift 1.2 + - Swift 2.0 - Dependencies: - [GCDKit](https://github.com/JohnEstropia/GCDKit) From ba4fb5e5cb24f9fa246f1a8d7914e9cd8de34951 Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Fri, 21 Aug 2015 08:03:14 +0900 Subject: [PATCH 2/4] version bump --- CoreStore.podspec | 2 +- CoreStore/Info.plist | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CoreStore.podspec b/CoreStore.podspec index e8e2abf..17769c0 100644 --- a/CoreStore.podspec +++ b/CoreStore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CoreStore" - s.version = "1.1.2" + s.version = "1.2.0" s.license = "MIT" s.summary = "Simple, elegant, and smart Core Data programming with Swift" s.homepage = "https://github.com/JohnEstropia/CoreStore" diff --git a/CoreStore/Info.plist b/CoreStore/Info.plist index 3034b22..331a2da 100644 --- a/CoreStore/Info.plist +++ b/CoreStore/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.1.2 + 1.2.0 CFBundleSignature ???? CFBundleVersion diff --git a/README.md b/README.md index ded62d4..a07ea9f 100644 --- a/README.md +++ b/README.md @@ -956,7 +956,7 @@ let person2 = self.monitor[1, 2] # Installation - Requires: - iOS 8 SDK and above - - Swift 2.0 + - Swift 2.0 (XCode 7 beta 5) - Dependencies: - [GCDKit](https://github.com/JohnEstropia/GCDKit) From 2f935de04a10e08d091dbf54fce92155cc1a34b0 Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Sun, 23 Aug 2015 14:02:27 +0900 Subject: [PATCH 3/4] temporarily fix an Xcode 7 bug (still present as of beta 5) (temporarily fixes #12) --- CoreStore/Observing/ListMonitor.swift | 5 ++++- CoreStore/Observing/ObjectMonitor.swift | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CoreStore/Observing/ListMonitor.swift b/CoreStore/Observing/ListMonitor.swift index 3d3fef3..36a8b97 100644 --- a/CoreStore/Observing/ListMonitor.swift +++ b/CoreStore/Observing/ListMonitor.swift @@ -779,7 +779,7 @@ extension ListMonitor: FetchedResultsControllerHandler { ] ) - case .Move: + case .Move where indexPath != newIndexPath: NSNotificationCenter.defaultCenter().postNotificationName( ListMonitorDidMoveObjectNotification, object: self, @@ -789,6 +789,9 @@ extension ListMonitor: FetchedResultsControllerHandler { UserInfoKeyNewIndexPath: newIndexPath! ] ) + + default: + break } } diff --git a/CoreStore/Observing/ObjectMonitor.swift b/CoreStore/Observing/ObjectMonitor.swift index f06d257..f6f446d 100644 --- a/CoreStore/Observing/ObjectMonitor.swift +++ b/CoreStore/Observing/ObjectMonitor.swift @@ -179,7 +179,7 @@ public final class ObjectMonitor { let fetchRequest = NSFetchRequest() fetchRequest.entity = object.entity - fetchRequest.fetchLimit = 1 + fetchRequest.fetchLimit = 0 fetchRequest.resultType = .ManagedObjectResultType fetchRequest.sortDescriptors = [] @@ -288,7 +288,7 @@ extension ObjectMonitor: FetchedResultsControllerHandler { userInfo: [UserInfoKeyObject: anObject] ) - case .Update: + case .Update, .Move where indexPath == newIndexPath: NSNotificationCenter.defaultCenter().postNotificationName( ObjectMonitorDidUpdateObjectNotification, object: self, From 682b13a8d362b67ef6bdfbea9ec372771135ed33 Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Sun, 23 Aug 2015 14:25:18 +0900 Subject: [PATCH 4/4] version bump --- CoreStore.podspec | 2 +- CoreStore/Info.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CoreStore.podspec b/CoreStore.podspec index 17769c0..16792c5 100644 --- a/CoreStore.podspec +++ b/CoreStore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CoreStore" - s.version = "1.2.0" + s.version = "1.2.1" s.license = "MIT" s.summary = "Simple, elegant, and smart Core Data programming with Swift" s.homepage = "https://github.com/JohnEstropia/CoreStore" diff --git a/CoreStore/Info.plist b/CoreStore/Info.plist index 331a2da..ae2dbbb 100644 --- a/CoreStore/Info.plist +++ b/CoreStore/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.2.0 + 1.2.1 CFBundleSignature ???? CFBundleVersion