Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 10, 2015
1 parent 4e79a71 commit eeccb8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
8 changes: 1 addition & 7 deletions NSArray+map.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@ @implementation NSArray (YOLO)
if (o)
mapped[jj++] = o;
}
if ([self respondsToSelector:@selector(initWithObjects:count:)]) {
return [[self.class alloc] initWithObjects:mapped count:jj];
} else {
// some secret implementations of NSArray don't respond to the
// above selector.
return [NSArray arrayWithObjects:mapped count:jj];
}
return [NSArray arrayWithObjects:mapped count:jj];
};
}

Expand Down
6 changes: 1 addition & 5 deletions NSSet+fmap.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ @implementation NSSet (YOLO)
if (o)
mapped[ii++] = o;
}
if ([self respondsToSelector:@selector(initWithObjects:count:)]) {
return [[self.class alloc] initWithObjects:mapped count:ii];
} else {
return [[NSSet alloc] initWithObjects:mapped count:ii];
}
return [[NSSet alloc] initWithObjects:mapped count:ii];
};
}

Expand Down
2 changes: 1 addition & 1 deletion YOLOKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'YOLOKit'
s.version = '11.1.1'
s.version = '11.1.2'
s.source = { :git => 'https://github.com/mxcl/YOLOKit.git', :tag => s.version }
s.requires_arc = true
s.summary = 'A delightful library for enumerating Foundation objects.'
Expand Down

0 comments on commit eeccb8b

Please sign in to comment.