Skip to content

Commit

Permalink
Merge pull request #108 from Imperiopolis/nt-utilities
Browse files Browse the repository at this point in the history
Add categories on UILabel, UITextView, and UITextField to accept a BONTextable object
  • Loading branch information
ZevEisenberg committed Mar 16, 2016
2 parents 745597c + 882911a commit a55b8bd
Show file tree
Hide file tree
Showing 36 changed files with 808 additions and 200 deletions.
15 changes: 12 additions & 3 deletions BonMot.podspec
Expand Up @@ -14,8 +14,17 @@ Pod::Spec.new do |s|
s.platform = :ios, '8.0'
s.requires_arc = true

s.source_files = 'Pod', 'Pod/Classes/**/*'
s.private_header_files = "Pod/Classes/*_Private.h"

s.frameworks = 'UIKit'

s.default_subspec = 'Core'

s.subspec 'Core' do |sp|
sp.source_files = 'Pod', 'Pod/Classes/**/*'
sp.private_header_files = "Pod/Classes/*_Private.h"
end

s.subspec 'UI' do |sp|
sp.source_files = 'Pod/UI', 'Pod/UI/Classes/**/*'
sp.dependency 'BonMot/Core'
end
end
12 changes: 8 additions & 4 deletions Example/BonMot.xcodeproj/project.pbxproj
Expand Up @@ -19,7 +19,7 @@
6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; };
6836AD13A829A45AE2425588 /* Pods_BonMot_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CFD6D97A946F2FEF294F4BBB /* Pods_BonMot_Tests.framework */; };
CD6DEFE11BF6ADF900676E2D /* BONBaseTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = CD6DEFD61BF6ADF900676E2D /* BONBaseTestCase.m */; };
CD6DEFE31BF6ADF900676E2D /* BONChainableTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = CD6DEFD71BF6ADF900676E2D /* BONChainableTestCase.m */; };
CD6DEFE31BF6ADF900676E2D /* BONTextableTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = CD6DEFD71BF6ADF900676E2D /* BONTextableTestCase.m */; };
CD6DEFE51BF6ADF900676E2D /* BONChainEmptyStringTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = CD6DEFD81BF6ADF900676E2D /* BONChainEmptyStringTestCase.m */; };
CD6DEFE71BF6ADF900676E2D /* BONDebugStringTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = CD6DEFD91BF6ADF900676E2D /* BONDebugStringTestCase.m */; };
CD6DEFE91BF6ADF900676E2D /* BONDictionaryEqualityTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = CD6DEFDA1BF6ADF900676E2D /* BONDictionaryEqualityTestCase.m */; };
Expand Down Expand Up @@ -63,6 +63,7 @@
CD6DF0591BF6B7AF00676E2D /* DashedHairlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = CD6DF0581BF6B7AF00676E2D /* DashedHairlineView.m */; };
CD6DF05A1BF6B98500676E2D /* NSDictionary+BONEquality.m in Sources */ = {isa = PBXBuildFile; fileRef = CD6DF04F1BF6B53100676E2D /* NSDictionary+BONEquality.m */; };
CDE658581C24ADD8009C7D09 /* BONUnderlineAndStrikethroughTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE658571C24ADD8009C7D09 /* BONUnderlineAndStrikethroughTestCase.m */; };
EC433DB61C88BBDE001B3ABE /* BONUtilitiesTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = EC433DB41C88BBDB001B3ABE /* BONUtilitiesTestCase.m */; };
F6E9CEC93164745FB8BEB8FC /* Pods_BonMot_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E8BB0552A748FFBA2BD0BE4 /* Pods_BonMot_Example.framework */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -98,7 +99,7 @@
AEA43FE0E796D75B40E7EF87 /* Pods-BonMot_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BonMot_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-BonMot_Tests/Pods-BonMot_Tests.release.xcconfig"; sourceTree = "<group>"; };
CD6DEFD51BF6ADF900676E2D /* BONBaseTestCase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BONBaseTestCase.h; sourceTree = "<group>"; };
CD6DEFD61BF6ADF900676E2D /* BONBaseTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BONBaseTestCase.m; sourceTree = "<group>"; };
CD6DEFD71BF6ADF900676E2D /* BONChainableTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BONChainableTestCase.m; sourceTree = "<group>"; };
CD6DEFD71BF6ADF900676E2D /* BONTextableTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BONTextableTestCase.m; sourceTree = "<group>"; };
CD6DEFD81BF6ADF900676E2D /* BONChainEmptyStringTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BONChainEmptyStringTestCase.m; sourceTree = "<group>"; };
CD6DEFD91BF6ADF900676E2D /* BONDebugStringTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BONDebugStringTestCase.m; sourceTree = "<group>"; };
CD6DEFDA1BF6ADF900676E2D /* BONDictionaryEqualityTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BONDictionaryEqualityTestCase.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -160,6 +161,7 @@
CDE658571C24ADD8009C7D09 /* BONUnderlineAndStrikethroughTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BONUnderlineAndStrikethroughTestCase.m; sourceTree = "<group>"; };
CFD6D97A946F2FEF294F4BBB /* Pods_BonMot_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_BonMot_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
EBE7037465B0F6F184875C40 /* Pods-BonMot_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BonMot_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-BonMot_Example/Pods-BonMot_Example.release.xcconfig"; sourceTree = "<group>"; };
EC433DB41C88BBDB001B3ABE /* BONUtilitiesTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BONUtilitiesTestCase.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -268,7 +270,7 @@
children = (
CD6DEFD51BF6ADF900676E2D /* BONBaseTestCase.h */,
CD6DEFD61BF6ADF900676E2D /* BONBaseTestCase.m */,
CD6DEFD71BF6ADF900676E2D /* BONChainableTestCase.m */,
CD6DEFD71BF6ADF900676E2D /* BONTextableTestCase.m */,
CD6DEFD81BF6ADF900676E2D /* BONChainEmptyStringTestCase.m */,
CD6DEFD91BF6ADF900676E2D /* BONDebugStringTestCase.m */,
CD6DEFDA1BF6ADF900676E2D /* BONDictionaryEqualityTestCase.m */,
Expand All @@ -278,6 +280,7 @@
CD6DEFDE1BF6ADF900676E2D /* BONTextAlignmentTestCase.m */,
CD6DEFDF1BF6ADF900676E2D /* BONTrackingTestCase.m */,
CDE658571C24ADD8009C7D09 /* BONUnderlineAndStrikethroughTestCase.m */,
EC433DB41C88BBDB001B3ABE /* BONUtilitiesTestCase.m */,
6003F5B6195388D20070C39A /* Supporting Files */,
CD6DF0481BF6B37E00676E2D /* DummyAssetClass.h */,
CD6DF0491BF6B37E00676E2D /* DummyAssetClass.m */,
Expand Down Expand Up @@ -598,13 +601,14 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EC433DB61C88BBDE001B3ABE /* BONUtilitiesTestCase.m in Sources */,
CD6DF05A1BF6B98500676E2D /* NSDictionary+BONEquality.m in Sources */,
CD6DF04B1BF6B37E00676E2D /* DummyAssetClass.m in Sources */,
CD6DEFE51BF6ADF900676E2D /* BONChainEmptyStringTestCase.m in Sources */,
CD6DEFED1BF6ADF900676E2D /* BONPropertyClobberingTestCase.m in Sources */,
CD6DEFF11BF6ADF900676E2D /* BONTextAlignmentTestCase.m in Sources */,
CD6DEFE11BF6ADF900676E2D /* BONBaseTestCase.m in Sources */,
CD6DEFE31BF6ADF900676E2D /* BONChainableTestCase.m in Sources */,
CD6DEFE31BF6ADF900676E2D /* BONTextableTestCase.m in Sources */,
CDE658581C24ADD8009C7D09 /* BONUnderlineAndStrikethroughTestCase.m in Sources */,
CD6DEFF31BF6ADF900676E2D /* BONTrackingTestCase.m in Sources */,
CD6DEFE91BF6ADF900676E2D /* BONDictionaryEqualityTestCase.m in Sources */,
Expand Down
2 changes: 2 additions & 0 deletions Example/Podfile
Expand Up @@ -3,8 +3,10 @@ use_frameworks!

target 'BonMot_Example', :exclusive => true do
pod "BonMot", :path => "../"
pod "BonMot/UI", :path => "../"
end

target 'BonMot_Tests', :exclusive => true do
pod "BonMot", :path => "../"
pod "BonMot/UI", :path => "../"
end
11 changes: 8 additions & 3 deletions Example/Podfile.lock
@@ -1,14 +1,19 @@
PODS:
- BonMot (2.4.1)
- BonMot (2.4.1):
- BonMot/Core (= 2.4.1)
- BonMot/Core (2.4.1)
- BonMot/UI (2.4.1):
- BonMot/Core

DEPENDENCIES:
- BonMot (from `../`)
- BonMot/UI (from `../`)

EXTERNAL SOURCES:
BonMot:
:path: "../"
:path: ../

SPEC CHECKSUMS:
BonMot: 6a9a314f50e60e71a48d5ec63bc44412ec520e19
BonMot: 90e8f2228c5174697f928fdfc9f14b937fdf0ec7

COCOAPODS: 0.39.0
1 change: 0 additions & 1 deletion Example/Pods/Headers/Private/BonMot/BONChainable.h

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Example/Pods/Headers/Private/BonMot/BONTextable.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Example/Pods/Headers/Private/BonMot/BonMot-UI.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 24 additions & 6 deletions Example/Pods/Local Podspecs/BonMot.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a55b8bd

Please sign in to comment.