From 894759101e5d584b0fc0b478868b2d19eea957f5 Mon Sep 17 00:00:00 2001 From: Caleb Kleveter Date: Sat, 5 May 2018 11:21:49 -0500 Subject: [PATCH 1/3] Created internal String(_:NSMutableString) initializer --- Sources/Manifest/Internal.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/Manifest/Internal.swift b/Sources/Manifest/Internal.swift index ed6da49..5a64e70 100644 --- a/Sources/Manifest/Internal.swift +++ b/Sources/Manifest/Internal.swift @@ -1,3 +1,13 @@ +import Foundation + +extension String { + + /// Adds Linux compatibility for the `String(_:)` initializer. + init(_ mutableString: NSMutableString) { + self = mutableString.description + } +} + internal var testManifest = """ // swift-tools-version:4.0 From eba688812637737f92ab082b40d1c5999521cfa2 Mon Sep 17 00:00:00 2001 From: Caleb Kleveter Date: Sat, 5 May 2018 11:26:19 -0500 Subject: [PATCH 2/3] Added CHANGELOG entry to version 0.4.2 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 138fb98..91c331a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [0.4.2] 2018-05-05 + +### Fixed +- Fixed Linux support for `NSMutableString` to `String` initializer. + ## [0.4.1] 2018-05-04 ### Fixed From 8f6f549dc087aa1faf374bacb8ac1fd64dcfa4a5 Mon Sep 17 00:00:00 2001 From: Caleb Kleveter Date: Sat, 5 May 2018 11:28:10 -0500 Subject: [PATCH 3/3] Changed String(_:) init to use String(describing:) internally --- Sources/Manifest/Internal.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Manifest/Internal.swift b/Sources/Manifest/Internal.swift index 5a64e70..eda25dd 100644 --- a/Sources/Manifest/Internal.swift +++ b/Sources/Manifest/Internal.swift @@ -4,7 +4,7 @@ extension String { /// Adds Linux compatibility for the `String(_:)` initializer. init(_ mutableString: NSMutableString) { - self = mutableString.description + self = String(describing: mutableString) } }