Skip to content

Commit 79b9dd2

Browse files
authored
Merge pull request #13 from tigerpixel/development
Patch to Ensure that builds with latest Swift Tools.
2 parents ce0663f + bc5f9c9 commit 79b9dd2

14 files changed

Lines changed: 37 additions & 14 deletions

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,10 @@
4848
* Remove string copies using Swift 5 string updates.
4949
* Remove some typealiases masking Swift types for transparency.
5050
* Increase unit test readability.
51+
52+
## Version 2.0.1
53+
54+
### *Released 2019-08-20*
55+
* Update to Swift Package Manager to make compatible with Swift 5
56+
* This version is only required is using SPM
57+

Package.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// swift-tools-version:5.0
12
//
23
// Package.swift
34
// ParserCombinator
@@ -11,5 +12,12 @@
1112
import PackageDescription
1213

1314
let package = Package(
14-
name: "ParserCombinator"
15+
name: "ParserCombinator",
16+
products: [
17+
.library(name: "ParserCombinator", targets: ["ParserCombinator"])
18+
],
19+
targets: [
20+
.target(name: "ParserCombinator"),
21+
.testTarget(name: "ParserCombinatorTests", dependencies: ["ParserCombinator"])
22+
]
1523
)

ParserCombinator.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Pod::Spec.new do |s|
88
s.name = 'ParserCombinator'
9-
s.version = '2.0.0'
9+
s.version = '2.0.1'
1010
s.summary = 'Exquisitely simple functional parsing in Swift.'
1111
s.description = <<-DESC
1212
A simple parser combinator, created in Swift. Functional parser combinators can be extremely useful but can also be difficult to understand. ParserCombinator attempts to strip this back and create a simple and user friendly way to parse complex strings into other objects. Technical terms, like 'monad', are avoided or explained if necessary and docs are provided in plain English, with examples.
@@ -24,5 +24,5 @@ A simple parser combinator, created in Swift. Functional parser combinators can
2424
s.tvos.deployment_target = '9.0'
2525
s.swift_version = '5.0'
2626

27-
s.source_files = 'Source/**/*.swift'
27+
s.source_files = 'Sources/**/*.swift'
2828
end

ParserCombinator.xcodeproj/project.pbxproj

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
children = (
217217
0C1242081E7B19BD00457CBA /* Docs */,
218218
0C07C29D1E5251BA00A921A8 /* ParserCombinator */,
219-
0C1242061E7B19A000457CBA /* Source */,
219+
0C1242061E7B19A000457CBA /* Sources */,
220220
0C1242071E7B19B700457CBA /* Tests */,
221221
0C07C29C1E5251BA00A921A8 /* Products */,
222222
);
@@ -245,18 +245,12 @@
245245
path = ParserCombinator;
246246
sourceTree = "<group>";
247247
};
248-
0C1242061E7B19A000457CBA /* Source */ = {
248+
0C1242061E7B19A000457CBA /* Sources */ = {
249249
isa = PBXGroup;
250250
children = (
251-
0C12421A1E7B1AA400457CBA /* Parser.swift */,
252-
0C12421B1E7B1AA400457CBA /* Parser+Run.swift */,
253-
0C3C65B41E85B96D009ED072 /* Parser+Combinators.swift */,
254-
0C131CDE1E84A99B00C60A38 /* ParserOperators.swift */,
255-
0C12421C1E7B1AA400457CBA /* ParseResult.swift */,
256-
0C1437901E7CC990006E3D06 /* ConvienienceParsers */,
257-
0C14378E1E7CC94E006E3D06 /* FoundationExtensions */,
251+
0C2ACB63230A90A10091366A /* ParserCombinator */,
258252
);
259-
path = Source;
253+
path = Sources;
260254
sourceTree = "<group>";
261255
};
262256
0C1242071E7B19B700457CBA /* Tests */ = {
@@ -334,6 +328,20 @@
334328
name = ConvenienceParsers;
335329
sourceTree = "<group>";
336330
};
331+
0C2ACB63230A90A10091366A /* ParserCombinator */ = {
332+
isa = PBXGroup;
333+
children = (
334+
0C12421A1E7B1AA400457CBA /* Parser.swift */,
335+
0C12421B1E7B1AA400457CBA /* Parser+Run.swift */,
336+
0C3C65B41E85B96D009ED072 /* Parser+Combinators.swift */,
337+
0C131CDE1E84A99B00C60A38 /* ParserOperators.swift */,
338+
0C12421C1E7B1AA400457CBA /* ParseResult.swift */,
339+
0C1437901E7CC990006E3D06 /* ConvienienceParsers */,
340+
0C14378E1E7CC94E006E3D06 /* FoundationExtensions */,
341+
);
342+
path = ParserCombinator;
343+
sourceTree = "<group>";
344+
};
337345
/* End PBXGroup section */
338346

339347
/* Begin PBXHeadersBuildPhase section */

ParserCombinator/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.0.0</string>
18+
<string>2.0.1</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSHumanReadableCopyright</key>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)