From 929fdfd9a91192de669546a9bebf1cb957665e9a Mon Sep 17 00:00:00 2001 From: John Estropia Date: Thu, 9 Jul 2015 18:55:35 +0900 Subject: [PATCH 1/2] remove thread asserts when creating new transactions. fixes https://github.com/JohnEstropia/CoreStore/issues/6 --- CoreStore/Saving and Processing/DataStack+Transaction.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/CoreStore/Saving and Processing/DataStack+Transaction.swift b/CoreStore/Saving and Processing/DataStack+Transaction.swift index c3aa4bc..11be705 100644 --- a/CoreStore/Saving and Processing/DataStack+Transaction.swift +++ b/CoreStore/Saving and Processing/DataStack+Transaction.swift @@ -41,8 +41,6 @@ public extension DataStack { */ public func beginAsynchronous(closure: (transaction: AsynchronousDataTransaction) -> Void) { - CoreStore.assert(NSThread.isMainThread(), "Attempted to begin a transaction from a \(typeName(self)) outside the main thread.") - AsynchronousDataTransaction( mainContext: self.rootSavingContext, queue: self.childTransactionQueue, @@ -57,8 +55,6 @@ public extension DataStack { */ public func beginSynchronous(closure: (transaction: SynchronousDataTransaction) -> Void) -> SaveResult? { - CoreStore.assert(NSThread.isMainThread(), "Attempted to begin a transaction from a \(typeName(self)) outside the main thread.") - return SynchronousDataTransaction( mainContext: self.rootSavingContext, queue: self.childTransactionQueue, @@ -72,8 +68,6 @@ public extension DataStack { */ public func beginDetached() -> DetachedDataTransaction { - CoreStore.assert(NSThread.isMainThread(), "Attempted to begin a transaction from a \(typeName(self)) outside the main thread.") - return DetachedDataTransaction( mainContext: self.rootSavingContext, queue: .Main) From e0048f589c5dbf5ac9e9d645dcebba240764f24b Mon Sep 17 00:00:00 2001 From: John Estropia Date: Thu, 9 Jul 2015 18:57:59 +0900 Subject: [PATCH 2/2] 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 48aeb2f..3ff902c 100644 --- a/CoreStore.podspec +++ b/CoreStore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CoreStore" - s.version = "0.2.0" + s.version = "0.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 75994d8..38b77e3 100644 --- a/CoreStore/Info.plist +++ b/CoreStore/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.2.0 + 0.2.1 CFBundleSignature ???? CFBundleVersion diff --git a/README.md b/README.md index c0fd262..2f8079f 100644 --- a/README.md +++ b/README.md @@ -760,7 +760,7 @@ This installs CoreStore as a framework. Declare `import CoreStore` in your swift ### Install with Carthage ``` -github "JohnEstropia/CoreStore" >= 0.2.0 +github "JohnEstropia/CoreStore" >= 0.2.1 ``` ### Install as Git Submodule