IntrepidPursuits / swift-wisdom

A collection of additions to the Swift Standard Library created by Intrepid Pursuits developers
MIT License
39 stars 14 forks source link

Updated Version Format #142

Closed paulrolfe closed 7 years ago

paulrolfe commented 7 years ago

Summary Making the Version type act more like semver.org recommends. While leaving some wiggle room for some common mistakes when it comes to versioning. The typical errors you might see which we would allow here are:

See http://semver.org for reference.

Why this is needed With the old implementation the following issues arose:

What other changes were made

tzm41 commented 7 years ago

Tested on Xcode 9 as well?

paulrolfe commented 7 years ago

@tzm41 No, this is an update using swift 3. Swift 4 conversion can happen later -- this particular change is needed in a swift 3 project.

tzm41 commented 7 years ago

@paulrolfe We have already updated Swift Wisdom to support Swift 3.2 / Xcode 9: https://github.com/IntrepidPursuits/swift-wisdom/pull/140. And for example BMAP Swift 3.2 will be dependent on Swift Wisdom being Xcode 9 compatible. Just want to make sure that this PR doesn't break Xcode 9 compatibility.

paulrolfe commented 7 years ago

@tzm41 Ah, understood. Didn't realize we were in 3.2 already.

paulrolfe commented 7 years ago

@tzm41 Confirmed that it works in Xcode9. ✅

tzm41 commented 7 years ago

@paulrolfe awesome! Thanks for checking!

ghost commented 7 years ago
4 Warnings
:warning: Array+UtilitiesTests.swift#L100 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L100: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
XCTAssert(testArray[ip_safe: 3] == 4)
:warning: Array+UtilitiesTests.swift#L101 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L101: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
XCTAssert(testArray[ip_safe: 8] == 9)
:warning: Array+UtilitiesTests.swift#L102 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L102: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
XCTAssertNil(testArray[ip_safe: -1])
:warning: Array+UtilitiesTests.swift#L103 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L103: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
XCTAssertNil(testArray[ip_safe: 9])
1 Message
:book: Executed 167 tests, with 0 failures (0 unexpected) in 0.605 (0.688) seconds

Generated by :no_entry_sign: Danger