Skip to content

Commit f59be5a

Browse files
author
Andrea Scuderi
committed
Rename swift-sprinter to swift-serverless
1 parent 45d8ac7 commit f59be5a

17 files changed

+35
-34
lines changed

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ information to effectively respond to your bug report or contribution.
1111

1212
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
1313

14-
When filing an issue, please check [existing open](https://github.com/swift-sprinter/swift-sls-adapter/issues), or [recently closed](https://github.com/swift-sprinter/swift-sls-adapter/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
14+
When filing an issue, please check [existing open](https://github.com/swift-serverless/swift-sls-adapter/issues), or [recently closed](https://github.com/swift-serverless/swift-sls-adapter/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
1515
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
1616

1717
* A reproducible test case or series of steps
@@ -41,7 +41,7 @@ GitHub provides additional documents on [forking a repository](https://help.gith
4141

4242

4343
## Finding contributions to work on
44-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/swift-sprinter/swift-sls-adapter/labels/help%20wanted) issues is a great place to start.
44+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/swift-serverless/swift-sls-adapter/labels/help%20wanted) issues is a great place to start.
4545

4646

4747
## Code of Conduct
@@ -57,6 +57,6 @@ If the security issue is related to Swift notify [Apple Security](https://suppor
5757

5858
## Licensing
5959

60-
See the [LICENSE](https://github.com/swift-sprinter/swift-sls-adapter/blob/master/LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
60+
See the [LICENSE](https://github.com/swift-serverless/swift-sls-adapter/blob/master/LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
6161

6262
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# swift-sls-adapter
2-
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fswift-sprinter%2Fswift-sls-adapter%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/swift-sprinter/swift-sls-adapter) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fswift-sprinter%2Fswift-sls-adapter%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/swift-sprinter/swift-sls-adapter)
3-
[![Dist](https://github.com/swift-sprinter/swift-sls-adapter/actions/workflows/swift-test.yml/badge.svg)](https://github.com/swift-sprinter/swift-sls-adapter/actions/workflows/swift-test.yml)
2+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fswift-serverless%2Fswift-sls-adapter%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/swift-serverless/swift-sls-adapter) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fswift-serverless%2Fswift-sls-adapter%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/swift-serverless/swift-sls-adapter) [![Swift test](https://github.com/swift-serverless/swift-sls-adapter/actions/workflows/swift-test.yml/badge.svg)](https://github.com/swift-serverless/swift-sls-adapter/actions/workflows/swift-test.yml) [![security status](https://www.meterian.io/badge/gh/swift-serverless/swift-sls-adapter/security?branch=main)](https://www.meterian.io/report/gh/swift-serverless/swift-sls-adapter)
3+
[![stability status](https://www.meterian.io/badge/gh/swift-serverless/swift-sls-adapter/stability?branch=main)](https://www.meterian.io/report/gh/swift-serverless/swift-sls-adapter)
4+
[![licensing status](https://www.meterian.io/badge/gh/swift-serverless/swift-sls-adapter/licensing?branch=main)](https://www.meterian.io/report/gh/swift-serverless/swift-sls-adapter)
45

56
Swift serverless.yml adapter. Read and Write a Serverless Framework configuration in Swift.
67

@@ -18,7 +19,7 @@ Add the following packages to your swift package
1819
```swift
1920
dependencies: [
2021
// ...
21-
.package(url: "https://github.com/swift-sprinter/swift-sls-adapter.git", from: "0.1.0")
22+
.package(url: "https://github.com/swift-serverless/swift-sls-adapter.git", from: "0.1.0")
2223
]
2324
```
2425

@@ -83,8 +84,8 @@ let provider = Provider(
8384
let custom = try YAMLContent(with: ["tableName": "products-table-${sls:stage}"])
8485
let layer = Layer(
8586
path: "./build/swift-lambda-runtime",
86-
name: "aws-swift-sprinter-lambda-runtime",
87-
description: "AWS Lambda Custom Runtime for Swift-Sprinter"
87+
name: "aws-swift-serverless-lambda-runtime",
88+
description: "AWS Lambda Custom Runtime for swift-serverless"
8889
)
8990

9091
let package = Package(
@@ -154,7 +155,7 @@ let resource = Resource.dynamoDBResource(tableName: "${self:custom.tableName}",
154155
let resources = Resources.resources(with: ["ProductsTable": resource])
155156

156157
let serverlessConfig = ServerlessConfig(
157-
service: "swift-sprinter-rest-api",
158+
service: "swift-serverless-rest-api",
158159
provider: provider,
159160
package: .init(patterns: nil, individually: true, artifact: nil),
160161
custom: custom,
@@ -223,7 +224,7 @@ Status of the features implemented in this package:
223224

224225
## Contributions
225226

226-
Contributions are more than welcome! Follow this [guide](https://github.com/swift-sprinter/swift-sls-adapter/blob/main/CONTRIBUTING.md) to contribute.
227+
Contributions are more than welcome! Follow this [guide](https://github.com/swift-serverless/swift-sls-adapter/blob/main/CONTRIBUTING.md) to contribute.
227228

228229
## References
229230

Sources/SLSAdapter/CodableDefault.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Sources/SLSAdapter/Function+Extensions.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Sources/SLSAdapter/Function.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Sources/SLSAdapter/Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Sources/SLSAdapter/Provider.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Sources/SLSAdapter/Region.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Sources/SLSAdapter/Resource.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Sources/SLSAdapter/ServerlessConfig.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Sources/SLSAdapter/YAMLContent.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Tests/SLSAdapterTests/Fixtures/serverless.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
service: swift-sprinter-rest-api
1+
service: swift-serverless-rest-api
22
frameworkVersion: '3'
33
configValidationMode: warn
44

@@ -46,8 +46,8 @@ provider:
4646
layers:
4747
swift-lambda-runtime:
4848
path: ./build/swift-lambda-runtime
49-
name: aws-swift-sprinter-lambda-runtime
50-
description: AWS Lambda Custom Runtime for Swift-Sprinter
49+
name: aws-swift-serverless-lambda-runtime
50+
description: AWS Lambda Custom Runtime for swift-serverless
5151

5252
functions:
5353
createProducts:

Tests/SLSAdapterTests/Fixtures/serverless_no_layer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
service: swift-sprinter-rest-api
1+
service: swift-serverless-rest-api
22
frameworkVersion: '3'
33
configValidationMode: warn
44

Tests/SLSAdapterTests/HttpAPILambdaParams.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Tests/SLSAdapterTests/SLSAdapterTests.swift

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ final class SwiftSlsAdapterTests: XCTestCase {
3636

3737
let decoder = YAMLDecoder()
3838
let serverlessConfig = try decoder.decode(ServerlessConfig.self, from: serverlessYml)
39-
XCTAssertEqual(serverlessConfig.service, "swift-sprinter-rest-api")
39+
XCTAssertEqual(serverlessConfig.service, "swift-serverless-rest-api")
4040
XCTAssertEqual(serverlessConfig.frameworkVersion, "3")
4141
XCTAssertEqual(serverlessConfig.configValidationMode, .warn)
4242
XCTAssertEqual(serverlessConfig.useDotenv, false)
@@ -96,8 +96,8 @@ final class SwiftSlsAdapterTests: XCTestCase {
9696
let layer = try XCTUnwrap(serverlessConfig.layers?["swift-lambda-runtime"])
9797

9898
XCTAssertEqual(layer.path, "./build/swift-lambda-runtime")
99-
XCTAssertEqual(layer.name, "aws-swift-sprinter-lambda-runtime")
100-
XCTAssertEqual(layer.description, "AWS Lambda Custom Runtime for Swift-Sprinter")
99+
XCTAssertEqual(layer.name, "aws-swift-serverless-lambda-runtime")
100+
XCTAssertEqual(layer.description, "AWS Lambda Custom Runtime for swift-serverless")
101101

102102
let patternsExpectation = ["!**/*", "build/Products"]
103103

@@ -185,7 +185,7 @@ final class SwiftSlsAdapterTests: XCTestCase {
185185
let serverlessConfig2 = try decoder.decode(ServerlessConfig.self, from: serverlessYml)
186186

187187
let serverlessConfig = try ServerlessConfig.dynamoDBLambdaAPIWithLayer(
188-
service: "swift-sprinter-rest-api",
188+
service: "swift-serverless-rest-api",
189189
dynamoDBKey: "sku",
190190
dynamoDBTableNamePrefix: "products",
191191
httpAPIPath: "/products",
@@ -194,8 +194,8 @@ final class SwiftSlsAdapterTests: XCTestCase {
194194
architecture: .arm64,
195195
memorySize: 256,
196196
executable: "Products",
197-
layerName: "aws-swift-sprinter-lambda-runtime",
198-
layerDescription: "AWS Lambda Custom Runtime for Swift-Sprinter",
197+
layerName: "aws-swift-serverless-lambda-runtime",
198+
layerDescription: "AWS Lambda Custom Runtime for swift-serverless",
199199
layerPath: "./build/swift-lambda-runtime",
200200
buildPath: "build"
201201
)
@@ -221,7 +221,7 @@ final class SwiftSlsAdapterTests: XCTestCase {
221221
let serverlessConfig2 = try decoder.decode(ServerlessConfig.self, from: serverlessYml)
222222

223223
let serverlessConfig = try ServerlessConfig.dynamoDBLambdaAPI(
224-
service: "swift-sprinter-rest-api",
224+
service: "swift-serverless-rest-api",
225225
dynamoDBKey: "sku",
226226
dynamoDBTableNamePrefix: "products",
227227
httpAPIPath: "/products",

Tests/SLSAdapterTests/ServerlessConfig+Exensions.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

Tests/SLSAdapterTests/ServerlessHttpAPILambdaTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-sprinter
2+
Copyright 2023 (c) Andrea Scuderi - https://github.com/swift-serverless
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)