Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from heidipuk/slugify/update-swift-version
Browse files Browse the repository at this point in the history
Update swift version
  • Loading branch information
steffendsommer authored Dec 6, 2018
2 parents 1097fbc + 9da08af commit 2231b5c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Slugify.xcodeproj/
## Build generated
build/
DerivedData/
Package.resolved

## Various settings
*.pbxuser
Expand Down
10 changes: 10 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
// swift-tools-version:4.0

import PackageDescription

let package = Package(
name: "Slugify",
products: [
.library(name: "Slugify", targets: ["Slugify"]),
],
dependencies: [
],
targets: [
.target(name: "Slugify", dependencies: []),
.testTarget(name: "SlugifyTests", dependencies: ["Slugify"])
]
)

7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Slugify
[![Swift Version](https://img.shields.io/badge/Swift-4-brightgreen.svg)](http://swift.org)
[![Swift Version](https://img.shields.io/badge/Swift-3-brightgreen.svg)](http://swift.org)
[![Vapor Version](https://img.shields.io/badge/Vapor-2-F6CBCA.svg)](http://vapor.codes)
[![Vapor Version](https://img.shields.io/badge/Vapor-3-30B6FC.svg)](http://vapor.codes)
[![Circle CI](https://circleci.com/gh/nodes-vapor/slugify/tree/master.svg?style=shield)](https://circleci.com/gh/nodes-vapor/slugify)
[![codebeat badge](https://codebeat.co/badges/fcd2b9a6-3966-435a-b35c-cf18812d6d1f)](https://codebeat.co/projects/garden.eu.org-nodes-vapor-slugify-master)
[![codecov](https://codecov.io/gh/nodes-vapor/slugify/branch/master/graph/badge.svg)](https://codecov.io/gh/nodes-vapor/slugify)
Expand All @@ -10,9 +11,11 @@

## 📦 Installation

This package is independent of Vapor and can be used for all Swift projects up til version 4.2

Update your `Package.swift` file.
```swift
.Package(url: "https://github.com/nodes-vapor/slugify", majorVersion: 1)
.package(url: "https://github.com/nodes-vapor/slugify", from: "2.0.0")
```


Expand Down
4 changes: 4 additions & 0 deletions Tests/SlugifyTests/SlugifyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ class SlugifyTests: XCTestCase {
func testSpecialChar4() {
XCTAssertEqual("a-a", "a€a".slugify())
}

func testSpace() {
XCTAssertEqual("a-a", "a a".slugify())
}
}

0 comments on commit 2231b5c

Please sign in to comment.