Skip to content

Commit 42c7dfc

Browse files
authored
Merge pull request #3 from segmentio/bsneed/rename
Rename to JSONSafeEncoding to avoid ambiguity between the class/module.
2 parents 8b70dc8 + 8bfc30a commit 42c7dfc

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

Package.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "JSONSafeEncoder",
7+
name: "JSONSafeEncoding",
88
platforms: [
99
.macOS("10.15"),
1010
.iOS("13.0"),
11-
.tvOS("11.0"),
11+
.tvOS("13.0"),
1212
.watchOS("7.1")
1313
],
1414
products: [
1515
// Products define the executables and libraries a package produces, making them visible to other packages.
1616
.library(
17-
name: "JSONSafeEncoder",
18-
targets: ["JSONSafeEncoder"]),
17+
name: "JSONSafeEncoding",
18+
targets: ["JSONSafeEncoding"]),
1919
],
2020
targets: [
2121
// Targets are the basic building blocks of a package, defining a module or a test suite.
2222
// Targets can depend on other targets in this package and products from dependencies.
2323
.target(
24-
name: "JSONSafeEncoder"),
24+
name: "JSONSafeEncoding"),
2525
.testTarget(
26-
name: "JSONSafeEncoderTests",
27-
dependencies: ["JSONSafeEncoder"]),
26+
name: "JSONSafeEncodingTests",
27+
dependencies: ["JSONSafeEncoding"]),
2828
]
2929
)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# JSONSafeEncoder for Swift
1+
# JSONSafeEncoding for Swift
22

33
This library is a direct copy of JSONEncoder and it's associated types. It expands upon JSONEncoder's `nonConformingFloatEncodingStrategy` to give developers more options in how to handle NaN / Infinity / -Infinity values.
44

File renamed without changes.
File renamed without changes.
File renamed without changes.

Tests/JSONSafeEncoderTests/JSONSafeEncoderTests.swift renamed to Tests/JSONSafeEncodingTests/JSONSafeEncoderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import XCTest
2-
@testable import JSONSafeEncoder
2+
@testable import JSONSafeEncoding
33

44
final class JSONSafeEncoderTests: XCTestCase {
55
func testRegularEncoding() throws {

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ fi
1414

1515
echo "Removing old files ..."
1616

17-
rm JSONSafeEncoder.zip
18-
rm JSONSafeEncoder.sha256
17+
rm JSONSafeEncoding.zip
18+
rm JSONSafeEncoding.sha256
1919

2020
echo "Building XCFrameworks ..."
2121

2222
swift create-xcframework --clean --platform ios --platform macos --platform maccatalyst --platform tvos --platform watchos --stack-evolution --zip
2323

24-
echo "Done."
24+
echo "Done."

release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
PROJECT_NAME="JSONSafeEncoder-Swift"
4-
PRODUCT_NAME="JSONSafeEncoder"
3+
PROJECT_NAME="JSONSafeEncoding-Swift"
4+
PRODUCT_NAME="JSONSafeEncoding"
55

66
LOWER_PRODUCT_NAME="$(echo ${PRODUCT_NAME} | tr '[:upper:]' '[:lower:]')"
77

@@ -133,4 +133,4 @@ rm $tempFile
133133

134134
# upload the release
135135
gh release upload $newVersion ${PRODUCT_NAME}.zip
136-
gh release upload $newVersion ${PRODUCT_NAME}.sha256
136+
gh release upload $newVersion ${PRODUCT_NAME}.sha256

0 commit comments

Comments
 (0)