forked from magicalpanda/MagicalRecord
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/magicalpanda/MagicalRecord
- Loading branch information
Showing
14 changed files
with
391 additions
and
5 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
5 changes: 5 additions & 0 deletions
5
Magical Record.xcodeproj/xcuserdata/gfurman.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Bucket | ||
type = "1" | ||
version = "1.0"> | ||
</Bucket> |
19 changes: 19 additions & 0 deletions
19
Magical Record.xcodeproj/xcuserdata/gfurman.xcuserdatad/xcschemes/xcschememanagement.plist
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SuppressBuildableAutocreation</key> | ||
<dict> | ||
<key>C721C7DB13D0C3A00097AB6F</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
<key>C721C7FC13D0C3CD0097AB6F</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
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,60 @@ | ||
@ios_fixtures = "Unit Tests/Fixtures/iOS" | ||
|
||
|
||
@target = "" | ||
@project = "" | ||
@fixtures = "" | ||
|
||
namespace :setup do | ||
task :ios do | ||
|
||
end | ||
|
||
task :osx do | ||
@target = "Mac App Unit Tests" | ||
@project = "Magical Record.xcodeproj" | ||
@fixtures = "Unit Tests/Fixtures/Mac" | ||
end | ||
end | ||
|
||
namespace :clean do | ||
task :osx => ["setup:osx"] do | ||
rm_rf "#{@fixtures}/TestEntities" | ||
end | ||
end | ||
|
||
namespace :build do | ||
|
||
task :run do | ||
results = system("xcodebuild -project '#{@project}' -target '#{@target}'") | ||
puts results | ||
end | ||
|
||
namespace :db do | ||
task :create do | ||
Dir.chdir(@fixtures) do | ||
puts `/usr/local/bin/mogenerator -m TestModel.xcdatamodeld/TestModel.xcdatamodel -O TestEntities` | ||
end | ||
end | ||
end | ||
|
||
task :osx => ["setup:osx", "clean:osx", "build:db:create", "build:run"] | ||
|
||
task :ios => [] do | ||
|
||
end | ||
end | ||
|
||
namespace :test do | ||
task :osx => ["build:osx"] do | ||
puts "testing osx" | ||
end | ||
|
||
task :ios do | ||
puts "testing ios" | ||
end | ||
end | ||
|
||
task :test => ["test:osx", "test:ios"] | ||
|
||
task :default => :test |
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,5 @@ | ||
#import "_MappedEntity.h" | ||
|
||
@interface MappedEntity : _MappedEntity {} | ||
// Custom logic goes here. | ||
@end |
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,7 @@ | ||
#import "MappedEntity.h" | ||
|
||
@implementation MappedEntity | ||
|
||
// Custom logic goes here. | ||
|
||
@end |
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,105 @@ | ||
// DO NOT EDIT. This file is machine-generated and constantly overwritten. | ||
// Make changes to MappedEntity.h instead. | ||
|
||
#import <CoreData/CoreData.h> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
@interface MappedEntityID : NSManagedObjectID {} | ||
@end | ||
|
||
@interface _MappedEntity : NSManagedObject {} | ||
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_; | ||
+ (NSString*)entityName; | ||
+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_; | ||
- (MappedEntityID*)objectID; | ||
|
||
|
||
|
||
|
||
@property (nonatomic, retain) NSNumber *mappedEntityID; | ||
|
||
|
||
@property short mappedEntityIDValue; | ||
- (short)mappedEntityIDValue; | ||
- (void)setMappedEntityIDValue:(short)value_; | ||
|
||
//- (BOOL)validateMappedEntityID:(id*)value_ error:(NSError**)error_; | ||
|
||
|
||
|
||
|
||
@property (nonatomic, retain) NSString *nestedAttribute; | ||
|
||
|
||
//- (BOOL)validateNestedAttribute:(id*)value_ error:(NSError**)error_; | ||
|
||
|
||
|
||
|
||
@property (nonatomic, retain) NSString *sampleAttribute; | ||
|
||
|
||
//- (BOOL)validateSampleAttribute:(id*)value_ error:(NSError**)error_; | ||
|
||
|
||
|
||
|
||
@property (nonatomic, retain) NSNumber *testMappedEntityID; | ||
|
||
|
||
@property long long testMappedEntityIDValue; | ||
- (long long)testMappedEntityIDValue; | ||
- (void)setTestMappedEntityIDValue:(long long)value_; | ||
|
||
//- (BOOL)validateTestMappedEntityID:(id*)value_ error:(NSError**)error_; | ||
|
||
|
||
|
||
|
||
|
||
@end | ||
|
||
@interface _MappedEntity (CoreDataGeneratedAccessors) | ||
|
||
@end | ||
|
||
@interface _MappedEntity (CoreDataGeneratedPrimitiveAccessors) | ||
|
||
|
||
- (NSNumber*)primitiveMappedEntityID; | ||
- (void)setPrimitiveMappedEntityID:(NSNumber*)value; | ||
|
||
- (short)primitiveMappedEntityIDValue; | ||
- (void)setPrimitiveMappedEntityIDValue:(short)value_; | ||
|
||
|
||
|
||
|
||
- (NSString*)primitiveNestedAttribute; | ||
- (void)setPrimitiveNestedAttribute:(NSString*)value; | ||
|
||
|
||
|
||
|
||
- (NSString*)primitiveSampleAttribute; | ||
- (void)setPrimitiveSampleAttribute:(NSString*)value; | ||
|
||
|
||
|
||
|
||
- (NSNumber*)primitiveTestMappedEntityID; | ||
- (void)setPrimitiveTestMappedEntityID:(NSNumber*)value; | ||
|
||
- (long long)primitiveTestMappedEntityIDValue; | ||
- (void)setPrimitiveTestMappedEntityIDValue:(long long)value_; | ||
|
||
|
||
|
||
|
||
@end |
Oops, something went wrong.