mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-17 06:27:02 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0048f589c | ||
|
|
929fdfd9a9 | ||
|
|
c1967ecdd3 |
@@ -1,6 +1,6 @@
|
|||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = "CoreStore"
|
s.name = "CoreStore"
|
||||||
s.version = "0.2.0"
|
s.version = "0.2.1"
|
||||||
s.license = "MIT"
|
s.license = "MIT"
|
||||||
s.summary = "Simple, elegant, and smart Core Data programming with Swift"
|
s.summary = "Simple, elegant, and smart Core Data programming with Swift"
|
||||||
s.homepage = "https://github.com/JohnEstropia/CoreStore"
|
s.homepage = "https://github.com/JohnEstropia/CoreStore"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>FMWK</string>
|
<string>FMWK</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>0.2.0</string>
|
<string>0.2.1</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
|
|||||||
@@ -41,8 +41,6 @@ public extension DataStack {
|
|||||||
*/
|
*/
|
||||||
public func beginAsynchronous(closure: (transaction: AsynchronousDataTransaction) -> Void) {
|
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(
|
AsynchronousDataTransaction(
|
||||||
mainContext: self.rootSavingContext,
|
mainContext: self.rootSavingContext,
|
||||||
queue: self.childTransactionQueue,
|
queue: self.childTransactionQueue,
|
||||||
@@ -57,8 +55,6 @@ public extension DataStack {
|
|||||||
*/
|
*/
|
||||||
public func beginSynchronous(closure: (transaction: SynchronousDataTransaction) -> Void) -> SaveResult? {
|
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(
|
return SynchronousDataTransaction(
|
||||||
mainContext: self.rootSavingContext,
|
mainContext: self.rootSavingContext,
|
||||||
queue: self.childTransactionQueue,
|
queue: self.childTransactionQueue,
|
||||||
@@ -72,8 +68,6 @@ public extension DataStack {
|
|||||||
*/
|
*/
|
||||||
public func beginDetached() -> DetachedDataTransaction {
|
public func beginDetached() -> DetachedDataTransaction {
|
||||||
|
|
||||||
CoreStore.assert(NSThread.isMainThread(), "Attempted to begin a transaction from a \(typeName(self)) outside the main thread.")
|
|
||||||
|
|
||||||
return DetachedDataTransaction(
|
return DetachedDataTransaction(
|
||||||
mainContext: self.rootSavingContext,
|
mainContext: self.rootSavingContext,
|
||||||
queue: .Main)
|
queue: .Main)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<key>IDESourceControlProjectIdentifier</key>
|
<key>IDESourceControlProjectIdentifier</key>
|
||||||
<string>B6855E48-4B19-4321-B1C7-CB2706E12777</string>
|
<string>B6855E48-4B19-4321-B1C7-CB2706E12777</string>
|
||||||
<key>IDESourceControlProjectName</key>
|
<key>IDESourceControlProjectName</key>
|
||||||
<string>project</string>
|
<string>CoreStoreDemo</string>
|
||||||
<key>IDESourceControlProjectOriginsDictionary</key>
|
<key>IDESourceControlProjectOriginsDictionary</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>4B60F1BCB491FF717C56441AE7783C74F417BE48</key>
|
<key>4B60F1BCB491FF717C56441AE7783C74F417BE48</key>
|
||||||
@@ -16,13 +16,13 @@
|
|||||||
<string>github.com:JohnEstropia/GCDKit.git</string>
|
<string>github.com:JohnEstropia/GCDKit.git</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>IDESourceControlProjectPath</key>
|
<key>IDESourceControlProjectPath</key>
|
||||||
<string>CoreStoreDemo/CoreStoreDemo.xcodeproj/project.xcworkspace</string>
|
<string>CoreStoreDemo/CoreStoreDemo.xcodeproj</string>
|
||||||
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
|
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>4B60F1BCB491FF717C56441AE7783C74F417BE48</key>
|
<key>4B60F1BCB491FF717C56441AE7783C74F417BE48</key>
|
||||||
<string>../../..</string>
|
<string>../../..</string>
|
||||||
<key>8B2E522D57154DFA93A06982C36315ECBEA4FA97</key>
|
<key>8B2E522D57154DFA93A06982C36315ECBEA4FA97</key>
|
||||||
<string>../../..Libraries/GCDKit/</string>
|
<string>../../..Libraries/GCDKit</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>IDESourceControlProjectURL</key>
|
<key>IDESourceControlProjectURL</key>
|
||||||
<string>github.com:JohnEstropia/CoreStore.git</string>
|
<string>github.com:JohnEstropia/CoreStore.git</string>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Scheme
|
<Scheme
|
||||||
LastUpgradeVersion = "0630"
|
LastUpgradeVersion = "0630"
|
||||||
version = "1.3">
|
version = "1.8">
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
buildImplicitDependencies = "YES">
|
buildImplicitDependencies = "YES">
|
||||||
|
|||||||
@@ -760,7 +760,7 @@ This installs CoreStore as a framework. Declare `import CoreStore` in your swift
|
|||||||
|
|
||||||
### Install with Carthage
|
### Install with Carthage
|
||||||
```
|
```
|
||||||
github "JohnEstropia/CoreStore" >= 0.2.0
|
github "JohnEstropia/CoreStore" >= 0.2.1
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install as Git Submodule
|
### Install as Git Submodule
|
||||||
|
|||||||
Reference in New Issue
Block a user