Skip to content

Commit

Permalink
Prep for 0.1 (#1)
Browse files Browse the repository at this point in the history
* Update README.md

* boop

* updated readme

* pod fixes

* Update README.md
  • Loading branch information
mbrandonw authored Apr 16, 2018
1 parent 6e07981 commit 17c4ad4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Development.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
OTHER_SWIFT_FLAGS=$(inherited) -Xfrontend -warn-long-expression-type-checking=80
IPHONEOS_DEPLOYMENT_TARGET=8.0
MACOSX_DEPLOYMENT_TARGET=10.9
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 🏷 Tagged
MacOS [![CircleCI](https://circleci.com/gh/pointfreeco/swift-tagged.svg?style=svg)](https://circleci.com/gh/pointfreeco/swift-tagged) Linux [![Build Status](https://travis-ci.org/pointfreeco/swift-tagged.svg?branch=master)](https://travis-ci.org/pointfreeco/swift-tagged)

A library for safer types.

Expand Down Expand Up @@ -78,7 +79,7 @@ Now our `User` can be even more type-safe.
``` swift
struct User: Decodable {
typealias Id = Tagged<User, Int>

let id: Id
let email: Email
let subscriptionId: Subscription.Id?
Expand All @@ -104,15 +105,15 @@ User(
If you use [Carthage](https://github.com/Carthage/Carthage), you can add the following dependency to your `Cartfile`:

``` ruby
github "pointfreeco/swift-tagged" "master"
github "pointfreeco/swift-tagged" ~> 0.1
```

### CocoaPods

If your project uses [CocoaPods](https://cocoapods.org), just add the following to your `Podfile`:

``` ruby
pod 'Tagged', :git => 'https://github.com/pointfreeco/swift-tagged.git'
pod 'Tagged', :git => 'https://github.com/pointfreeco/swift-tagged.git', :tag => '0.1.0'
```

### SwiftPM
Expand All @@ -121,9 +122,7 @@ If you want to use Tagged in a project that uses [SwiftPM](https://swift.org/pac

``` swift
dependencies: [
.package(
url: "https://github.com/pointfreeco/swift-tagged.git",
.branch("master")),
.package(url: "https://github.com/pointfreeco/swift-tagged.git", from: "0.1.0")
]
```

Expand Down
11 changes: 8 additions & 3 deletions Tagged.podspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Pod::Spec.new do |s|
s.name = "Tagged"
s.version = "0.0.1"
s.version = "0.1.0"
s.summary = "A library for safer types."

s.description = <<-DESC
A library for safer types.
We often work with types that are far too general or hold far too many values than what is necessary for our domain. Sometimes we just want to differentiate between two seemingly equivalent values at the type level.
Tagged lets us wrap basic types in more specific contexts with ease.
DESC

s.homepage = "https://github.com/pointfreeco/swift-tagged"
Expand All @@ -19,8 +21,11 @@ Pod::Spec.new do |s|

s.source = {
:git => "https://github.com/pointfreeco/swift-tagged.git",
:branch => "master"
:tag => "0.1.0"
}

s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"

s.source_files = "Sources", "Sources/**/*.swift"
end

0 comments on commit 17c4ad4

Please sign in to comment.