Permalink
Browse files

Removed Nodelike

The new servers seem ready, we can finally make the switch. This includes:
- removing the Nodelike folder and submodule
- removing the server code that starts the nodelike server
- removing Nodelike from the project build phases
- removing all node_modules

We also:
- sped up compilation by creating appledoc on release configuration only
- removed binaries from the framework's compilation. we don't seem to need them for static libraries
- removed warnings from GCDWebserver and BLWebsocket files by adding the -w compiler flag
  • Loading branch information...
BlackWolf committed Feb 12, 2015
1 parent 1a1bb1f commit 10654938b14ce37f4678419bcda6cc80b654ca12
Showing 595 changed files with 53,040 additions and 26,120 deletions.
View
@@ -1,3 +0,0 @@
[submodule "Nodelike"]
path = Nodelike
url = https://github.com/BlackWolf/Nodelike.git
@@ -0,0 +1,8 @@
.DS_Store
xcuserdata
*.xccheckout
build
.idea
*~
@@ -0,0 +1,6 @@
[submodule "libuv"]
path = libuv
url = https://github.com/joyent/libuv.git
[submodule "http-parser"]
path = http-parser
url = https://github.com/joyent/http-parser.git
@@ -0,0 +1,21 @@
language: objective-c
xcode_sdk: iphonesimulator
xcode_scheme: Nodelike
xcode_project: Nodelike.xcodeproj
notifications:
flowdock: 803358c5edc46b50866b8e588b4c374b
webhooks:
urls:
- https://webhooks.gitter.im/e/fa1f3636231a3e89e7fd
on_success: change
on_failure: always
on_start: false
hipchat:
secure: PWUImx7gQYERVm1kpBaZGOE+fLVmL4WnOSuDJSTBMaD0X1kL+6wo+qPJVCrp49IIa2GWEOkCDS0ZJaaEmN1mifct4HMSkgzD9W8PbvPFc0GryYvuZEos5j+932a8opV5GnysDMeF2szZZIog2D6dePZpA9CSJLDvTwK8OxjBLDQ=
env:
global:
secure: JKBqjntMCwpZfgbUwM3dDHINkQDsJLGiPltpSSN29n4V8FRffMEegEss/ApeSL6xme2om6oRWNuJ8FJKgWR73DbUw9A58Sd0g5kNvVvLAC6lSeCoeeFWAmcx3agYakoVByWNFhTfHRqoCE8N0fwFc7wxki4zV8WzAg/6QXm0vXA=
before_script:
- sudo easy_install cpp-coveralls
after_success:
- ./coveralls.rb --extension m --exclude-folder "Nodelike Tests"
@@ -0,0 +1,8 @@
# Nodelike CHANGELOG
## 0.1.0
Inital release
* Created a cocoapod
[Ryan Marsh](https://github.com/ryanwmarsh)
[#4](https://github.com/node-app/Nodelike/pull/4)

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,13 @@
#import "NLTestCase.h"
@interface Assert_Tests : NLTestCase
@end
@implementation Assert_Tests : NLTestCase
- (void)testAll {
[self runWithPrefix:@"test-assert"];
}
@end
@@ -0,0 +1,23 @@
//
// AsyncListener_Tests.m
// Nodelike
//
// Created by Sam Rijs on 4/2/14.
// Copyright (c) 2014 Sam Rijs. All rights reserved.
//
#import <XCTest/XCTest.h>
#import "NLTestCase.h"
@interface AsyncListener_Tests : NLTestCase
@end
@implementation AsyncListener_Tests
- (void)testAll {
[self runWithPrefix:@"test-asynclistener"];
}
@end
@@ -0,0 +1,21 @@
//
// Buffer_Tests.m
// Nodelike
//
// Created by Sam Rijs on 2/22/14.
// Copyright (c) 2014 Sam Rijs. All rights reserved.
//
#import "NLTestCase.h"
@interface Buffer_Tests : NLTestCase
@end
@implementation Buffer_Tests
- (void)testAll {
[self runWithPrefix:@"test-buffer"];
}
@end
@@ -0,0 +1,13 @@
#import "NLTestCase.h"
@interface Console_Tests : NLTestCase
@end
@implementation Console_Tests : NLTestCase
- (void)testAll {
[self runWithPrefix:@"test-console"];
}
@end
@@ -0,0 +1,21 @@
//
// EventEmitter_Tests.m
// Nodelike
//
// Created by Sam Rijs on 3/8/14.
// Copyright (c) 2014 Sam Rijs. All rights reserved.
//
#import "NLTestCase.h"
@interface EventEmitter_Tests : NLTestCase
@end
@implementation EventEmitter_Tests
- (void)testAll {
[self runWithPrefix:@"test-event-emitter"];
}
@end
@@ -0,0 +1,16 @@
//
// NLTestCase.h
// Nodelike
//
// Created by Sam Rijs on 3/8/14.
// Copyright (c) 2014 Sam Rijs. All rights reserved.
//
#import <XCTest/XCTest.h>
@interface NLTestCase : XCTestCase
- (void)runWithPrefix:(NSString *)prefix skipping:(NSArray *)bad;
- (void)runWithPrefix:(NSString *)prefix;
@end
@@ -0,0 +1,47 @@
//
// NLTestCase.m
// Nodelike
//
// Created by Sam Rijs on 3/8/14.
// Copyright (c) 2014 Sam Rijs. All rights reserved.
//
#import "NLTestCase.h"
#import "NLContext.h"
#import "NLNatives.h"
@implementation NLTestCase
- (void)runWithPrefix:(NSString *)prefix {
[self runWithPrefix:prefix skipping:nil];
}
- (void)runWithPrefix:(NSString *)prefix skipping:(NSArray *)bad {
[NLNatives.modules enumerateObjectsUsingBlock:^(NSString *obj, NSUInteger idx, BOOL *stop) {
if ([obj hasPrefix:prefix]) {
if ([bad containsObject:obj]) {
NSLog(@"skipping %@", obj);
return;
}
NSLog(@"running %@", obj);
NLContext *ctx = [NLContext new];
[ctx evaluateScript:@"require_ = require; require = (function (module) { return require_(module.substr(0,9) === '../common' ? 'test-common' : module); });"];
[ctx evaluateScript:[NLNatives source:obj]];
JSValue *e = ctx.exception;
if (e)
XCTFail(@"Context exception thrown: %@; stack: %@", e, [e valueForProperty:@"stack"]);
[NLContext runEventLoopSyncInContext:ctx];
[ctx emitExit];
}
}];
}
+ (void)tearDown {
[super tearDown];
// flush coverage data
extern void __gcov_flush(void);
__gcov_flush();
}
@end
@@ -0,0 +1,54 @@
//
// NLTimer_Tests.m
// Nodelike
//
// Created by Sam Rijs on 1/25/14.
// Copyright (c) 2014 Sam Rijs. All rights reserved.
//
#import "NLTestCase.h"
#import "NLContext.h"
@interface NLTimer_Tests : NLTestCase
@end
@implementation NLTimer_Tests
- (void)testTimer {
[self runWithPrefix:@"test-timers"];
}
- (void)testSetTimeout0 {
__block bool canary = false;
NLContext *ctx = [NLContext new];
ctx.exceptionHandler = ^(JSContext *ctx, JSValue *e) {
XCTFail(@"Context exception thrown: %@", e);
};
ctx[@"callback"] = ^{
canary = true;
};
[ctx evaluateScript:@"require('timers').setTimeout(callback, 0);"];
[NLContext runEventLoopAsyncInContext:ctx];
[NSThread sleepForTimeInterval:0.1f];
XCTAssertTrue(canary, @"Canary not true immediately after timeout fired.");
}
- (void)testSetTimeout1000 {
__block bool canary = false;
NLContext *ctx = [NLContext new];
ctx.exceptionHandler = ^(JSContext *ctx, JSValue *e) {
XCTFail(@"Context exception thrown: %@", e);
};
ctx[@"callback"] = ^{
canary = true;
};
[ctx evaluateScript:@"require('timers').setTimeout(callback, 1000);"];
[NLContext runEventLoopAsyncInContext:ctx];
XCTAssertFalse(canary, @"Canary not false immediately after timeout set.");
[NSThread sleepForTimeInterval:1.1f];
XCTAssertTrue(canary, @"Canary not true immediately after timeout fired.");
}
@end
@@ -0,0 +1,21 @@
//
// Net_Tests.m
// Nodelike
//
// Created by Sam Rijs on 4/2/14.
// Copyright (c) 2014 Sam Rijs. All rights reserved.
//
#import "NLTestCase.h"
@interface Net_Tests : NLTestCase
@end
@implementation Net_Tests
- (void)testAll {
[self runWithPrefix:@"test-net"];
}
@end
@@ -0,0 +1,21 @@
//
// NextTick_Tests.m
// Nodelike
//
// Created by Sam Rijs on 3/2/14.
// Copyright (c) 2014 Sam Rijs. All rights reserved.
//
#import "NLTestCase.h"
@interface NextTick_Tests : NLTestCase
@end
@implementation NextTick_Tests
- (void)testAll {
[self runWithPrefix:@"test-next-tick"];
}
@end
@@ -0,0 +1,22 @@
<?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>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.nodeapp.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
@@ -0,0 +1,10 @@
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
@@ -0,0 +1,16 @@
#import "NLTestCase.h"
@interface Read_Tests : NLTestCase
@end
@implementation Read_Tests : NLTestCase
- (void)testAll {
[self runWithPrefix:@"test-readint"];
[self runWithPrefix:@"test-readuint"];
[self runWithPrefix:@"test-readdouble"];
[self runWithPrefix:@"test-readfloat"];
}
@end
Oops, something went wrong.

0 comments on commit 1065493

Please sign in to comment.