Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added rake install and uninstall tasks
- removed old cedar file templates - added new cedar file template & project templates - install task builds necessary frameworks for project templates - installs snippets, file template, project templates and frameworks into user's Xcode library - uninstall task removes these items. - in order to identify cedar snippets to be removed, sentinel value isCedarSnippet has been added to them - installCodeSnippetsAndTemplates now just leverages rake install task
- Loading branch information
Showing
30 changed files
with
909 additions
and
85 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
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
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
Binary file removed
BIN
-41.5 KB
CodeSnippetsAndTemplates/Templates/Cedar UI Spec.xctemplate/TemplateIcon.icns
Binary file not shown.
44 changes: 0 additions & 44 deletions
44
CodeSnippetsAndTemplates/Templates/Cedar UI Spec.xctemplate/TemplateInfo.plist
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
CodeSnippetsAndTemplates/Templates/Cedar UI Spec.xctemplate/___FILEBASENAME___Spec.mm
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
4 changes: 1 addition & 3 deletions
4
...Spec.xctemplate/___FILEBASENAME___Spec.mm → ...Spec.xctemplate/___FILEBASENAME___Spec.mm
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
40 changes: 40 additions & 0 deletions
40
...dTemplates/Templates/Project Templates/Cedar/Cedar Example Spec.xctemplate/ExampleSpec.mm
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,40 @@ | ||
using namespace Cedar::Matchers; | ||
using namespace Cedar::Doubles; | ||
|
||
SPEC_BEGIN(ExampleSpec) | ||
|
||
/* This is not an exhaustive list of usages. | ||
For more information, please visit https://github.com/pivotal/cedar */ | ||
|
||
describe(@"Example specs on NSString", ^{ | ||
|
||
it(@"lowercaseString returns a new string with everything in lower case", ^{ | ||
expect([@"FOOBar" lowercaseString]).to(equal(@"foobar")); | ||
}); | ||
|
||
it(@"length returns the number of characters in the string", ^{ | ||
expect([@"internationalization" length]).to(equal(20)); | ||
}); | ||
|
||
describe(@"isEqualToString:", ^{ | ||
|
||
it(@"should return true if the strings are the same", ^{ | ||
expect([@"someString" isEqualToString:@"someString"]).to(be_truthy()); | ||
}); | ||
|
||
it(@"should return false if the strings are not the same", ^{ | ||
expect([@"someString" isEqualToString:@"anotherString"]).to_not(be_truthy()); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"NSMutableString", ^{ | ||
it(@"should be a kind of NSString", ^{ | ||
expect([NSMutableString string]).to(be_instance_of([NSString class]).or_any_subclass()); | ||
}); | ||
}); | ||
|
||
}); | ||
|
||
SPEC_END | ||
|
28 changes: 28 additions & 0 deletions
28
...plates/Templates/Project Templates/Cedar/Cedar Example Spec.xctemplate/TemplateInfo.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,28 @@ | ||
<?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>Identifier</key> | ||
<string>com.pivotallabs.cedar.exampleSpec</string> | ||
<key>InjectionTargets</key> | ||
<array> | ||
<string>com.pivotallabs.cedar.testingBundle</string> | ||
<string>com.pivotallabs.cedar.iOSSpecSuite</string> | ||
<string>com.pivotallabs.cedar.OSXSpecSuite</string> | ||
</array> | ||
<key>Kind</key> | ||
<string>Xcode.Xcode3.ProjectTemplateUnitKind</string> | ||
<key>Nodes</key> | ||
<array> | ||
<string>ExampleSpec.mm</string> | ||
</array> | ||
<key>Definitions</key> | ||
<dict> | ||
<key>ExampleSpec.mm</key> | ||
<dict> | ||
<key>Path</key> | ||
<string>ExampleSpec.mm</string> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
64 changes: 64 additions & 0 deletions
64
...ates/Templates/Project Templates/Cedar/Cedar Testing Bundle.xctemplate/TemplateInfo.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,64 @@ | ||
<?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>Kind</key> | ||
<string>Xcode.Xcode3.ProjectTemplateUnitKind</string> | ||
<key>Identifier</key> | ||
<string>com.pivotallabs.cedar.testingBundle</string> | ||
<key>TargetOnly</key> | ||
<true/> | ||
<key>Ancestors</key> | ||
<array> | ||
<string>com.apple.dt.unit.bundleBase</string> | ||
</array> | ||
<key>Targets</key> | ||
<array> | ||
<dict> | ||
<key>ProductType</key> | ||
<string>com.apple.product-type.bundle</string> | ||
<key>SharedSettings</key> | ||
<dict> | ||
<key>WRAPPER_EXTENSION</key> | ||
<string>octest</string> | ||
<key>FRAMEWORK_SEARCH_PATHS</key> | ||
<string>$(DEVELOPER_LIBRARY_DIR)/Frameworks</string> | ||
</dict> | ||
<key>Configurations</key> | ||
<dict> | ||
<key>Debug</key> | ||
<dict/> | ||
<key>Release</key> | ||
<dict/> | ||
</dict> | ||
<key>Frameworks</key> | ||
<array> | ||
<string>SenTestingKit</string> | ||
</array> | ||
</dict> | ||
</array> | ||
<key>Nodes</key> | ||
<array> | ||
<string>___PACKAGENAME___-Info.plist:UnitTesting</string> | ||
</array> | ||
<key>Definitions</key> | ||
<dict> | ||
<key>___PACKAGENAME___-Info.plist:UnitTesting</key> | ||
<string><key>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
</string> | ||
</dict> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+11.2 KB
...lates/Templates/Project Templates/Cedar/OSX Cedar Spec Suite.xctemplate/TemplateIcon.tiff
Binary file not shown.
Oops, something went wrong.