Skip to content
This repository
Browse code

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...
commit b34e4648c6ab3328350694a2ee8a745a9533d65e 1 parent b4e4c5f
authored June 07, 2012 idoru committed July 07, 2012

Showing 30 changed files with 909 additions and 85 deletions. Show diff stats Hide diff stats

  1. 4  CodeSnippetsAndTemplates/CodeSnippets/caft.codesnippet
  2. 2  CodeSnippetsAndTemplates/CodeSnippets/cbef.codesnippet
  3. 2  CodeSnippetsAndTemplates/CodeSnippets/ccont.codesnippet
  4. 2  CodeSnippetsAndTemplates/CodeSnippets/cdesc.codesnippet
  5. 2  CodeSnippetsAndTemplates/CodeSnippets/cexpandpend.codesnippet
  6. 2  CodeSnippetsAndTemplates/CodeSnippets/cit.codesnippet
  7. 4  CodeSnippetsAndTemplates/CodeSnippets/clog.codesnippet
  8. 2  CodeSnippetsAndTemplates/CodeSnippets/cpend.codesnippet
  9. 2  CodeSnippetsAndTemplates/CodeSnippets/cshare.codesnippet
  10. BIN  CodeSnippetsAndTemplates/Templates/Cedar UI Spec.xctemplate/TemplateIcon.icns
  11. 44  CodeSnippetsAndTemplates/Templates/Cedar UI Spec.xctemplate/TemplateInfo.plist
  12. 18  CodeSnippetsAndTemplates/Templates/Cedar UI Spec.xctemplate/___FILEBASENAME___Spec.mm
  13. 0  ...emplates/{Cedar Domain Spec.xctemplate → File Templates/Cedar/Cedar Spec.xctemplate}/TemplateIcon.icns
  14. 5  ...mplates/{Cedar Domain Spec.xctemplate → File Templates/Cedar/Cedar Spec.xctemplate}/TemplateInfo.plist
  15. 4  .../{Cedar Domain Spec.xctemplate → File Templates/Cedar/Cedar Spec.xctemplate}/___FILEBASENAME___Spec.mm
  16. 40  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/Cedar Example Spec.xctemplate/ExampleSpec.mm
  17. 28  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/Cedar Example Spec.xctemplate/TemplateInfo.plist
  18. 64  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/Cedar Testing Bundle.xctemplate/TemplateInfo.plist
  19. BIN  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/OSX Cedar Spec Suite.xctemplate/TemplateIcon.tiff
  20. 112  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/OSX Cedar Spec Suite.xctemplate/TemplateInfo.plist
  21. BIN  ...nippetsAndTemplates/Templates/Project Templates/Cedar/OSX Cedar Testing Bundle.xctemplate/TemplateIcon.tiff
  22. 90  ...ippetsAndTemplates/Templates/Project Templates/Cedar/OSX Cedar Testing Bundle.xctemplate/TemplateInfo.plist
  23. 67  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/OSX OCMock.xctemplate/TemplateInfo.plist
  24. BIN  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/iOS Cedar Spec Suite.xctemplate/TemplateIcon.tiff
  25. 252  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/iOS Cedar Spec Suite.xctemplate/TemplateInfo.plist
  26. BIN  ...nippetsAndTemplates/Templates/Project Templates/Cedar/iOS Cedar Testing Bundle.xctemplate/TemplateIcon.tiff
  27. 106  ...ippetsAndTemplates/Templates/Project Templates/Cedar/iOS Cedar Testing Bundle.xctemplate/TemplateInfo.plist
  28. 67  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/iOS OCMock.xctemplate/TemplateInfo.plist
  29. 52  Rakefile
  30. 23  installCodeSnippetsAndTemplates
4  CodeSnippetsAndTemplates/CodeSnippets/caft.codesnippet
@@ -23,6 +23,8 @@
23 23
 	<key>IDECodeSnippetUserSnippet</key>
24 24
 	<true/>
25 25
 	<key>IDECodeSnippetVersion</key>
26  
-	<integer>2</integer>
  26
+  <integer>2</integer>
  27
+  <key>isCedarSnippet</key>
  28
+  <true/>
27 29
 </dict>
28 30
 </plist>
2  CodeSnippetsAndTemplates/CodeSnippets/cbef.codesnippet
@@ -24,5 +24,7 @@
24 24
 	<true/>
25 25
 	<key>IDECodeSnippetVersion</key>
26 26
 	<integer>2</integer>
  27
+  <key>isCedarSnippet</key>
  28
+  <true/>
27 29
 </dict>
28 30
 </plist>
2  CodeSnippetsAndTemplates/CodeSnippets/ccont.codesnippet
@@ -24,5 +24,7 @@
24 24
 	<true/>
25 25
 	<key>IDECodeSnippetVersion</key>
26 26
 	<integer>2</integer>
  27
+  <key>isCedarSnippet</key>
  28
+  <true/>
27 29
 </dict>
28 30
 </plist>
2  CodeSnippetsAndTemplates/CodeSnippets/cdesc.codesnippet
@@ -24,5 +24,7 @@
24 24
 	<true/>
25 25
 	<key>IDECodeSnippetVersion</key>
26 26
 	<integer>2</integer>
  27
+  <key>isCedarSnippet</key>
  28
+  <true/>
27 29
 </dict>
28 30
 </plist>
2  CodeSnippetsAndTemplates/CodeSnippets/cexpandpend.codesnippet
@@ -24,5 +24,7 @@
24 24
 	<true/>
25 25
 	<key>IDECodeSnippetVersion</key>
26 26
 	<integer>2</integer>
  27
+  <key>isCedarSnippet</key>
  28
+  <true/>
27 29
 </dict>
28 30
 </plist>
2  CodeSnippetsAndTemplates/CodeSnippets/cit.codesnippet
@@ -24,5 +24,7 @@
24 24
 	<true/>
25 25
 	<key>IDECodeSnippetVersion</key>
26 26
 	<integer>2</integer>
  27
+  <key>isCedarSnippet</key>
  28
+  <true/>
27 29
 </dict>
28 30
 </plist>
4  CodeSnippetsAndTemplates/CodeSnippets/clog.codesnippet
@@ -21,6 +21,8 @@
21 21
 	<key>IDECodeSnippetUserSnippet</key>
22 22
 	<true/>
23 23
 	<key>IDECodeSnippetVersion</key>
24  
-	<integer>0</integer>
  24
+	<integer>2</integer>
  25
+  <key>isCedarSnippet</key>
  26
+  <true/>
25 27
 </dict>
26 28
 </plist>
2  CodeSnippetsAndTemplates/CodeSnippets/cpend.codesnippet
@@ -22,5 +22,7 @@
22 22
 	<true/>
23 23
 	<key>IDECodeSnippetVersion</key>
24 24
 	<integer>2</integer>
  25
+  <key>isCedarSnippet</key>
  26
+  <true/>
25 27
 </dict>
26 28
 </plist>
2  CodeSnippetsAndTemplates/CodeSnippets/cshare.codesnippet
@@ -24,5 +24,7 @@
24 24
 	<true/>
25 25
 	<key>IDECodeSnippetVersion</key>
26 26
 	<integer>2</integer>
  27
+  <key>isCedarSnippet</key>
  28
+  <true/>
27 29
 </dict>
28 30
 </plist>
BIN  CodeSnippetsAndTemplates/Templates/Cedar UI Spec.xctemplate/TemplateIcon.icns
Binary file not shown
44  CodeSnippetsAndTemplates/Templates/Cedar UI Spec.xctemplate/TemplateInfo.plist
... ...
@@ -1,44 +0,0 @@
1  
-<?xml version="1.0" encoding="UTF-8"?>
2  
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3  
-<plist version="1.0">
4  
-<dict>
5  
-	<key>AllowedTypes</key>
6  
-	<array>
7  
-		<string>public.objective-c-source</string>
8  
-		<string>public.objective-c-plus-plus-source</string>
9  
-	</array>
10  
-	<key>DefaultCompletionName</key>
11  
-	<string>MyClass</string>
12  
-	<key>Description</key>
13  
-	<string>A Cedar UI Spec File</string>
14  
-	<key>Kind</key>
15  
-	<string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
16  
-	<key>MainTemplateFile</key>
17  
-	<string>___FILEBASENAME___Spec.m</string>
18  
-	<key>Options</key>
19  
-	<array>
20  
-		<dict>
21  
-			<key>Description</key>
22  
-			<string>The name of the class to spec</string>
23  
-			<key>Identifier</key>
24  
-			<string>productName</string>
25  
-			<key>Name</key>
26  
-			<string>Class to Spec</string>
27  
-			<key>NotPersisted</key>
28  
-			<true/>
29  
-			<key>Required</key>
30  
-			<true/>
31  
-			<key>Type</key>
32  
-			<string>text</string>
33  
-		</dict>
34  
-	</array>
35  
-	<key>Platforms</key>
36  
-	<array>
37  
-		<string>com.apple.platform.iphoneos</string>
38  
-	</array>
39  
-	<key>SortOrder</key>
40  
-	<string>1</string>
41  
-	<key>Summary</key>
42  
-	<string>A Cedar UI Spec</string>
43  
-</dict>
44  
-</plist>
18  CodeSnippetsAndTemplates/Templates/Cedar UI Spec.xctemplate/___FILEBASENAME___Spec.mm
... ...
@@ -1,18 +0,0 @@
1  
-#import "SpecHelper.h"
2  
-#import "OCMock.h"
3  
-
4  
-#import "___FILEBASENAME___.h"
5  
-
6  
-using namespace Cedar::Matchers;
7  
-
8  
-SPEC_BEGIN(___FILEBASENAMEASIDENTIFIER___Spec)
9  
-
10  
-describe(@"___FILEBASENAMEASIDENTIFIER___", ^{
11  
-    __block ___FILEBASENAMEASIDENTIFIER___ *controller;
12  
-
13  
-    beforeEach(^{
14  
-
15  
-    });
16  
-});
17  
-
18  
-SPEC_END
0  ...es/Cedar Domain Spec.xctemplate/TemplateIcon.icns → ...tes/Cedar/Cedar Spec.xctemplate/TemplateIcon.icns
File renamed without changes
5  ...s/Cedar Domain Spec.xctemplate/TemplateInfo.plist → ...es/Cedar/Cedar Spec.xctemplate/TemplateInfo.plist
@@ -9,7 +9,7 @@
9 9
 	<key>DefaultCompletionName</key>
10 10
 	<string>MyClass</string>
11 11
 	<key>Description</key>
12  
-	<string>A Cedar Domain Spec File</string>
  12
+	<string>A Cedar Spec File</string>
13 13
 	<key>Kind</key>
14 14
 	<string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
15 15
 	<key>MainTemplateFile</key>
@@ -34,10 +34,11 @@
34 34
 	<key>Platforms</key>
35 35
 	<array>
36 36
 		<string>com.apple.platform.iphoneos</string>
  37
+		<string>com.apple.platform.macosx</string>
37 38
 	</array>
38 39
 	<key>SortOrder</key>
39 40
 	<string>1</string>
40 41
 	<key>Summary</key>
41  
-	<string>A Cedar Domain Spec</string>
  42
+	<string>A Cedar Spec</string>
42 43
 </dict>
43 44
 </plist>
4  ... Domain Spec.xctemplate/___FILEBASENAME___Spec.mm → ...r/Cedar Spec.xctemplate/___FILEBASENAME___Spec.mm
... ...
@@ -1,9 +1,7 @@
1  
-#import <Cedar/SpecHelper.h>
2  
-#import <OCMock/OCMock.h>
3  
-
4 1
 #import "___FILEBASENAME___.h"
5 2
 
6 3
 using namespace Cedar::Matchers;
  4
+using namespace Cedar::Doubles;
7 5
 
8 6
 SPEC_BEGIN(___FILEBASENAMEASIDENTIFIER___Spec)
9 7
 
40  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/Cedar Example Spec.xctemplate/ExampleSpec.mm
... ...
@@ -0,0 +1,40 @@
  1
+using namespace Cedar::Matchers;
  2
+using namespace Cedar::Doubles;
  3
+
  4
+SPEC_BEGIN(ExampleSpec)
  5
+
  6
+/* This is not an exhaustive list of usages.
  7
+   For more information, please visit https://github.com/pivotal/cedar */
  8
+
  9
+describe(@"Example specs on NSString", ^{
  10
+
  11
+    it(@"lowercaseString returns a new string with everything in lower case", ^{
  12
+        expect([@"FOOBar" lowercaseString]).to(equal(@"foobar"));
  13
+    });
  14
+
  15
+    it(@"length returns the number of characters in the string", ^{
  16
+        expect([@"internationalization" length]).to(equal(20));
  17
+    });
  18
+
  19
+    describe(@"isEqualToString:", ^{
  20
+
  21
+        it(@"should return true if the strings are the same", ^{
  22
+            expect([@"someString" isEqualToString:@"someString"]).to(be_truthy());
  23
+        });
  24
+
  25
+        it(@"should return false if the strings are not the same", ^{
  26
+            expect([@"someString" isEqualToString:@"anotherString"]).to_not(be_truthy());
  27
+        });
  28
+
  29
+    });
  30
+
  31
+    describe(@"NSMutableString", ^{
  32
+        it(@"should be a kind of NSString", ^{
  33
+            expect([NSMutableString string]).to(be_instance_of([NSString class]).or_any_subclass());
  34
+        });
  35
+    });
  36
+
  37
+});
  38
+
  39
+SPEC_END
  40
+
28  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/Cedar Example Spec.xctemplate/TemplateInfo.plist
... ...
@@ -0,0 +1,28 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>Identifier</key>
  6
+	<string>com.pivotallabs.cedar.exampleSpec</string>
  7
+	<key>InjectionTargets</key>
  8
+	<array>
  9
+		<string>com.pivotallabs.cedar.testingBundle</string>
  10
+		<string>com.pivotallabs.cedar.iOSSpecSuite</string>
  11
+		<string>com.pivotallabs.cedar.OSXSpecSuite</string>
  12
+	</array>
  13
+	<key>Kind</key>
  14
+	<string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
  15
+	<key>Nodes</key>
  16
+	<array>
  17
+		<string>ExampleSpec.mm</string>
  18
+	</array>
  19
+	<key>Definitions</key>
  20
+	<dict>
  21
+		<key>ExampleSpec.mm</key>
  22
+		<dict>
  23
+			<key>Path</key>
  24
+			<string>ExampleSpec.mm</string>
  25
+		</dict>
  26
+	</dict>
  27
+</dict>
  28
+</plist>
64  ...nippetsAndTemplates/Templates/Project Templates/Cedar/Cedar Testing Bundle.xctemplate/TemplateInfo.plist
... ...
@@ -0,0 +1,64 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>Kind</key>
  6
+	<string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
  7
+	<key>Identifier</key>
  8
+	<string>com.pivotallabs.cedar.testingBundle</string>
  9
+	<key>TargetOnly</key>
  10
+	<true/>
  11
+	<key>Ancestors</key>
  12
+	<array>
  13
+		<string>com.apple.dt.unit.bundleBase</string>
  14
+	</array>
  15
+	<key>Targets</key>
  16
+	<array>
  17
+		<dict>
  18
+			<key>ProductType</key>
  19
+			<string>com.apple.product-type.bundle</string>
  20
+			<key>SharedSettings</key>
  21
+			<dict>
  22
+				<key>WRAPPER_EXTENSION</key>
  23
+				<string>octest</string>
  24
+				<key>FRAMEWORK_SEARCH_PATHS</key>
  25
+				<string>$(DEVELOPER_LIBRARY_DIR)/Frameworks</string>
  26
+			</dict>
  27
+			<key>Configurations</key>
  28
+			<dict>
  29
+				<key>Debug</key>
  30
+				<dict/>
  31
+				<key>Release</key>
  32
+				<dict/>
  33
+			</dict>
  34
+			<key>Frameworks</key>
  35
+			<array>
  36
+				<string>SenTestingKit</string>
  37
+			</array>
  38
+		</dict>
  39
+	</array>
  40
+	<key>Nodes</key>
  41
+	<array>
  42
+		<string>___PACKAGENAME___-Info.plist:UnitTesting</string>
  43
+	</array>
  44
+	<key>Definitions</key>
  45
+	<dict>
  46
+		<key>___PACKAGENAME___-Info.plist:UnitTesting</key>
  47
+		<string>&lt;key&gt;CFBundleExecutable&lt;/key&gt;
  48
+&lt;string&gt;${EXECUTABLE_NAME}&lt;/string&gt;
  49
+&lt;key&gt;CFBundleInfoDictionaryVersion&lt;/key&gt;
  50
+&lt;string&gt;6.0&lt;/string&gt;
  51
+&lt;key&gt;CFBundleShortVersionString&lt;/key&gt;
  52
+&lt;string&gt;1.0&lt;/string&gt;
  53
+&lt;key&gt;CFBundleVersion&lt;/key&gt;
  54
+&lt;string&gt;1&lt;/string&gt;
  55
+&lt;key&gt;CFBundleDevelopmentRegion&lt;/key&gt;
  56
+&lt;string&gt;en&lt;/string&gt;
  57
+&lt;key&gt;CFBundlePackageType&lt;/key&gt;
  58
+&lt;string&gt;BNDL&lt;/string&gt;
  59
+&lt;key&gt;CFBundleSignature&lt;/key&gt;
  60
+&lt;string&gt;????&lt;/string&gt;
  61
+</string>
  62
+	</dict>
  63
+</dict>
  64
+</plist>
BIN  ...SnippetsAndTemplates/Templates/Project Templates/Cedar/OSX Cedar Spec Suite.xctemplate/TemplateIcon.tiff
Binary file not shown
112  ...nippetsAndTemplates/Templates/Project Templates/Cedar/OSX Cedar Spec Suite.xctemplate/TemplateInfo.plist
... ...
@@ -0,0 +1,112 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>Kind</key>
  6
+	<string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
  7
+	<key>Nodes</key>
  8
+	<array>
  9
+		<string>___PACKAGENAME___-Prefix.pch:objC:importCedar</string>
  10
+		<string>___PACKAGENAME___-Prefix.pch:objC:importOCMock</string>
  11
+		<string>___PACKAGENAME___-Prefix.pch:objC:importFoundation</string>
  12
+		<string>Frameworks/Cedar.framework</string>
  13
+		<string>main.m:include</string>
  14
+		<string>main.m:main:content</string>
  15
+	</array>
  16
+	<key>Identifier</key>
  17
+	<string>com.pivotallabs.cedar.OSXSpecSuite</string>
  18
+	<key>Concrete</key>
  19
+	<true/>
  20
+	<key>Description</key>
  21
+	<string>Creates a command-line target which runs Cedar specs.</string>
  22
+	<key>Ancestors</key>
  23
+	<array>
  24
+		<string>com.apple.dt.unit.base</string>
  25
+		<string>com.apple.dt.unit.macBase</string>
  26
+		<string>com.apple.dt.unit.macReferenceCounting</string>
  27
+	</array>
  28
+	<key>Targets</key>
  29
+	<array>
  30
+		<dict>
  31
+			<key>SharedSettings</key>
  32
+			<dict>
  33
+				<key>GCC_PRECOMPILE_PREFIX_HEADER</key>
  34
+				<string>YES</string>
  35
+				<key>GCC_PREFIX_HEADER</key>
  36
+				<string>___PACKAGENAME___/___PACKAGENAME___-Prefix.pch</string>
  37
+			</dict>
  38
+			<key>Frameworks</key>
  39
+			<array>
  40
+				<string>Foundation</string>
  41
+			</array>
  42
+			<key>ProductType</key>
  43
+			<string>com.apple.product-type.tool</string>
  44
+			<key>BuildPhases</key>
  45
+			<array>
  46
+				<dict>
  47
+					<key>Class</key>
  48
+					<string>ShellScript</string>
  49
+					<key>ShellPath</key>
  50
+					<string>/bin/sh</string>
  51
+					<key>ShellScript</key>
  52
+					<string>cp -R &quot;${TARGET_NAME}&quot;/Frameworks/Cedar.framework &quot;${BUILT_PRODUCTS_DIR}&quot;
  53
+if test -d &quot;${TARGET_NAME}&quot;/Frameworks/OCMock.framework ; then cp -R &quot;${TARGET_NAME}&quot;/Frameworks/OCMock.framework &quot;${BUILT_PRODUCTS_DIR}&quot; ; fi</string>
  54
+				</dict>
  55
+				<dict>
  56
+					<key>Class</key>
  57
+					<string>Sources</string>
  58
+				</dict>
  59
+				<dict>
  60
+					<key>Class</key>
  61
+					<string>Frameworks</string>
  62
+				</dict>
  63
+			</array>
  64
+		</dict>
  65
+	</array>
  66
+	<key>Options</key>
  67
+	<array>
  68
+		<dict>
  69
+			<key>Identifier</key>
  70
+			<string>useARC</string>
  71
+			<key>Units</key>
  72
+			<dict>
  73
+				<key>false</key>
  74
+				<array>
  75
+					<dict>
  76
+						<key>Project</key>
  77
+						<dict>
  78
+							<key>SharedSettings</key>
  79
+							<dict>
  80
+								<key>CLANG_ENABLE_OBJC_ARC</key>
  81
+								<string>NO</string>
  82
+							</dict>
  83
+						</dict>
  84
+					</dict>
  85
+				</array>
  86
+			</dict>
  87
+		</dict>
  88
+	</array>
  89
+	<key>Definitions</key>
  90
+	<dict>
  91
+		<key>*:*:importOCMock</key>
  92
+		<string>___CEDAR_IMPORT_OCMOCK___</string>
  93
+		<key>*:*:importCedar</key>
  94
+		<string>#import &lt;Cedar/SpecHelper.h&gt;</string>
  95
+		<key>main.m:include</key>
  96
+		<string>#import &lt;Cedar/Cedar.h&gt;
  97
+</string>
  98
+		<key>main.m:main:content</key>
  99
+		<string>int main (int argc, const char *argv[]) {
  100
+    return runSpecs();
  101
+}</string>
  102
+		<key>Frameworks/Cedar.framework</key>
  103
+		<dict>
  104
+			<key>Path</key>
  105
+			<string>Cedar.framework</string>
  106
+		</dict>
  107
+		<key>*:*:importFoundation</key>
  108
+		<string>#import &lt;Foundation/Foundation.h&gt;
  109
+</string>
  110
+	</dict>
  111
+</dict>
  112
+</plist>
BIN  ...petsAndTemplates/Templates/Project Templates/Cedar/OSX Cedar Testing Bundle.xctemplate/TemplateIcon.tiff
Binary file not shown
90  ...etsAndTemplates/Templates/Project Templates/Cedar/OSX Cedar Testing Bundle.xctemplate/TemplateInfo.plist
... ...
@@ -0,0 +1,90 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>Kind</key>
  6
+	<string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
  7
+	<key>Definitions</key>
  8
+	<dict>
  9
+		<key>*:*:importCedar</key>
  10
+		<string>#import &lt;Cedar/SpecHelper.h&gt;</string>
  11
+		<key>*:*:importOCMock</key>
  12
+		<string>___CEDAR_IMPORT_OCMOCK___</string>
  13
+		<key>Frameworks/Cedar.framework</key>
  14
+		<dict>
  15
+			<key>Path</key>
  16
+			<string>Cedar.framework</string>
  17
+		</dict>
  18
+	</dict>
  19
+	<key>Identifier</key>
  20
+	<string>com.pivotallabs.cedar.OSXTestingBundle</string>
  21
+	<key>Concrete</key>
  22
+	<true/>
  23
+	<key>Description</key>
  24
+	<string>This target builds a unit test bundle that uses Cedar</string>
  25
+	<key>SortOrder</key>
  26
+	<integer>1</integer>
  27
+	<key>Ancestors</key>
  28
+	<array>
  29
+		<string>com.pivotallabs.cedar.testingBundle</string>
  30
+		<string>com.apple.dt.unit.macBase</string>
  31
+		<string>com.apple.dt.unit.macReferenceCounting</string>
  32
+	</array>
  33
+	<key>Targets</key>
  34
+	<array>
  35
+		<dict>
  36
+			<key>BuildPhases</key>
  37
+			<array>
  38
+				<dict>
  39
+					<key>Class</key>
  40
+					<string>Sources</string>
  41
+				</dict>
  42
+				<dict>
  43
+					<key>Class</key>
  44
+					<string>Frameworks</string>
  45
+				</dict>
  46
+				<dict>
  47
+					<key>Class</key>
  48
+					<string>Resources</string>
  49
+				</dict>
  50
+				<dict>
  51
+					<key>ShellScript</key>
  52
+					<string>cp -R &quot;${TARGET_NAME}&quot;/Frameworks/Cedar.framework &quot;${BUILT_PRODUCTS_DIR}&quot;
  53
+if test -d &quot;${TARGET_NAME}&quot;/Frameworks/OCMock.framework ; then cp -R &quot;${TARGET_NAME}&quot;/Frameworks/OCMock.framework &quot;${BUILT_PRODUCTS_DIR}&quot; ; fi</string>
  54
+					<key>ShellPath</key>
  55
+					<string>/bin/sh</string>
  56
+					<key>Class</key>
  57
+					<string>ShellScript</string>
  58
+				</dict>
  59
+				<dict>
  60
+					<key>Class</key>
  61
+					<string>ShellScript</string>
  62
+					<key>ShellPath</key>
  63
+					<string>/bin/sh</string>
  64
+					<key>ShellScript</key>
  65
+					<string># Run the unit tests in this test bundle.
  66
+&quot;${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests&quot;
  67
+</string>
  68
+				</dict>
  69
+			</array>
  70
+			<key>Frameworks</key>
  71
+			<array>
  72
+				<string>Cocoa</string>
  73
+			</array>
  74
+			<key>OtherFrameworks</key>
  75
+			<array>
  76
+				<string>AppKit</string>
  77
+				<string>CoreData</string>
  78
+				<string>Foundation</string>
  79
+			</array>
  80
+		</dict>
  81
+	</array>
  82
+	<key>Nodes</key>
  83
+	<array>
  84
+		<string>___PACKAGENAME___-Prefix.pch:objC:importCocoa</string>
  85
+		<string>___PACKAGENAME___-Prefix.pch:objC:importCedar</string>
  86
+		<string>___PACKAGENAME___-Prefix.pch:objC:importOCMock</string>
  87
+		<string>Frameworks/Cedar.framework</string>
  88
+	</array>
  89
+</dict>
  90
+</plist>
67  CodeSnippetsAndTemplates/Templates/Project Templates/Cedar/OSX OCMock.xctemplate/TemplateInfo.plist
... ...
@@ -0,0 +1,67 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>Identifier</key>
  6
+	<string>com.pivotallabs.cedar.OCMock</string>
  7
+	<key>InjectionTargets</key>
  8
+	<array>
  9
+		<string>com.pivotallabs.cedar.OSXSpecSuite</string>
  10
+		<string>com.pivotallabs.cedar.OSXTestingBundle</string>
  11
+	</array>
  12
+	<key>Kind</key>
  13
+	<string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
  14
+	<key>Options</key>
  15
+	<array>
  16
+		<dict>
  17
+			<key>Default</key>
  18
+			<string>false</string>
  19
+			<key>Description</key>
  20
+			<string>Whether or not to include OCMock for mocking and stubbing objects</string>
  21
+			<key>Identifier</key>
  22
+			<string>useOCMock</string>
  23
+			<key>Name</key>
  24
+			<string>Use OCMock</string>
  25
+			<key>SortOrder</key>
  26
+			<integer>2</integer>
  27
+			<key>Type</key>
  28
+			<string>checkbox</string>
  29
+			<key>Units</key>
  30
+			<dict>
  31
+				<key>false</key>
  32
+				<array>
  33
+					<dict>
  34
+						<key>Macros</key>
  35
+						<dict>
  36
+							<key>CEDAR_IMPORT_OCMOCK</key>
  37
+							<string></string>
  38
+						</dict>
  39
+					</dict>
  40
+				</array>
  41
+				<key>true</key>
  42
+				<array>
  43
+					<dict>
  44
+						<key>Macros</key>
  45
+						<dict>
  46
+							<key>CEDAR_IMPORT_OCMOCK</key>
  47
+							<string>#import &lt;OCMock/OCMock.h&gt;</string>
  48
+						</dict>
  49
+						<key>Nodes</key>
  50
+						<array>
  51
+							<string>Frameworks/OCMock.framework</string>
  52
+						</array>
  53
+						<key>Definitions</key>
  54
+						<dict>
  55
+							<key>Frameworks/OCMock.framework</key>
  56
+							<dict>
  57
+								<key>Path</key>
  58
+								<string>OCMock.framework</string>
  59
+							</dict>
  60
+						</dict>
  61
+					</dict>
  62
+				</array>
  63
+			</dict>
  64
+		</dict>
  65
+	</array>
  66
+</dict>
  67
+</plist>
BIN  ...SnippetsAndTemplates/Templates/Project Templates/Cedar/iOS Cedar Spec Suite.xctemplate/TemplateIcon.tiff
Binary file not shown
252  ...nippetsAndTemplates/Templates/Project Templates/Cedar/iOS Cedar Spec Suite.xctemplate/TemplateInfo.plist
... ...
@@ -0,0 +1,252 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>Ancestors</key>
  6
+	<array>
  7
+		<string>com.apple.dt.unit.objectiveCApplication</string>
  8
+		<string>com.apple.dt.unit.iPhoneBase</string>
  9
+		<string>com.apple.dt.unit.prefixable</string>
  10
+	</array>
  11
+	<key>Concrete</key>
  12
+	<true/>
  13
+	<key>Definitions</key>
  14
+	<dict>
  15
+		<key>___PACKAGENAME___-Prefix.pch:objC:importCedar</key>
  16
+		<string>#import &lt;Cedar-iOS/SpecHelper.h&gt;</string>
  17
+		<key>___PACKAGENAME___-Prefix.pch:objC:importOCMock</key>
  18
+		<string>___CEDAR_IMPORT_OCMOCK___</string>
  19
+		<key>Frameworks/Cedar-iOS.framework</key>
  20
+		<dict>
  21
+			<key>Path</key>
  22
+			<string>Cedar-iOS.framework</string>
  23
+		</dict>
  24
+		<key>*:implementation:shouldAutorotateToInterfaceOrientation</key>
  25
+		<dict>
  26
+			<key>Beginning</key>
  27
+			<string>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  28
+{</string>
  29
+			<key>End</key>
  30
+			<string>}
  31
+</string>
  32
+			<key>Indent</key>
  33
+			<integer>1</integer>
  34
+		</dict>
  35
+		<key>*:implementation:viewDidLoad</key>
  36
+		<dict>
  37
+			<key>Beginning</key>
  38
+			<string>- (void)viewDidLoad
  39
+{
  40
+    [super viewDidLoad];
  41
+	// Do any additional setup after loading the view, typically from a nib.</string>
  42
+			<key>End</key>
  43
+			<string>}
  44
+</string>
  45
+			<key>Indent</key>
  46
+			<integer>1</integer>
  47
+		</dict>
  48
+		<key>*:implementation:viewDidUnload</key>
  49
+		<dict>
  50
+			<key>Beginning</key>
  51
+			<string>- (void)viewDidUnload
  52
+{
  53
+    [super viewDidUnload];
  54
+    // Release any retained subviews of the main view.</string>
  55
+			<key>End</key>
  56
+			<string>}
  57
+</string>
  58
+			<key>Indent</key>
  59
+			<integer>1</integer>
  60
+		</dict>
  61
+		<key>*:implementation:viewDidUnload:*</key>
  62
+		<string>self.___*___ = nil;</string>
  63
+		<key>*:viewControllerInterface</key>
  64
+		<dict>
  65
+			<key>Beginning</key>
  66
+			<string>//
  67
+//  ___FILENAME___
  68
+//  ___PACKAGENAME___
  69
+//
  70
+//  Created by ___FULLUSERNAME___ on ___DATE___.
  71
+//  Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
  72
+//
  73
+
  74
+#import &lt;UIKit/UIKit.h&gt;
  75
+
  76
+@interface ___FILEBASENAME___ : UIViewController
  77
+</string>
  78
+			<key>End</key>
  79
+			<string>@end</string>
  80
+		</dict>
  81
+		<key>___PACKAGENAME___-Info.plist:iPhone</key>
  82
+		<string>&lt;key&gt;CFBundleDisplayName&lt;/key&gt;
  83
+&lt;string&gt;${PRODUCT_NAME}&lt;/string&gt;
  84
+&lt;key&gt;CFBundleVersion&lt;/key&gt;
  85
+&lt;string&gt;1.0&lt;/string&gt;
  86
+&lt;key&gt;CFBundleShortVersionString&lt;/key&gt;
  87
+&lt;string&gt;1.0&lt;/string&gt;
  88
+&lt;key&gt;LSRequiresIPhoneOS&lt;/key&gt;
  89
+&lt;true/&gt;
  90
+&lt;key&gt;UIRequiredDeviceCapabilities&lt;/key&gt;
  91
+&lt;array&gt;
  92
+	&lt;string&gt;armv7&lt;/string&gt;
  93
+&lt;/array&gt;</string>
  94
+		<key>___PACKAGENAME___-Prefix.pch:Availability:iPhoneAvailability:*</key>
  95
+		<string>#import &lt;Availability.h&gt;
  96
+
  97
+#ifndef __IPHONE____*____0
  98
+#warning &quot;This project uses features only available in iOS SDK ___*___.0 and later.&quot;
  99
+#endif
  100
+</string>
  101
+		<key>main.m:main:UIApplicationMain</key>
  102
+		<string>@autoreleasepool {
  103
+    return UIApplicationMain(argc, argv, nil, @&quot;CedarApplicationDelegate&quot;);
  104
+}
  105
+</string>
  106
+		<key>main.m:import:Cedar-iOS</key>
  107
+		<string>#import &lt;Cedar-iOS/Cedar-iOS.h&gt;
  108
+</string>
  109
+	</dict>
  110
+	<key>Identifier</key>
  111
+	<string>com.pivotallabs.cedar.iOSSpecSuite</string>
  112
+	<key>Kind</key>
  113
+	<string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
  114
+	<key>Nodes</key>
  115
+	<array>
  116
+		<string>main.m:import:Cedar-iOS</string>
  117
+		<string>main.m:main:UIApplicationMain</string>
  118
+		<string>___PACKAGENAME___-Info.plist:iPhone</string>
  119
+		<string>___PACKAGENAME___-Info.plist:NSMainNibFile</string>
  120
+		<string>___PACKAGENAME___-Prefix.pch:objC:importFoundation</string>
  121
+		<string>___PACKAGENAME___-Prefix.pch:objC:importCedar</string>
  122
+		<string>___PACKAGENAME___-Prefix.pch:objC:importOCMock</string>
  123
+		<string>___PACKAGENAME___-Prefix.pch:Availability:iPhoneAvailability</string>
  124
+		<string>Frameworks/Cedar-iOS.framework</string>
  125
+	</array>
  126
+	<key>Options</key>
  127
+	<array>
  128
+		<dict>
  129
+			<key>Identifier</key>
  130
+			<string>useARC</string>
  131
+			<key>Units</key>
  132
+			<dict>
  133
+				<key>false</key>
  134
+				<array>
  135
+					<dict>
  136
+						<key>Project</key>
  137
+						<dict>
  138
+							<key>SharedSettings</key>
  139
+							<dict>
  140
+								<key>CLANG_ENABLE_OBJC_ARC</key>
  141
+								<string>NO</string>
  142
+							</dict>
  143
+						</dict>
  144
+					</dict>
  145
+				</array>
  146
+			</dict>
  147
+		</dict>
  148
+		<dict>
  149
+			<key>Default</key>
  150
+			<string>Universal</string>
  151
+			<key>Description</key>
  152
+			<string>Which device family to create a project for</string>
  153
+			<key>Identifier</key>
  154
+			<string>universalDeviceFamily</string>
  155
+			<key>Name</key>
  156
+			<string>Device Family</string>
  157
+			<key>SortOrder</key>
  158
+			<integer>1</integer>
  159
+			<key>Type</key>
  160
+			<string>popup</string>
  161
+			<key>Units</key>
  162
+			<dict>
  163
+				<key>Universal</key>
  164
+				<dict>
  165
+					<key>Definitions</key>
  166
+					<dict>
  167
+						<key>*:implementation:shouldAutorotateToInterfaceOrientation:return</key>
  168
+						<string>if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
  169
+    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
  170
+} else {
  171
+    return YES;
  172
+}</string>
  173
+					</dict>
  174
+					<key>Nodes</key>
  175
+					<array>
  176
+						<string>___PACKAGENAME___-Info.plist:UISupportedInterfaceOrientations~iPhone</string>
  177
+						<string>___PACKAGENAME___-Info.plist:UISupportedInterfaceOrientations~iPad</string>
  178
+					</array>
  179
+					<key>Project</key>
  180
+					<dict>
  181
+						<key>SharedSettings</key>
  182
+						<dict>
  183
+							<key>TARGETED_DEVICE_FAMILY</key>
  184
+							<string>1,2</string>
  185
+						</dict>
  186
+					</dict>
  187
+				</dict>
  188
+				<key>iPad</key>
  189
+				<dict>
  190
+					<key>Definitions</key>
  191
+					<dict>
  192
+						<key>*:implementation:shouldAutorotateToInterfaceOrientation:return</key>
  193
+						<string>return YES;</string>
  194
+					</dict>
  195
+					<key>Nodes</key>
  196
+					<array>
  197
+						<string>___PACKAGENAME___-Info.plist:UISupportedInterfaceOrientations~iPad</string>
  198
+					</array>
  199
+					<key>Project</key>
  200
+					<dict>
  201
+						<key>SharedSettings</key>
  202
+						<dict>
  203
+							<key>TARGETED_DEVICE_FAMILY</key>
  204
+							<string>2</string>
  205
+						</dict>
  206
+					</dict>
  207
+				</dict>
  208
+				<key>iPhone</key>
  209
+				<dict>
  210
+					<key>Definitions</key>
  211
+					<dict>
  212
+						<key>*:implementation:shouldAutorotateToInterfaceOrientation:return</key>
  213
+						<string>return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);</string>
  214
+					</dict>
  215
+					<key>Nodes</key>
  216
+					<array>
  217
+						<string>___PACKAGENAME___-Info.plist:UISupportedInterfaceOrientations~iPhone</string>
  218
+					</array>
  219
+				</dict>
  220
+			</dict>
  221
+		</dict>
  222
+	</array>
  223
+	<key>Targets</key>
  224
+	<array>
  225
+		<dict>
  226
+			<key>SharedSettings</key>
  227
+			<dict>
  228
+				<key>OTHER_LDFLAGS</key>
  229
+				<string>-ObjC -all_load -lstdc++</string>
  230
+				<key>CODE_SIGN_IDENTITY[sdk=iphoneos*]</key>
  231
+				<string>iPhone Developer</string>
  232
+			</dict>
  233
+			<key>Configurations</key>
  234
+			<dict>
  235
+				<key>Release</key>
  236
+				<dict>
  237
+					<key>OTHER_CFLAGS</key>
  238
+					<string>-DNS_BLOCK_ASSERTIONS=1</string>
  239
+				</dict>
  240
+			</dict>
  241
+			<key>Frameworks</key>
  242
+			<array>
  243
+				<string>UIKit</string>
  244
+				<string>Foundation</string>
  245
+				<string>CoreGraphics</string>
  246
+			</array>
  247
+		</dict>
  248
+	</array>
  249
+	<key>Description</key>
  250
+	<string>Creates an iOS application which runs Cedar specs.</string>
  251
+</dict>
  252
+</plist>
BIN  ...petsAndTemplates/Templates/Project Templates/Cedar/iOS Cedar Testing Bundle.xctemplate/TemplateIcon.tiff
Binary file not shown
106  ...etsAndTemplates/Templates/Project Templates/Cedar/iOS Cedar Testing Bundle.xctemplate/TemplateInfo.plist
... ...
@@ -0,0 +1,106 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>Ancestors</key>
  6
+	<array>
  7
+		<string>com.pivotallabs.cedar.testingBundle</string>
  8
+		<string>com.apple.dt.unit.iPhoneBase</string>
  9
+	</array>
  10
+	<key>Concrete</key>
  11
+	<true/>
  12
+	<key>Options</key>
  13
+	<array>
  14
+		<dict>
  15
+			<key>Default</key>
  16
+			<string></string>
  17
+			<key>Required</key>
  18
+			<true/>
  19
+			<key>NotPersisted</key>
  20
+			<true/>
  21
+			<key>Identifier</key>
  22
+			<string>testTargetName</string>
  23
+			<key>Name</key>
  24
+			<string>Test Target</string>
  25
+			<key>Description</key>
  26
+			<string>The name of the project target this test suite is for</string>
  27
+			<key>Type</key>
  28
+			<string>text</string>
  29
+		</dict>
  30
+	</array>
  31
+	<key>Description</key>
  32
+	<string>This target builds a unit test bundle that uses Cedar</string>
  33
+	<key>Identifier</key>
  34
+	<string>com.pivotallabs.cedar.iOSTestingBundle</string>
  35
+	<key>Definitions</key>
  36
+	<dict>
  37
+		<key>___PACKAGENAME___-Prefix.pch:objC:importOCMock</key>
  38
+		<string>___CEDAR_IMPORT_OCMOCK___</string>
  39
+		<key>___PACKAGENAME___-Prefix.pch:objC:importCedar</key>
  40
+		<string>#import &lt;Cedar-iOS/SpecHelper.h&gt;</string>
  41
+		<key>Frameworks/Cedar-iOS.framework</key>
  42
+		<dict>
  43
+			<key>Path</key>
  44
+			<string>Cedar-iOS.framework</string>
  45
+		</dict>
  46
+	</dict>
  47
+	<key>Kind</key>