Skip to content

Commit b61aab0

Browse files
authored
rename project to SwiftAWSLambdaRuntime (#38)
motivation: unique, accurate name changes: * rename project to SwiftAWSLambdaRuntime * rename main module to AWSLambdaRuntime * rename / simplify sample module names * adjust readme and scripts
1 parent 88f3b50 commit b61aab0

31 files changed

+180
-178
lines changed

CODE_OF_CONDUCT.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# Code of Conduct
2-
To be a truly great community, SwiftAwsLambda needs to welcome developers from all walks of life,
2+
To be a truly great community, SwiftAWSLambdaRuntime needs to welcome developers from all walks of life,
33
with different backgrounds, and with a wide range of experience. A diverse and friendly
4-
community will have more great ideas, more unique perspectives, and produce more great
5-
code. We will work diligently to make the SwiftAwsLambda community welcoming to everyone.
4+
community will have more great ideas, more unique perspectives, and produce more great
5+
code. We will work diligently to make the SwiftAWSLambdaRuntime community welcoming to everyone.
66

7-
To give clarity of what is expected of our members, SwiftAwsLambda has adopted the code of conduct
8-
defined by [contributor-covenant.org](https://www.contributor-covenant.org). This document is used across many open source
7+
To give clarity of what is expected of our members, SwiftAWSLambdaRuntime has adopted the code of conduct
8+
defined by [contributor-covenant.org](https://www.contributor-covenant.org). This document is used across many open source
99
communities, and we think it articulates our values well. The full text is copied below:
1010

1111
### Contributor Code of Conduct v1.3
12-
As contributors and maintainers of this project, and in the interest of fostering an open and
13-
welcoming community, we pledge to respect all people who contribute through reporting
14-
issues, posting feature requests, updating documentation, submitting pull requests or patches,
12+
As contributors and maintainers of this project, and in the interest of fostering an open and
13+
welcoming community, we pledge to respect all people who contribute through reporting
14+
issues, posting feature requests, updating documentation, submitting pull requests or patches,
1515
and other activities.
1616

17-
We are committed to making participation in this project a harassment-free experience for
18-
everyone, regardless of level of experience, gender, gender identity and expression, sexual
19-
orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or
17+
We are committed to making participation in this project a harassment-free experience for
18+
everyone, regardless of level of experience, gender, gender identity and expression, sexual
19+
orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or
2020
nationality.
2121

2222
Examples of unacceptable behavior by participants include:
@@ -27,29 +27,29 @@ Examples of unacceptable behavior by participants include:
2727
- Publishing other’s private information, such as physical or electronic addresses, without explicit permission
2828
- Other unethical or unprofessional conduct
2929

30-
Project maintainers have the right and responsibility to remove, edit, or reject comments,
31-
commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of
32-
Conduct, or to ban temporarily or permanently any contributor for other behaviors that they
30+
Project maintainers have the right and responsibility to remove, edit, or reject comments,
31+
commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of
32+
Conduct, or to ban temporarily or permanently any contributor for other behaviors that they
3333
deem inappropriate, threatening, offensive, or harmful.
3434

35-
By adopting this Code of Conduct, project maintainers commit themselves to fairly and
36-
consistently applying these principles to every aspect of managing this project. Project
37-
maintainers who do not follow or enforce the Code of Conduct may be permanently removed
35+
By adopting this Code of Conduct, project maintainers commit themselves to fairly and
36+
consistently applying these principles to every aspect of managing this project. Project
37+
maintainers who do not follow or enforce the Code of Conduct may be permanently removed
3838
from the project team.
3939

40-
This code of conduct applies both within project spaces and in public spaces when an
40+
This code of conduct applies both within project spaces and in public spaces when an
4141
individual is representing the project or its community.
4242

43-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
44-
contacting a project maintainer at [swift-server-conduct@group.apple.com](mailto:swift-server-conduct@group.apple.com). All complaints will be reviewed and
45-
investigated and will result in a response that is deemed necessary and appropriate to the
46-
circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter
43+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
44+
contacting a project maintainer at [swift-server-conduct@group.apple.com](mailto:swift-server-conduct@group.apple.com). All complaints will be reviewed and
45+
investigated and will result in a response that is deemed necessary and appropriate to the
46+
circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter
4747
of an incident.
4848

4949
*This policy is adapted from the Contributor Code of Conduct [version 1.3.0](https://contributor-covenant.org/version/1/3/0/).*
5050

5151
### Reporting
5252
A working group of community members is committed to promptly addressing any [reported issues](mailto:swift-server-conduct@group.apple.com).
53-
Working group members are volunteers appointed by the project lead, with a
54-
preference for individuals with varied backgrounds and perspectives. Membership is expected
53+
Working group members are volunteers appointed by the project lead, with a
54+
preference for individuals with varied backgrounds and perspectives. Membership is expected
5555
to change regularly, and may grow or shrink.

CONTRIBUTING.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ that your contributions are licensed under the Apache 2.0 license (see
1010

1111
Please ensure to specify the following:
1212

13-
* SwiftAwsLambda commit hash
14-
* Contextual information (e.g. what you were trying to achieve with SwiftAwsLambda)
13+
* SwiftAWSLambdaRuntime commit hash
14+
* Contextual information (e.g. what you were trying to achieve with SwiftAWSLambdaRuntime)
1515
* Simplest possible steps to reproduce
1616
* More complex the steps are, lower the priority will be.
1717
* A pull request with failing test case is preferred, but it's just fine to paste the test case into the issue description.
@@ -24,10 +24,10 @@ Please ensure to specify the following:
2424
### Example
2525

2626
```
27-
SwiftAwsLambda commit hash: 22ec043dc9d24bb011b47ece4f9ee97ee5be2757
27+
SwiftAWSLambdaRuntime commit hash: 22ec043dc9d24bb011b47ece4f9ee97ee5be2757
2828
2929
Context:
30-
While load testing my HTTP web server written with SwiftAwsLambda, I noticed
30+
While load testing my Lambda written with SwiftAWSLambdaRuntime, I noticed
3131
that one file descriptor is leaked per request.
3232
3333
Steps to reproduce:
@@ -50,7 +50,7 @@ My system has IPv6 disabled.
5050

5151
## Writing a Patch
5252

53-
A good SwiftAwsLambda patch is:
53+
A good SwiftAWSLambdaRuntime patch is:
5454

5555
1. Concise, and contains as few changes as needed to achieve the end result.
5656
2. Tested, ensuring that any tests provided failed before the patch and pass after it.
@@ -63,11 +63,6 @@ We require that your commit messages match our template. The easiest way to do t
6363

6464
git config commit.template dev/git.commit.template
6565

66-
### Make sure Tests work on Linux
67-
68-
SwiftAwsLambda uses XCTest to run tests on both macOS and Linux. While the macOS version of XCTest is able to use the Objective-C runtime to discover tests at execution time, the Linux version is not.
69-
For this reason, whenever you add new tests **you have to run a script** that generates the hooks needed to run those tests on Linux, or our CI will complain that the tests are not all present on Linux. To do this, merely execute `ruby ./scripts/generate_linux_tests.rb` at the root of the package and check the changes it made.
70-
7166
## How to contribute your work
7267

7368
Please open a pull request at https://github.com/apple/swift-nio. Make sure the CI passes, and then wait for code review.

CONTRIBUTORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
For the purpose of tracking copyright, this is the list of individuals and
2-
organizations who have contributed source code to SwiftAwsLambda.
2+
organizations who have contributed source code to SwiftAWSLambdaRuntime.
33

44
For employees of an organization/company where the copyright of work done
55
by employees of that company is held by the company itself, only the company

Package.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@
33
import PackageDescription
44

55
let package = Package(
6-
name: "swift-aws-lambda",
6+
name: "swift-aws-lambda-runtime",
77
products: [
8-
.library(name: "SwiftAwsLambda", targets: ["SwiftAwsLambda"]),
8+
.library(name: "AWSLambdaRuntime", targets: ["AWSLambdaRuntime"]),
99
],
1010
dependencies: [
1111
.package(url: "https://github.com/apple/swift-nio.git", from: "2.8.0"),
1212
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
1313
.package(url: "https://github.com/swift-server/swift-backtrace.git", from: "1.1.0"),
1414
],
1515
targets: [
16-
.target(name: "SwiftAwsLambda", dependencies: [
16+
.target(name: "AWSLambdaRuntime", dependencies: [
1717
.product(name: "Logging", package: "swift-log"),
1818
.product(name: "Backtrace", package: "swift-backtrace"),
1919
.product(name: "NIOHTTP1", package: "swift-nio"),
2020
.product(name: "NIOFoundationCompat", package: "swift-nio"),
2121
]),
22-
.testTarget(name: "SwiftAwsLambdaTests", dependencies: ["SwiftAwsLambda"]),
22+
.testTarget(name: "AWSLambdaRuntimeTests", dependencies: ["AWSLambdaRuntime"]),
2323
// samples
24-
.target(name: "SwiftAwsLambdaStringSample", dependencies: ["SwiftAwsLambda"]),
25-
.target(name: "SwiftAwsLambdaCodableSample", dependencies: ["SwiftAwsLambda"]),
24+
.target(name: "StringSample", dependencies: ["AWSLambdaRuntime"]),
25+
.target(name: "CodableSample", dependencies: ["AWSLambdaRuntime"]),
2626
// perf tests
2727
.target(name: "MockServer", dependencies: [
2828
.product(name: "NIOHTTP1", package: "swift-nio"),

Sources/SwiftAwsLambda/HttpClient.swift renamed to Sources/AWSLambdaRuntime/HttpClient.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambda/Lambda+Codable.swift renamed to Sources/AWSLambdaRuntime/Lambda+Codable.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambda/Lambda+String.swift renamed to Sources/AWSLambdaRuntime/Lambda+String.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambda/Lambda.swift renamed to Sources/AWSLambdaRuntime/Lambda.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambda/LambdaConfiguration.swift renamed to Sources/AWSLambdaRuntime/LambdaConfiguration.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2020 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambda/LambdaContext.swift renamed to Sources/AWSLambdaRuntime/LambdaContext.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2020 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambda/LambdaHandler.swift renamed to Sources/AWSLambdaRuntime/LambdaHandler.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2020 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambda/LambdaLifecycle.swift renamed to Sources/AWSLambdaRuntime/LambdaLifecycle.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2020 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambda/LambdaRunner.swift renamed to Sources/AWSLambdaRuntime/LambdaRunner.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambda/LambdaRuntimeClient.swift renamed to Sources/AWSLambdaRuntime/LambdaRuntimeClient.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambda/Utils.swift renamed to Sources/AWSLambdaRuntime/Utils.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/SwiftAwsLambdaCodableSample/main.swift renamed to Sources/CodableSample/main.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import AWSLambdaRuntime
1516
import NIO
16-
import SwiftAwsLambda
1717

1818
struct Request: Codable {
1919
let body: String

Sources/MockServer/main.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftAwsLambda open source project
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAwsLambda project authors
5+
// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftAwsLambda project authors
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

0 commit comments

Comments
 (0)