From 1d9958fff7d4530950408162c5065239f75e6547 Mon Sep 17 00:00:00 2001 From: Jung gyun Ahn Date: Thu, 31 Aug 2023 18:18:15 +0900 Subject: [PATCH] Prepare 0.4.6 (#111) * bump to 0.4.6 * fix project file --- Sources/Version.swift | 2 +- Tests/Unit/Util/Helper.swift | 16 ---------------- Yorkie.xcodeproj/project.pbxproj | 2 ++ 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/Sources/Version.swift b/Sources/Version.swift index 6f547e48..e5417a12 100644 --- a/Sources/Version.swift +++ b/Sources/Version.swift @@ -16,4 +16,4 @@ import Foundation -let yorkieVersion = "0.4.4" +let yorkieVersion = "0.4.6" diff --git a/Tests/Unit/Util/Helper.swift b/Tests/Unit/Util/Helper.swift index dd27bc75..857bccaf 100644 --- a/Tests/Unit/Util/Helper.swift +++ b/Tests/Unit/Util/Helper.swift @@ -49,22 +49,6 @@ class TextView { } } -private extension String { - func substring(from: Int, to: Int) -> String { - guard from <= to, from < self.count, from >= 0 else { - return "" - } - - let adaptedTo = min(to, self.count - 1) - - let start = index(self.startIndex, offsetBy: from) - let end = index(self.startIndex, offsetBy: adaptedTo) - let range = start ... end - - return String(self[range]) - } -} - /** * `buildIndexTree` builds an index tree from the given element node. */ diff --git a/Yorkie.xcodeproj/project.pbxproj b/Yorkie.xcodeproj/project.pbxproj index f2042f12..f6c15ef2 100644 --- a/Yorkie.xcodeproj/project.pbxproj +++ b/Yorkie.xcodeproj/project.pbxproj @@ -15,6 +15,7 @@ 9A3CF3E9296583050024E3DD /* StyleOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A3CF3E8296583050024E3DD /* StyleOperation.swift */; }; 9A3CF3ED29666AB30024E3DD /* JSONTextTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A3CF3EC29666AB30024E3DD /* JSONTextTest.swift */; }; 9A3CF3EF2966A7370024E3DD /* CRDTTextTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A3CF3EE2966A7370024E3DD /* CRDTTextTests.swift */; }; + 9A4BC6042AA08D6A00A9D436 /* String+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEA2DA4928F6938700431B61 /* String+Extensions.swift */; }; 9A4DC737292273D200C89478 /* CRDTCounter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A4DC736292273D200C89478 /* CRDTCounter.swift */; }; 9A4DC73A292273F900C89478 /* CRDTCountTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A4DC738292273E400C89478 /* CRDTCountTests.swift */; }; 9A4DC73C2922741200C89478 /* IncreaseOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A4DC73B2922741200C89478 /* IncreaseOperation.swift */; }; @@ -885,6 +886,7 @@ CE8BB74028FE2F000020F62A /* ChangeContextTests.swift in Sources */, CE8ED31F28F566DE009A5419 /* RemoveOperationTests.swift in Sources */, CE8BB74128FE2F030020F62A /* CheckpointTests.swift in Sources */, + 9A4BC6042AA08D6A00A9D436 /* String+Extensions.swift in Sources */, 9A3CF3EF2966A7370024E3DD /* CRDTTextTests.swift in Sources */, CEC631DA28F02BFD00915A85 /* CRDTRootTests.swift in Sources */, CE7B998B28E694FC00D56198 /* ElementRHTTests.swift in Sources */,