Skip to content

Commit

Permalink
Rename to SwiftSMTP
Browse files Browse the repository at this point in the history
  • Loading branch information
quanvo87 committed May 25, 2017
1 parent 48fd8c8 commit ab9b164
Show file tree
Hide file tree
Showing 65 changed files with 412 additions and 412 deletions.
6 changes: 3 additions & 3 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module: KituraSMTP
module: SwiftSMTP
author: IBM
github_url: https://github.com/IBM-Swift/Kitura-SMTP/
github_url: https://github.com/IBM-Swift/Swift-SMTP/

theme: fullwidth
clean: true
Expand All @@ -11,4 +11,4 @@ readme: README.md
skip_undocumented: false
hide_documentation_coverage: false

xcodebuild_arguments: [-project, KituraSMTP.xcodeproj, -target, KituraSMTP, LIBRARY_SEARCH_PATHS=.build/debug]
xcodebuild_arguments: [-project, SwiftSMTP.xcodeproj, -target, SwiftSMTP, LIBRARY_SEARCH_PATHS=.build/debug]
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PackageDescription
print("Please use Swift >=3.1.1.")
#else
let package = Package(
name: "KituraSMTP",
name: "SwiftSMTP",
dependencies: [
.Package(url: "https://github.com/IBM-Swift/BlueSocket.git", majorVersion: 0, minor: 12),
.Package(url: "https://github.com/IBM-Swift/BlueSSLService.git", majorVersion: 0, minor: 12),
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Kitura-SMTP
# Swift-SMTP

Swift package for sending emails to an SMTP server.

[![Build Status - Master](https://travis-ci.com/IBM-Swift/Kitura-SMTP.svg?token=prrUzhsjZyXD9LxyWxge&branch=master)](https://travis-ci.com/IBM-Swift/Kitura-SMTP.svg?token=prrUzhsjZyXD9LxyWxge&branch=master)
[![Build Status - Master](https://travis-ci.com/IBM-Swift/Swift-SMTP.svg?token=prrUzhsjZyXD9LxyWxge&branch=master)](https://travis-ci.com/IBM-Swift/Swift-SMTP.svg?token=prrUzhsjZyXD9LxyWxge&branch=master)
![macOS](https://img.shields.io/badge/os-macOS-green.svg?style=flat)
![Linux](https://img.shields.io/badge/os-linux-green.svg?style=flat)
![Apache 2](https://img.shields.io/badge/license-Apache2-blue.svg?style=flat)
Expand All @@ -14,7 +14,7 @@ Swift package for sending emails to an SMTP server.
- Send emails with local file, HTML, and raw data attachments
- Add custom headers
- Asynchronous
- [Documentation](https://ibm-swift.github.io/Kitura-SMTP/)
- [Documentation](https://ibm-swift.github.io/Swift-SMTP/)

## Swift Version

Expand All @@ -25,7 +25,7 @@ macOS & Linux: `Swift 3.1.1`
Use the `SMTP` struct as a handle to your SMTP server. If your server requires a SSL/TLS connection, you can specify an `SSL` config and include it in your `SMTP` handle:

```swift
import KituraSMTP
import SwiftSMTP

// Create an `SSL` config
#if os(Linux)
Expand Down Expand Up @@ -139,7 +139,7 @@ smtp.send([mail1, mail2],

## Acknowledgements

`Kitura-SMTP` was inspired by [Hedwig](https://github.com/onevcat/Hedwig) and [Perfect-SMTP](https://github.com/PerfectlySoft/Perfect-SMTP), two Swift packages that can also be used to send emails to an SMTP server.
`Swift-SMTP` was inspired by [Hedwig](https://github.com/onevcat/Hedwig) and [Perfect-SMTP](https://github.com/PerfectlySoft/Perfect-SMTP), two Swift packages that can also be used to send emails to an SMTP server.

## License

Expand Down
4 changes: 2 additions & 2 deletions Sources/Mail.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Foundation
public struct Mail {

/// UUID of the `Mail`.
public let id = UUID().uuidString + ".Kitura-SMTP"
public let id = UUID().uuidString + ".Swift-SMTP"

let from: User
let to: [User]
Expand Down Expand Up @@ -77,7 +77,7 @@ extension Mail {
}

fields["SUBJECT"] = subject.mimeEncoded ?? ""
fields["MIME-VERSION"] = "1.0 (Kitura-SMTP)"
fields["MIME-VERSION"] = "1.0 (Swift-SMTP)"

if let additionalHeaders = additionalHeaders {
for (key, value) in additionalHeaders {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SMTPError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import Foundation
import LoggerAPI

/// Error type for KituraSMTP.
/// Error type for SwiftSMTP.
public enum SMTPError: Error, CustomStringConvertible {
// AuthCredentials
/// Error decoding string.
Expand Down
2 changes: 1 addition & 1 deletion Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import XCTest
import Glibc
@testable import KituraSMTPTests
@testable import SwiftSMTPTests

srand(UInt32(time(nil)))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
**/

import KituraSMTP
import SwiftSMTP

#if os(Linux)
import Glibc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
**/

import XCTest
@testable import KituraSMTP
@testable import SwiftSMTP

class TestAttachment: XCTestCase {
static var allTests: [(String, (TestAttachment) -> () throws -> Void)] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
**/

import XCTest
@testable import KituraSMTP
@testable import SwiftSMTP

class TestAuthEncoder: XCTestCase {
static var allTests = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
**/

import XCTest
@testable import KituraSMTP
@testable import SwiftSMTP

#if os(Linux)
import Dispatch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
**/

import XCTest
@testable import KituraSMTP
@testable import SwiftSMTP

class TestLogin: XCTestCase {
static var allTests = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
**/

import XCTest
@testable import KituraSMTP
@testable import SwiftSMTP

#if os(Linux) && !swift(>=3.1)
import Foundation
Expand Down Expand Up @@ -61,7 +61,7 @@ extension TestMiscellaneous {
let subject = "SUBJECT: =?UTF-8?Q?Test?="
XCTAssert(headers.contains(subject), "Mail header did not contain \(subject)")

let mimeVersion = "MIME-VERSION: 1.0 (Kitura-SMTP)"
let mimeVersion = "MIME-VERSION: 1.0 (Swift-SMTP)"
XCTAssert(headers.contains(mimeVersion), "Mail header did not contain \(mimeVersion)")

let additionalHeader = "KEY: val"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
**/

import XCTest
@testable import KituraSMTP
@testable import SwiftSMTP

class TestSMTPSocket: XCTestCase {
static var allTests: [(String, (TestSMTPSocket) -> () throws -> Void)] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
**/

import XCTest
@testable import KituraSMTP
@testable import SwiftSMTP

#if os(Linux)
import Dispatch
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
26 changes: 13 additions & 13 deletions docs/Enums.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<header class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="index.html">
KituraSMTP Docs
SwiftSMTP Docs
</a>
(100% documented)
</p>
Expand All @@ -32,7 +32,7 @@
</p>

<p class="header-col header-col--secondary">
<a class="header-link" href="https://github.com/IBM-Swift/Kitura-SMTP/">
<a class="header-link" href="https://github.com/IBM-Swift/Swift-SMTP/">
<img class="header-icon" src="img/gh.png"/>
View on GitHub
</a>
Expand All @@ -41,7 +41,7 @@
</header>

<p class="breadcrumbs">
<a class="breadcrumb" href="index.html">KituraSMTP Reference</a>
<a class="breadcrumb" href="index.html">SwiftSMTP Reference</a>
<img class="carat" src="img/carat.png" />
Enums Reference
</p>
Expand Down Expand Up @@ -87,7 +87,7 @@
<a class="nav-group-name-link" href="Typealiases.html">Typealiases</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="Typealiases.html#/s:10KituraSMTP4Port">Port</a>
<a class="nav-group-task-link" href="Typealiases.html#/s:9SwiftSMTP4Port">Port</a>
</li>
</ul>
</li>
Expand All @@ -110,25 +110,25 @@ <h1>Enums</h1>
<li class="item">
<div>
<code>
<a name="/s:O10KituraSMTP5Ports"></a>
<a name="/s:O9SwiftSMTP5Ports"></a>
<a name="//apple_ref/swift/Enum/Ports" class="dashAnchor"></a>
<a class="token" href="#/s:O10KituraSMTP5Ports">Ports</a>
<a class="token" href="#/s:O9SwiftSMTP5Ports">Ports</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Common <code><a href="Typealiases.html#/s:10KituraSMTP4Port">Port</a></code>s.</p>
<p>Common <code><a href="Typealiases.html#/s:9SwiftSMTP4Port">Port</a></code>s.</p>

<a href="Enums/Ports.html" class="slightly-smaller">See more</a>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">Ports</span><span class="p">:</span> <span class="kt"><a href="Typealiases.html#/s:10KituraSMTP4Port">Port</a></span></code></pre>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">Ports</span><span class="p">:</span> <span class="kt"><a href="Typealiases.html#/s:9SwiftSMTP4Port">Port</a></span></code></pre>

</div>
</div>
Expand All @@ -138,9 +138,9 @@ <h4>Declaration</h4>
<li class="item">
<div>
<code>
<a name="/s:O10KituraSMTP10AuthMethod"></a>
<a name="/s:O9SwiftSMTP10AuthMethod"></a>
<a name="//apple_ref/swift/Enum/AuthMethod" class="dashAnchor"></a>
<a class="token" href="#/s:O10KituraSMTP10AuthMethod">AuthMethod</a>
<a class="token" href="#/s:O9SwiftSMTP10AuthMethod">AuthMethod</a>
</code>
</div>
<div class="height-container">
Expand Down Expand Up @@ -170,17 +170,17 @@ <h4>Declaration</h4>
<li class="item">
<div>
<code>
<a name="/s:O10KituraSMTP9SMTPError"></a>
<a name="/s:O9SwiftSMTP9SMTPError"></a>
<a name="//apple_ref/swift/Enum/SMTPError" class="dashAnchor"></a>
<a class="token" href="#/s:O10KituraSMTP9SMTPError">SMTPError</a>
<a class="token" href="#/s:O9SwiftSMTP9SMTPError">SMTPError</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Error type for KituraSMTP.</p>
<p>Error type for SwiftSMTP.</p>

<a href="Enums/SMTPError.html" class="slightly-smaller">See more</a>
</div>
Expand Down
24 changes: 12 additions & 12 deletions docs/Enums/AuthMethod.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<header class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="../index.html">
KituraSMTP Docs
SwiftSMTP Docs
</a>
(100% documented)
</p>
Expand All @@ -33,7 +33,7 @@
</p>

<p class="header-col header-col--secondary">
<a class="header-link" href="https://github.com/IBM-Swift/Kitura-SMTP/">
<a class="header-link" href="https://github.com/IBM-Swift/Swift-SMTP/">
<img class="header-icon" src="../img/gh.png"/>
View on GitHub
</a>
Expand All @@ -42,7 +42,7 @@
</header>

<p class="breadcrumbs">
<a class="breadcrumb" href="../index.html">KituraSMTP Reference</a>
<a class="breadcrumb" href="../index.html">SwiftSMTP Reference</a>
<img class="carat" src="../img/carat.png" />
AuthMethod Enum Reference
</p>
Expand Down Expand Up @@ -88,7 +88,7 @@
<a class="nav-group-name-link" href="../Typealiases.html">Typealiases</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Typealiases.html#/s:10KituraSMTP4Port">Port</a>
<a class="nav-group-task-link" href="../Typealiases.html#/s:9SwiftSMTP4Port">Port</a>
</li>
</ul>
</li>
Expand Down Expand Up @@ -117,9 +117,9 @@ <h1>AuthMethod</h1>
<li class="item">
<div>
<code>
<a name="/s:FO10KituraSMTP10AuthMethod7cramMD5FMS0_S0_"></a>
<a name="/s:FO9SwiftSMTP10AuthMethod7cramMD5FMS0_S0_"></a>
<a name="//apple_ref/swift/Element/cramMD5" class="dashAnchor"></a>
<a class="token" href="#/s:FO10KituraSMTP10AuthMethod7cramMD5FMS0_S0_">cramMD5</a>
<a class="token" href="#/s:FO9SwiftSMTP10AuthMethod7cramMD5FMS0_S0_">cramMD5</a>
</code>
</div>
<div class="height-container">
Expand Down Expand Up @@ -148,9 +148,9 @@ <h4>Declaration</h4>
<li class="item">
<div>
<code>
<a name="/s:FO10KituraSMTP10AuthMethod5loginFMS0_S0_"></a>
<a name="/s:FO9SwiftSMTP10AuthMethod5loginFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/login" class="dashAnchor"></a>
<a class="token" href="#/s:FO10KituraSMTP10AuthMethod5loginFMS0_S0_">login</a>
<a class="token" href="#/s:FO9SwiftSMTP10AuthMethod5loginFMS0_S0_">login</a>
</code>
</div>
<div class="height-container">
Expand Down Expand Up @@ -179,9 +179,9 @@ <h4>Declaration</h4>
<li class="item">
<div>
<code>
<a name="/s:FO10KituraSMTP10AuthMethod5plainFMS0_S0_"></a>
<a name="/s:FO9SwiftSMTP10AuthMethod5plainFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/plain" class="dashAnchor"></a>
<a class="token" href="#/s:FO10KituraSMTP10AuthMethod5plainFMS0_S0_">plain</a>
<a class="token" href="#/s:FO9SwiftSMTP10AuthMethod5plainFMS0_S0_">plain</a>
</code>
</div>
<div class="height-container">
Expand Down Expand Up @@ -210,9 +210,9 @@ <h4>Declaration</h4>
<li class="item">
<div>
<code>
<a name="/s:FO10KituraSMTP10AuthMethod7xoauth2FMS0_S0_"></a>
<a name="/s:FO9SwiftSMTP10AuthMethod7xoauth2FMS0_S0_"></a>
<a name="//apple_ref/swift/Element/xoauth2" class="dashAnchor"></a>
<a class="token" href="#/s:FO10KituraSMTP10AuthMethod7xoauth2FMS0_S0_">xoauth2</a>
<a class="token" href="#/s:FO9SwiftSMTP10AuthMethod7xoauth2FMS0_S0_">xoauth2</a>
</code>
</div>
<div class="height-container">
Expand Down
Loading

0 comments on commit ab9b164

Please sign in to comment.