-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from SugarRecord/bug/resultsDependency
Splited SugarRecordResults logic
- Loading branch information
Showing
122 changed files
with
4,132 additions
and
4,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'SugarRecord' | ||
s.version = '1.0.4' | ||
s.version = '1.0.5' | ||
s.platform = :ios, '8.0' | ||
s.license = 'MIT' | ||
s.summary = 'CoreData management library implemented with the sugar Swift language' | ||
s.homepage = 'https://github.com/SugarRecord/SugarRecord' | ||
s.author = { 'Pedro Piñera' => '[email protected]' } | ||
s.social_media_url = "https://twitter.com/pepibumur" | ||
s.source = { :git => 'https://github.com/SugarRecord/SugarRecord.git', :tag => '1.0.4', :submodules => false } | ||
s.source = { :git => 'https://github.com/SugarRecord/SugarRecord.git', :tag => '1.0.5', :submodules => false } | ||
s.description = "Thanks to SugarRecord you'll be able to use a clean syntax to fetch, filter, create, update CoreData objects in an easy way. Inspired by MagicalRecord and opened to new contributions." | ||
s.requires_arc = true | ||
s.documentation_url = "https://github.com/SugarRecord/SugarRecord/wiki" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// SugarRecordResultsProtocol.swift | ||
// project | ||
// | ||
// Created by Pedro Piñera Buendía on 29/12/14. | ||
// Copyright (c) 2014 SugarRecord. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
internal protocol SugarRecordResultsProtocol | ||
{ | ||
/** | ||
Returns the count of elements in Results | ||
|
||
:param: finder Finder restrict the query results (lasts, first, firsts, ...) which is not possible directly on Realm | ||
|
||
:returns: Count of elements | ||
*/ | ||
func count(#finder: SugarRecordFinder) -> Int | ||
|
||
/** | ||
Returns the object at a given index | ||
|
||
:param: index Index of the object | ||
:param: finder Finder restrict the query results (lasts, first, firsts, ...) which is not possible directly on Realm | ||
|
||
:returns: Object at that index (if exists) | ||
*/ | ||
func objectAtIndex(index: UInt, finder: SugarRecordFinder) -> AnyObject! | ||
|
||
/** | ||
Returns the first object of the results | ||
|
||
:param: finder Finder restrict the query results (lasts, first, firsts, ...) which is not possible directly on Realm | ||
|
||
:returns: First object (if exists) | ||
*/ | ||
func firstObject(#finder: SugarRecordFinder) -> AnyObject! | ||
|
||
/** | ||
Returns the last object of the results | ||
|
||
:param: finder Finder restrict the query results (lasts, first, firsts, ...) which is not possible directly on Realm | ||
|
||
:returns: Last object (if exists) | ||
*/ | ||
func lastObject(#finder: SugarRecordFinder) -> AnyObject! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.