Skip to content

Commit

Permalink
v0.1.0 - Socket.IO 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pcperini committed Sep 4, 2014
1 parent 4d0c42c commit 37ea58e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SIOSocket is simple interface for communicating with [socket.io 1.0](http://sock
SIOSocket can be added as a CocodaPod, submodule, or standalone dependency to any iOS 7.0 (or greater) project.

```ruby
pod 'SIOSocket', '~> 0.0.3'
pod 'SIOSocket', '~> 0.1.0'
```

then...
Expand Down
4 changes: 2 additions & 2 deletions SIOSocket.podspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Pod::Spec.new do |s|
s.name = "SIOSocket"
s.version = "0.0.3"
s.version = "0.1.0"
s.summary = "Realtime iOS application framework (client) http://socket.io"
s.license = "MIT"
s.source = { :tag => "v0.0.3", :git => "https://github.com/MegaBits/SIOSocket.git"}
s.source = { :tag => "v0.1.0", :git => "https://github.com/MegaBits/SIOSocket.git"}
s.platform = :ios, "7.0"
s.source_files = "SocketIO/Source/*.{h,m}"
s.requires_arc = true
Expand Down
5 changes: 3 additions & 2 deletions SocketIO.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = SocketIOHost/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -363,7 +363,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = SocketIOHost/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -491,6 +491,7 @@
733750EC19B7A42800DEE6FC /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
73DCADE1194B7ECE00696409 /* Build configuration list for PBXProject "SocketIO" */ = {
isa = XCConfigurationList;
Expand Down
15 changes: 0 additions & 15 deletions SocketIO/SocketIO.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@ - (void)testConnectToLocalhost

- (void)testFalse
{
XCTestExpectation *connectionExpectation = [self expectationWithDescription: @"should connect to localhost"];
XCTestExpectation *falseExpectation = [self expectationWithDescription: @"should work with false"];

[SIOSocket socketWithHost: @"http://localhost:3000" response: ^(SIOSocket *socket)
{
XCTAssertNotNil(socket, @"socket could not connect to localhost");
[connectionExpectation fulfill];

[socket on: @"false" callback: ^(id data)
{
XCTAssertFalse([data boolValue], @"response not false");
Expand All @@ -51,9 +47,7 @@ - (void)testFalse

- (void)testUTF8MultibyteCharacters
{
XCTestExpectation *connectionExpectation = [self expectationWithDescription: @"should connect to localhost"];
XCTestExpectation *utf8MultibyteCharactersExpectation = [self expectationWithDescription: @"should work with utf8 multibyte characters"];

NSArray *correctStrings = @[
@"てすと",
@"Я Б Г Д Ж Й",
Expand All @@ -65,7 +59,6 @@ - (void)testUTF8MultibyteCharacters
[SIOSocket socketWithHost: @"http://localhost:3000" response: ^(SIOSocket *socket)
{
XCTAssertNotNil(socket, @"socket could not connect to localhost");
[connectionExpectation fulfill];

__block NSInteger numberOfCorrectStrings = 0;
[socket on: @"takeUtf8" callback: ^(id data)
Expand All @@ -87,14 +80,10 @@ - (void)testUTF8MultibyteCharacters

- (void)testEmitDateAsString
{
XCTestExpectation *connectionExpectation = [self expectationWithDescription: @"should connect to localhost"];
XCTestExpectation *stringExpectation = [self expectationWithDescription: @"should emit date as a string"];

[SIOSocket socketWithHost: @"http://localhost:3000" response: ^(SIOSocket *socket)
{
XCTAssertNotNil(socket, @"socket could not connect to localhost");
[connectionExpectation fulfill];

[socket on: @"takeDate" callback: ^(id data)
{
XCTAssert([data isKindOfClass: [NSString class]], @"%@ is not a string", data);
Expand All @@ -109,14 +98,10 @@ - (void)testEmitDateAsString

- (void)testEmitDateAsObject
{
XCTestExpectation *connectionExpectation = [self expectationWithDescription: @"should connect to localhost"];
XCTestExpectation *stringExpectation = [self expectationWithDescription: @"should emit date as a string"];

[SIOSocket socketWithHost: @"http://localhost:3000" response: ^(SIOSocket *socket)
{
XCTAssertNotNil(socket, @"socket could not connect to localhost");
[connectionExpectation fulfill];

[socket on: @"takeDateObj" callback: ^(id data)
{
XCTAssert([data isKindOfClass: [NSDictionary class]], @"%@ is not a dictionary", data);
Expand Down
4 changes: 2 additions & 2 deletions SocketIO/Source/socket.io.js.h

Large diffs are not rendered by default.

0 comments on commit 37ea58e

Please sign in to comment.