Skip to content

Commit 550e8b5

Browse files
committed
Overhaul everything
1 parent fa2e77b commit 550e8b5

File tree

8 files changed

+300
-162
lines changed

8 files changed

+300
-162
lines changed

.github/CODE_OF_CONDUCT.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This project adopts Swift's code of conduct: https://www.swift.org/code-of-conduct/

.github/CONTRIBUTING.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Contributing
2+
3+
This document covers how you can report any issues you find or contribute with bug fixes and new features.
4+
5+
## Reporting Issues
6+
7+
Go ahead and open a new issue [on the repo](https://github.com/gwynne/swift-semver/issues/new). The owners will be notified and we should get back to you shortly.
8+
9+
## Security Issues
10+
11+
If you discover a security issue, please follow [the security procedure](https://github.com/gwynne/swift-semver/security/policy). Please **do not** publicly report an issue until it has been fixed. The disclosure policy and timelines are availble in the policy document.
12+
13+
## Pull Requests
14+
15+
We are glad to accept and review pull requests for bug fixes and new features.

.github/SECURITY.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
At the time of this writing, no "stable" versions have yet been released, and support is provided only for the most recent tagged prerelease version.
6+
7+
Should this file not yet be updated after this project reaches 1.0, the support policy is to support the most recent major release only until and unless otherwise specified.
8+
9+
| Version | Supported |
10+
| :-------: | :------------------: |
11+
| - | - |
12+
13+
## Reporting a Vulnerability
14+
15+
This project asks that known and suspected vulnerabilities be privately and responsibly disclosed by [filling out a vulnerability report](https://github.com/gwynne/swift-semver/security/advisories/new) on Github[^1].
16+
17+
[^1]: See [Github's official documentation of the vulnerability report feature](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) for additional privacy and safety details.
18+
19+
**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.**

Package.swift

+29-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.7
1+
// swift-tools-version:5.8
22
//===----------------------------------------------------------------------===//
33
//
44
// This source file is part of the swift-semver open source project
@@ -13,14 +13,40 @@
1313
//===----------------------------------------------------------------------===//
1414
import PackageDescription
1515

16+
let commonSwiftSettings: [PackageDescription.SwiftSetting] = [
17+
// We deliberately choose to opt in to several upcoming language features.
18+
.enableUpcomingFeature("ConciseMagicFile"),
19+
.enableUpcomingFeature("ForwardTrailingClosures"),
20+
.enableUpcomingFeature("ExistentialAny"),
21+
.enableUpcomingFeature("BareSlashRegexLiterals"),
22+
.enableExperimentalFeature("StrictConcurrency=complete"),
23+
]
24+
1625
let package = Package(
1726
name: "swift-semver",
27+
platforms: [
28+
.macOS(.v13),
29+
.macCatalyst(.v16),
30+
.iOS(.v16),
31+
.watchOS(.v9),
32+
.tvOS(.v16),
33+
],
1834
products: [
1935
.library(name: "SwiftSemver", targets: ["SwiftSemver"]),
2036
],
2137
dependencies: [],
2238
targets: [
23-
.target(name: "SwiftSemver", dependencies: []),
24-
.testTarget(name: "SwiftSemverTests", dependencies: [.target(name: "SwiftSemver")]),
39+
.target(
40+
name: "SwiftSemver",
41+
dependencies: [],
42+
swiftSettings: commonSwiftSettings
43+
),
44+
.testTarget(
45+
name: "SwiftSemverTests",
46+
dependencies: [
47+
.target(name: "SwiftSemver"),
48+
],
49+
swiftSettings: commonSwiftSettings
50+
),
2551
]
2652
)

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
# SwiftSemver
22

3+
<p align="center">
4+
<a href="LICENSE"><img src="https://design.vapor.codes/images/mitlicense.svg" alt="MIT License"></a>
5+
<a href="https://github.com/gwynne/swift-semver/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/gwynne/swift-semver/test.yml?event=push&amp;style=plastic&amp;logo=github&amp;label=tests&amp;logoColor=%23ccc" alt="Continuous Integration"></a>
6+
<a href="https://codecov.io/github/gwynne/swift-semver"><img src="https://img.shields.io/codecov/c/github/gwynne/swift-semver?style=plastic&amp;logo=codecov&amp;label=coverage&amp;token=GB8LS6ELKA"></a>
7+
<a href="https://swift.org"><img src="https://img.shields.io/badge/swift-5.8%2b-white?style=plastic&amp;logoColor=%23f07158&amp;labelColor=gray&amp;color=%23f07158&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI%2BPHBhdGggZD0iTSA2LDI0YyAtMywwIC02LC0zIC02LC02diAtMTJjIDAsLTMgMywtNiA2LC02aCAxMmMgMywwIDYsMyA2LDZ2IDEyYyAwLDMgLTMsNiAtNiw2eiIgZmlsbD0iI2YwNzE1OCIvPjxwYXRoIGQ9Ik0gMTMuNTUsMy40YyA0LjE1LDIuMzkgNi4zLDcuNTMgNS4zLDExLjUgMS45NSwyLjggMS42NSw1LjE3IDEuMzgsNC42NiAtMS4yLC0yLjMzIC0zLjMzLC0xLjQyIC00LjM3LC0wLjcxIC0zLjksMS44MSAtMTAuMTYsMC4xOCAtMTMuNDYsLTUuMDMgMi45OCwyLjIgNy4yLDMuMTUgMTAuMywxLjI1IC00LjYsLTMuNTcgLTguNSwtOS4xNyAtOC41LC05LjI4IDIuMjgsMi4xNSA1Ljk4LDQuODQgNy4zLDUuNzEgLTIuOCwtMy4xIC01LjMsLTYuNjUgLTUuMiwtNi42NSAyLjczLDIuNjggNS42Niw1LjIgOC45LDcuMiAwLjM3LC0wLjc5IDEuNDMsLTQuNDcgLTEuNjUsLTguNjV6IiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg%3D%3D" alt="Swift 5.8+"></a>
8+
</p>
9+
310
A small library which provides a `SemanticVersion` type, containing a complete implementation of the grammar (both parsing and serialization) and precedence behaviors described by [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html).

0 commit comments

Comments
 (0)