Skip to content

Commit

Permalink
Update to BlocksKit 2.0
Browse files Browse the repository at this point in the history
Relates to issue #1
  • Loading branch information
humblehacker committed Jan 22, 2014
1 parent dd236a5 commit e7ba63e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
4 changes: 2 additions & 2 deletions AutoLayoutDSL.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "AutoLayoutDSL"
s.version = "0.1.0"
s.version = "0.1.1"
s.summary = "A straightforward DSL for specifying Cocoa Auto Layout constraints."
s.description = <<-DESC
AutoLayoutDSL allows you to turn this:
Expand Down Expand Up @@ -28,7 +28,7 @@ Pod::Spec.new do |s|
s.requires_arc = true
s.source_files = 'Classes'
s.resources = 'Assets'
s.dependency 'BlocksKit', '~> 1.8'
s.dependency 'BlocksKit', '~> 2.0'
s.xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++11',
'CLANG_CXX_LIBRARY' => 'libc++'
Expand Down
2 changes: 1 addition & 1 deletion Classes/ConstraintGroup.mm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

NSString *ConstraintGroup::groupName()
{
return [_groups reduce:nil withBlock:^id(NSString *groupName, NSString *groupItem)
return [_groups bk_reduce:nil withBlock:^id(NSString *groupName, NSString *groupItem)
{
return groupName ? [groupName stringByAppendingFormat:@".%@", groupItem] : groupItem;
}];
Expand Down
6 changes: 3 additions & 3 deletions Classes/NSObject+AutoLayoutDSL.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
// Copyright 2013 David Whetstone. All rights reserved.
//

#import <BlocksKit/NSObject+AssociatedObjects.h>
#import <BlocksKit/NSObject+BKAssociatedObjects.h>

static void * const kLayoutIDKey;

@implementation NSObject (AutoLayoutDSL)

- (void)setLayoutID:(NSString *)layoutID
{
[self associateValue:layoutID withKey:&kLayoutIDKey];
[self bk_associateValue:layoutID withKey:&kLayoutIDKey];
}

- (NSString *)layoutID
{
return [self associatedValueForKey:&kLayoutIDKey];
return [self bk_associatedValueForKey:&kLayoutIDKey];
}

@end
Expand Down
34 changes: 34 additions & 0 deletions Project/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
PODS:
- BlocksKit (2.0.0):
- BlocksKit/All
- BlocksKit/All (2.0.0):
- BlocksKit/Core
- BlocksKit/DynamicDelegate
- BlocksKit/MessageUI
- BlocksKit/UIKit
- BlocksKit/Core (2.0.0)
- BlocksKit/DynamicDelegate (2.0.0):
- libffi
- BlocksKit/MessageUI (2.0.0):
- BlocksKit/DynamicDelegate
- BlocksKit/UIKit (2.0.0):
- BlocksKit/DynamicDelegate
- Kiwi (2.2.3):
- Kiwi/SenTestingKit
- Kiwi/ARC (2.2.3)
- Kiwi/NonARC (2.2.3)
- Kiwi/SenTestingKit (2.2.3):
- Kiwi/ARC
- Kiwi/NonARC
- libffi (3.0.13)

DEPENDENCIES:
- BlocksKit (~> 2.0)
- Kiwi

SPEC CHECKSUMS:
BlocksKit: b29ee3f28ba06a09f5c64987314ce5b75b2c3962
Kiwi: 04c51e880831d291748ec702d42c4101f7eb95c9
libffi: 64ef39353e747bb2b25e1026afd96a157bf9231c

COCOAPODS: 0.29.0

0 comments on commit e7ba63e

Please sign in to comment.