Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add basic Client class.

Signed-off-by: Chris Brown <xoebus@xoeb.us>
  • Loading branch information...
commit 6c7f0e102106e5755b4db9571c976e457cc46d37 1 parent fda6cd6
@xoebus authored
View
32 Woggle.xcodeproj/project.pbxproj
@@ -16,12 +16,20 @@
22431591152F3C7000452E0B /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 2243158F152F3C7000452E0B /* InfoPlist.strings */; };
22431594152F3C7000452E0B /* WoggleSpecs.m in Sources */ = {isa = PBXBuildFile; fileRef = 22431593152F3C7000452E0B /* WoggleSpecs.m */; };
22987304152F480C0039DAA5 /* libPods-test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 22987303152F480C0039DAA5 /* libPods-test.a */; };
+ 22B12B16152F9A5200C154BF /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22B12B12152F993C00C154BF /* CoreGraphics.framework */; };
+ 22B12B18152F9A5200C154BF /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22B12B17152F9A5200C154BF /* CFNetwork.framework */; };
+ 22B12B1A152F9A6300C154BF /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22B12B19152F9A6300C154BF /* SystemConfiguration.framework */; };
+ 22B12B1C152F9A7200C154BF /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22B12B1B152F9A7200C154BF /* MobileCoreServices.framework */; };
+ 22B12B1E152F9A8900C154BF /* libz.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 22B12B1D152F9A8900C154BF /* libz.1.dylib */; };
22E0FDCA152F4EB900427F21 /* TPCampfireUser.h in Headers */ = {isa = PBXBuildFile; fileRef = 22E0FDC8152F4EB900427F21 /* TPCampfireUser.h */; };
22E0FDCB152F4EB900427F21 /* TPCampfireUser.m in Sources */ = {isa = PBXBuildFile; fileRef = 22E0FDC9152F4EB900427F21 /* TPCampfireUser.m */; };
22E0FDCE152F4ED100427F21 /* TPCampfireUserSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 22E0FDCD152F4ED100427F21 /* TPCampfireUserSpec.m */; };
22E0FDD1152F6C3000427F21 /* TPCampfireMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 22E0FDCF152F6C3000427F21 /* TPCampfireMessage.h */; };
22E0FDD2152F6C3000427F21 /* TPCampfireMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 22E0FDD0152F6C3000427F21 /* TPCampfireMessage.m */; };
22E0FDD4152F6C5C00427F21 /* TPCampfireMessageSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 22E0FDD3152F6C5C00427F21 /* TPCampfireMessageSpec.m */; };
+ 22F27FE8152F948200D1F3B1 /* TPCampfireClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 22F27FE6152F948200D1F3B1 /* TPCampfireClient.h */; };
+ 22F27FE9152F948200D1F3B1 /* TPCampfireClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 22F27FE7152F948200D1F3B1 /* TPCampfireClient.m */; };
+ 22F27FEE152F958700D1F3B1 /* TPCampfireClientSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 22F27FED152F958700D1F3B1 /* TPCampfireClientSpec.m */; };
6C2D41802EEA4D6C89481FC6 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D360C4CA13F44D8A43CBA53 /* libPods.a */; };
/* End PBXBuildFile section */
@@ -49,12 +57,20 @@
22431593152F3C7000452E0B /* WoggleSpecs.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WoggleSpecs.m; sourceTree = "<group>"; };
22987303152F480C0039DAA5 /* libPods-test.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libPods-test.a"; path = "Pods/build/Release-iphoneos/libPods-test.a"; sourceTree = "<group>"; };
22987305152F48D70039DAA5 /* Pods-test.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = "Pods-test.xcconfig"; path = "Pods/Pods-test.xcconfig"; sourceTree = "<group>"; };
+ 22B12B12152F993C00C154BF /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ 22B12B17152F9A5200C154BF /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
+ 22B12B19152F9A6300C154BF /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
+ 22B12B1B152F9A7200C154BF /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
+ 22B12B1D152F9A8900C154BF /* libz.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.1.dylib; path = usr/lib/libz.1.dylib; sourceTree = SDKROOT; };
22E0FDC8152F4EB900427F21 /* TPCampfireUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TPCampfireUser.h; sourceTree = "<group>"; };
22E0FDC9152F4EB900427F21 /* TPCampfireUser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TPCampfireUser.m; sourceTree = "<group>"; };
22E0FDCD152F4ED100427F21 /* TPCampfireUserSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TPCampfireUserSpec.m; sourceTree = "<group>"; };
22E0FDCF152F6C3000427F21 /* TPCampfireMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TPCampfireMessage.h; sourceTree = "<group>"; };
22E0FDD0152F6C3000427F21 /* TPCampfireMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TPCampfireMessage.m; sourceTree = "<group>"; };
22E0FDD3152F6C5C00427F21 /* TPCampfireMessageSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TPCampfireMessageSpec.m; sourceTree = "<group>"; };
+ 22F27FE6152F948200D1F3B1 /* TPCampfireClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TPCampfireClient.h; sourceTree = "<group>"; };
+ 22F27FE7152F948200D1F3B1 /* TPCampfireClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TPCampfireClient.m; sourceTree = "<group>"; };
+ 22F27FED152F958700D1F3B1 /* TPCampfireClientSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TPCampfireClientSpec.m; sourceTree = "<group>"; };
5247086F29F741C2B6186A12 /* Pods.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = SOURCE_ROOT; };
9D360C4CA13F44D8A43CBA53 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
@@ -73,6 +89,11 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 22B12B1E152F9A8900C154BF /* libz.1.dylib in Frameworks */,
+ 22B12B1C152F9A7200C154BF /* MobileCoreServices.framework in Frameworks */,
+ 22B12B1A152F9A6300C154BF /* SystemConfiguration.framework in Frameworks */,
+ 22B12B18152F9A5200C154BF /* CFNetwork.framework in Frameworks */,
+ 22B12B16152F9A5200C154BF /* CoreGraphics.framework in Frameworks */,
22987304152F480C0039DAA5 /* libPods-test.a in Frameworks */,
22431585152F3C7000452E0B /* SenTestingKit.framework in Frameworks */,
22431587152F3C7000452E0B /* UIKit.framework in Frameworks */,
@@ -108,6 +129,11 @@
22431575152F3C6F00452E0B /* Frameworks */ = {
isa = PBXGroup;
children = (
+ 22B12B1D152F9A8900C154BF /* libz.1.dylib */,
+ 22B12B1B152F9A7200C154BF /* MobileCoreServices.framework */,
+ 22B12B19152F9A6300C154BF /* SystemConfiguration.framework */,
+ 22B12B17152F9A5200C154BF /* CFNetwork.framework */,
+ 22B12B12152F993C00C154BF /* CoreGraphics.framework */,
22987303152F480C0039DAA5 /* libPods-test.a */,
22431576152F3C6F00452E0B /* Foundation.framework */,
22431584152F3C7000452E0B /* SenTestingKit.framework */,
@@ -127,6 +153,8 @@
22E0FDC9152F4EB900427F21 /* TPCampfireUser.m */,
22E0FDCF152F6C3000427F21 /* TPCampfireMessage.h */,
22E0FDD0152F6C3000427F21 /* TPCampfireMessage.m */,
+ 22F27FE6152F948200D1F3B1 /* TPCampfireClient.h */,
+ 22F27FE7152F948200D1F3B1 /* TPCampfireClient.m */,
);
path = Woggle;
sourceTree = "<group>";
@@ -146,6 +174,7 @@
2243158D152F3C7000452E0B /* Supporting Files */,
22E0FDCD152F4ED100427F21 /* TPCampfireUserSpec.m */,
22E0FDD3152F6C5C00427F21 /* TPCampfireMessageSpec.m */,
+ 22F27FED152F958700D1F3B1 /* TPCampfireClientSpec.m */,
);
path = WoggleTests;
sourceTree = "<group>";
@@ -168,6 +197,7 @@
files = (
22E0FDCA152F4EB900427F21 /* TPCampfireUser.h in Headers */,
22E0FDD1152F6C3000427F21 /* TPCampfireMessage.h in Headers */,
+ 22F27FE8152F948200D1F3B1 /* TPCampfireClient.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -289,6 +319,7 @@
2243157D152F3C6F00452E0B /* Woggle.m in Sources */,
22E0FDCB152F4EB900427F21 /* TPCampfireUser.m in Sources */,
22E0FDD2152F6C3000427F21 /* TPCampfireMessage.m in Sources */,
+ 22F27FE9152F948200D1F3B1 /* TPCampfireClient.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -299,6 +330,7 @@
22431594152F3C7000452E0B /* WoggleSpecs.m in Sources */,
22E0FDCE152F4ED100427F21 /* TPCampfireUserSpec.m in Sources */,
22E0FDD4152F6C5C00427F21 /* TPCampfireMessageSpec.m in Sources */,
+ 22F27FEE152F958700D1F3B1 /* TPCampfireClientSpec.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
17 Woggle/TPCampfireClient.h
@@ -0,0 +1,17 @@
+//
+// TPCampfireClient.h
+// Woggle
+//
+// Created by Chris Brown on 06/04/2012.
+// Copyright (c) 2012 Team Proa. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@interface TPCampfireClient : NSObject
+
+@property (copy, atomic) NSString *domain;
+
+- (id)initWithDomain:(NSString *)domain;
+
+@end
View
31 Woggle/TPCampfireClient.m
@@ -0,0 +1,31 @@
+//
+// TPCampfireClient.m
+// Woggle
+//
+// Created by Chris Brown on 06/04/2012.
+// Copyright (c) 2012 Team Proa. All rights reserved.
+//
+
+#import "TPCampfireClient.h"
+
+@implementation TPCampfireClient
+
+#pragma mark - Properties
+
+@synthesize domain = _domain;
+
+#pragma mark - Constructors
+
+- (id)initWithDomain:(NSString *)domain
+{
+ self = [super init];
+
+ if (self)
+ {
+ _domain = domain;
+ }
+
+ return self;
+}
+
+@end
View
14 WoggleTests/TPCampfireClientSpec.m
@@ -0,0 +1,14 @@
+#include "Kiwi.h"
+
+#include "TPCampfireClient.h"
+
+SPEC_BEGIN(ClientSpec)
+
+describe(@"a campfire client", ^{
+ describe(@"has a constructor", ^{
+ TPCampfireClient *client = [[TPCampfireClient alloc] initWithDomain:@"teamproa"];
+ [[[client domain] should] equal:@"teamproa"];
+ });
+});
+
+SPEC_END
View
2  WoggleTests/TPCampfireUserSpec.m
@@ -21,7 +21,7 @@
});
it(@"should not be an admin", ^{
- [[theValue(user.isAdmin) should] equal:theValue(NO)];
+ [[theValue([user isAdmin]) should] equal:theValue(NO)];
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.