forked from atomicobject/objection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
283 changed files
with
7,819 additions
and
5,667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: objective-c | ||
before_install: | ||
- gem install xcpretty | ||
script: make ci | xcpretty -c | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Welcome to Kiwi! | ||
|
||
We're building a BDD library that is exquisitely simple to setup and use, | ||
and we'd love your help! | ||
|
||
## Reporting Bugs | ||
|
||
Kiwi currently uses two channels for reporting bugs: | ||
|
||
1. If Kiwi isn't working as you'd expect it to, but you're not sure whether | ||
you're using it correctly, please send a message to the | ||
[Kiwi Google group](https://groups.google.com/forum/#!forum/kiwi-bdd). | ||
|
||
Once your issue has been resolved, please consider contributing to the | ||
[Wiki](https://github.com/allending/Kiwi/wiki) to help people | ||
who might experience similar issues in the future. | ||
|
||
2. If you're sure that you're using Kiwi correctly, but Kiwi still does not | ||
behave as you'd expect it to, you may have found a bug. If no one | ||
has [already reported the issue](https://github.com/allending/Kiwi/issues?state=open), | ||
please [submit a new issue](https://github.com/allending/Kiwi/issues/new), | ||
and include any and all information maintainers might need to fix the problem. | ||
It's not easy to fix bugs, but detailed reports help! | ||
|
||
## Pull Requests | ||
|
||
Our work flow is a typical GitHub flow, where contributors fork the | ||
[Kiwi repository](https://github.com/allending/Kiwi), make their changes on branch, | ||
and submit a pull request. | ||
|
||
Please include a description of your changes with your pull request. | ||
All pull requests that involve changes to the source code should include | ||
tests that prove the changes behave as stated in the pull request message. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KWAny.h" | ||
|
||
@implementation KWAny | ||
|
||
#pragma mark - Initializing | ||
|
||
+ (id)any { | ||
static KWAny *sharedAny = nil; | ||
static dispatch_once_t onceToken; | ||
dispatch_once(&onceToken, ^{ | ||
sharedAny = [self new]; | ||
|
||
}); | ||
return sharedAny; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
|
||
@interface KWBlock : NSObject | ||
|
||
#pragma mark - Initializing | ||
- (id)initWithBlock:(void (^)(void))block; | ||
|
||
+ (id)blockWithBlock:(void (^)(void))block; | ||
|
||
#pragma mark - Calling Blocks | ||
|
||
- (void)call; | ||
|
||
@end | ||
|
||
#pragma mark - Creating Blocks | ||
|
||
KWBlock *theBlock(void (^block)(void)); | ||
KWBlock *lambda(void (^block)(void)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KWBlock.h" | ||
|
||
@interface KWBlock() | ||
|
||
#pragma mark - Properties | ||
|
||
@property (nonatomic, readonly, copy) void (^block)(void); | ||
|
||
@end | ||
|
||
@implementation KWBlock | ||
|
||
#pragma mark - Initializing | ||
|
||
- (id)initWithBlock:(void (^)(void))block { | ||
self = [super init]; | ||
if (self) { | ||
_block = [block copy]; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
+ (id)blockWithBlock:(void (^)(void))aBlock { | ||
return [[self alloc] initWithBlock:aBlock]; | ||
} | ||
|
||
#pragma mark - Calling Blocks | ||
|
||
- (void)call { | ||
self.block(); | ||
} | ||
|
||
@end | ||
|
||
#pragma mark - Creating Blocks | ||
|
||
KWBlock *theBlock(void (^block)(void)) { | ||
return lambda(block); | ||
} | ||
|
||
KWBlock *lambda(void (^block)(void)) { | ||
return [KWBlock blockWithBlock:block]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#import "KWMessageSpying.h" | ||
|
||
@interface KWCaptureSpy : NSObject<KWMessageSpying> | ||
|
||
@property (nonatomic, strong, readonly) id argument; | ||
|
||
- (id)initWithArgumentIndex:(NSUInteger)index; | ||
|
||
@end |
Oops, something went wrong.