Skip to content

Commit

Permalink
support cocoapods
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiu committed Jul 20, 2020
1 parent 8c00068 commit c690765
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 30 deletions.
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

21 changes: 21 additions & 0 deletions Chalk.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Pod::Spec.new do |s|
s.name = 'Chalk'
s.version = '0.1.1'
s.summary = 'Expressive styling on terminal string. (chalk for swift)'
s.homepage = 'https://github.com/luoxiu/Chalk'

s.license = { type: 'MIT', file: 'LICENSE' }

s.author = { 'luoxiu' => '[email protected]' }

s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.12'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '3.0'

s.swift_version = '5.0'

s.source = { git: s.homepage + '.git', tag: s.version }
s.source_files = 'Sources/Chalk/**/*.swift'
end

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Quentin Jin
Copyright (c) 2020 Quentin Jin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Chalk

<div>
<a href="https://travis-ci.org/luoxiu/Chalk">
<img src="https://travis-ci.org/luoxiu/Chalk.svg?branch=master">
<a href="https://github.com/luoxiu/Chalk/actions">
<img src="https://github.com/luoxiu/Chalk/workflows/Swift/badge.svg">
</a>
<a href="https://github.com/luoxiu/Chalk/releases">
<img src="https://img.shields.io/github/tag/luoxiu/Chalk.svg">
Expand Down Expand Up @@ -129,6 +129,10 @@ dependencies: [
]
```

```ruby
pod 'Chalk', '~> 0.1.0'
```


## Acknowledge

Expand Down
4 changes: 0 additions & 4 deletions Tests/ChalkTests/ChalkTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ final class ChalkTests: XCTestCase {
let nest = ck.red.on("a" + ck.yellow.on("b" + ck.green.on("c") + "b") + "c")
XCTAssertEqual(nest.description, "\u{001B}[31ma\u{001B}[39m\u{001B}[33mb\u{001B}[39m\u{001B}[32mc\u{001B}[39m\u{001B}[33mb\u{001B}[39m\u{001B}[31mc\u{001B}[39m")
}

static var allTests = [
("testChalk", testChalk),
]
}
15 changes: 12 additions & 3 deletions Tests/ChalkTests/XCTestManifests.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
#if !canImport(ObjectiveC)
import XCTest

#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
extension ChalkTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__ChalkTests = [
("testChalk", testChalk),
]
}

public func __allTests() -> [XCTestCaseEntry] {
return [
testCase(ChalkTests.allTests),
testCase(ChalkTests.__allTests__ChalkTests),
]
}
#endif
3 changes: 2 additions & 1 deletion Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import XCTest
import ChalkTests

var tests = [XCTestCaseEntry]()
tests += ChalkTests.allTests()
tests += ChalkTests.__allTests()

XCTMain(tests)

0 comments on commit c690765

Please sign in to comment.