Skip to content

Commit 9cbb769

Browse files
Update Rakefile
1 parent 637b658 commit 9cbb769

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

Classes/JSBSuperClassProxy.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
// JavaScriptBridge
44
//
55
// Created by kishikawa katsumi on 2014/01/04.
6-
// Copyright (c) 2014年 kishikawa katsumi. All rights reserved.
6+
// Copyright (c) 2014 kishikawa katsumi. All rights reserved.
77
//
88

99
#import <Foundation/Foundation.h>
1010

1111
@interface JSBSuperClassProxy : NSProxy
1212

13+
@property (nonatomic, readonly) id target;
14+
15+
- (id)initWithTarget:(id)target;
16+
1317
@end

Classes/JSBSuperClassProxy.m

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,27 @@
33
// JavaScriptBridge
44
//
55
// Created by kishikawa katsumi on 2014/01/04.
6-
// Copyright (c) 2014年 kishikawa katsumi. All rights reserved.
6+
// Copyright (c) 2014 kishikawa katsumi. All rights reserved.
77
//
88

99
#import "JSBSuperClassProxy.h"
1010

1111
@implementation JSBSuperClassProxy
1212

13+
- (id)initWithTarget:(id)target
14+
{
15+
_target = target;
16+
return self;
17+
}
18+
19+
- (void)forwardInvocation:(NSInvocation *)invocation
20+
{
21+
[invocation performSelector:NSSelectorFromString(@"invokeSuper")];
22+
}
23+
24+
- (NSMethodSignature *)methodSignatureForSelector:(SEL)sel
25+
{
26+
return [self.target methodSignatureForSelector:sel];
27+
}
28+
1329
@end

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ task :default => [:clean, :test]
88

99
desc "clean"
1010
task :clean do
11-
sh "xcodebuild clean -workspace #{WORKSPASE} -scheme #{SCHEME} | xcpretty -c"
11+
sh "xcodebuild clean -workspace #{WORKSPASE} -scheme #{SCHEME}"
1212
end
1313

1414
desc "run unit tests"
1515
task :test do
1616
DESTINATIONS.each do |destination|
17-
sh "xcodebuild test -sdk iphonesimulator -workspace #{WORKSPASE} -scheme #{SCHEME} -configuration Debug -destination \"#{destination}\" | xcpretty -c"
17+
sh "xcodebuild test -sdk iphonesimulator -workspace #{WORKSPASE} -scheme #{SCHEME} -configuration Debug -destination \"#{destination}\""
1818
end
1919
end

0 commit comments

Comments
 (0)