From 740acb3dc7f1a1953bb4c5f85dc31084353088c2 Mon Sep 17 00:00:00 2001 From: Joel Gerber Date: Sat, 14 Apr 2018 21:57:36 -0400 Subject: [PATCH 1/4] Sanitize Xcode project version numbers I just realized that I had been calling this project version 1.0 for a while in the Xcode project. I'm rectifying that before bumping the version number to denote CocoaPods support. --- UInt128.xcodeproj/UInt128_Info.plist | 2 +- .../xcshareddata/IDEWorkspaceChecks.plist | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 UInt128.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/UInt128.xcodeproj/UInt128_Info.plist b/UInt128.xcodeproj/UInt128_Info.plist index aa51505..007298d 100644 --- a/UInt128.xcodeproj/UInt128_Info.plist +++ b/UInt128.xcodeproj/UInt128_Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0 + 0.7.0 CFBundleSignature ???? CFBundleVersion diff --git a/UInt128.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/UInt128.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/UInt128.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + From 6e6a66ca1bde9df288038104fa5a2c36be5c182b Mon Sep 17 00:00:00 2001 From: Joel Gerber Date: Sat, 14 Apr 2018 22:00:37 -0400 Subject: [PATCH 2/4] Reformat Podspec, rework text and add comments Getting ready to push to trunk. I wanted to cleanup the Podspec a bit because I'm getting allergic to long lines in my "old" age. --- UInt128.podspec | 58 ++++++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/UInt128.podspec b/UInt128.podspec index bfd3526..a580d53 100644 --- a/UInt128.podspec +++ b/UInt128.podspec @@ -2,37 +2,41 @@ # Be sure to run `pod lib lint UInt128.podspec' to ensure this is a # valid spec before submitting. # -# Any lines starting with a # are optional, but their use is encouraged # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # -Pod::Spec.new do |s| - s.name = 'UInt128' - s.version = '0.7.0' - s.summary = 'A Swift 128-bit Unsigned Integer Data Type conforming to the UnsignedInteger Protocol' +Pod::Spec.new do |spec| + # Project metadata + spec.name = 'UInt128' + spec.version = '0.7.0' + spec.summary = 'A Swift 128-bit Unsigned Integer Data Type' + spec.description = <<~DESC + This library provides a Swift 4.0 compatible 128-bit Unsigned Integer + data type. It includes support for all of the protocols that you would + expect from a native UnsignedInteger type in the Swift standard library. + DESC + spec.homepage = 'https://github.com/Jitsusama/UInt128' + spec.license = { + :type => 'Apache-2.0', + :file => 'LICENSE' + } + spec.author = { + 'Joel Gerber' => 'joel@grrbrr.ca' + } + spec.source = { + :git => 'https://github.com/Jitsusama/UInt128.git', + :tag => spec.version.to_s + } -# This description is used to generate tags and improve search results. -# * Think: What does it do? Why did you write it? What is the focus? -# * Try to keep it short, snappy and to the point. -# * Write the description between the DESC delimiters below. -# * Finally, don't worry about the indent, CocoaPods strips it! + # Where to look for source files + spec.source_files = 'Sources/*' - s.description = <<-DESC - A Swift 128-bit Unsigned Integer Data Type conforming to the UnsignedInteger Protocol. - This library also implements a number of other initializers and properties that Swift's native unsigned integer types support. - DESC + # State supported version of the Swift library + spec.swift_version = "4.0" - s.homepage = 'https://github.com/Jitsusama/UInt128' - s.license = { :type => 'Apache-2.0', :file => 'LICENSE' } - s.author = { 'Joel Gerber' => 'joel@grrbrr.ca' } - s.source = { :git => 'https://github.com/Jitsusama/UInt128.git', :tag => s.version.to_s } - s.swift_version = "4.0" - - s.ios.deployment_target = "8.0" - s.tvos.deployment_target = "9.0" - s.osx.deployment_target = "10.9" - s.watchos.deployment_target = "2.0" - - s.source_files = 'Sources/*' - + # OS deployment targets + spec.ios.deployment_target = "8.0" + spec.tvos.deployment_target = "9.0" + spec.osx.deployment_target = "10.9" + spec.watchos.deployment_target = "2.0" end From 9e1bc52624a0b8f611ebdcb7e86759012c37d1bf Mon Sep 17 00:00:00 2001 From: Joel Gerber Date: Sat, 14 Apr 2018 22:02:23 -0400 Subject: [PATCH 3/4] Bump version number to 0.8.0 As I'm nervous about how CocoaPods handles project tags, I want to cut a new release specific to adding support for CocoaPods. This release only has a single code change related to warnings in Xcode, otherwise, it is just to play it safe when releasing the project to CocoaPods' trunk. --- UInt128.podspec | 2 +- UInt128.xcodeproj/UInt128_Info.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UInt128.podspec b/UInt128.podspec index a580d53..6a832d7 100644 --- a/UInt128.podspec +++ b/UInt128.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |spec| # Project metadata spec.name = 'UInt128' - spec.version = '0.7.0' + spec.version = '0.8.0' spec.summary = 'A Swift 128-bit Unsigned Integer Data Type' spec.description = <<~DESC This library provides a Swift 4.0 compatible 128-bit Unsigned Integer diff --git a/UInt128.xcodeproj/UInt128_Info.plist b/UInt128.xcodeproj/UInt128_Info.plist index 007298d..eec0fd3 100644 --- a/UInt128.xcodeproj/UInt128_Info.plist +++ b/UInt128.xcodeproj/UInt128_Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.7.0 + 0.8.0 CFBundleSignature ???? CFBundleVersion From 1cd7ce283fdffb361a7829fa2cb58e4e66372997 Mon Sep 17 00:00:00 2001 From: Joel Gerber Date: Sat, 14 Apr 2018 22:10:36 -0400 Subject: [PATCH 4/4] Specify CocoaPods support in README.md --- README.md | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 44c2bc9..57d3ed2 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,22 @@ native unsigned integer types support. [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) ## Installation -This library includes Carthage and SPM support out of the box. Reference this git -repository in a Podfile, Cartfile or Package.swift file in order to easily include this library -while also being able to easily track changes. +This library includes Carthage, CocoaPods and SPM support out of the box. +Reference this git repository in a Podfile, Cartfile or Package.swift file in +order to easily include this library while also being able to easily track +changes. -You can also manually copy over the Sources/UInt128.swift file into your project and -it should work great. I've purposely kept this library constrained to a single file in -order to support this use case. +You can also manually copy over the Sources/UInt128.swift file into your project +and it should work great. I've purposely kept this library constrained to a +single file in order to support this use case. ## Usage -Since this library fully implements the UnsignedInteger protocol, you can use this data -type just like any other native UInt data type. For numbers larger than UIntMax, you'll -either want to call the `init(upperBits: UInt64, lowerBits: UInt64)` initializer, or, -use the `init(stringLiteral: String)` initializer to create an instance with a string. -The string can be in binary, octal, decimal or hexadecimal. +Since this library fully implements the UnsignedInteger protocol, you can use +this data type just like any other native UInt data type. For numbers larger +than UIntMax, you'll either want to call the `init(upperBits: UInt64, lowerBits: +UInt64)` initializer, or, use the `init(stringLiteral: String)` initializer to +create an instance with a string. The string can be in binary, octal, decimal +or hexadecimal. For example: @@ -27,7 +29,7 @@ For example: let uInt128ByInteger: UInt128 = 1234 ## Building -This project includes an example Xcode project for building the framework that also includes -a playground that can be utilized for testing things out. This Xcode project can build from -one target a iphone, iphonesimulator or mac os x build. It also includes unit testing and -code coverage. +This project includes an example Xcode project for building the framework that +also includes a playground that can be utilized for testing things out. This +Xcode project can build from one target a iphone, iphonesimulator or macos +build. It also includes unit testing and code coverage.