Skip to content

Commit 849f2cf

Browse files
committed
Standalone badges
1 parent c1ee8e0 commit 849f2cf

21 files changed

+123
-91
lines changed

Assets/Badges/Apple.svg

Lines changed: 1 addition & 0 deletions
Loading

Assets/Badges/License.svg

Lines changed: 1 addition & 0 deletions
Loading

Assets/Badges/Linux.svg

Lines changed: 1 addition & 0 deletions
Loading

Assets/Badges/Swift.svg

Lines changed: 1 addition & 0 deletions
Loading

CodableCSV.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Pod::Spec.new do |s|
99
s.source = { :git => 'https://github.com/dehesa/CodableCSV.git', :tag => s.version.to_s }
1010

1111
s.swift_version = '5.1'
12-
s.ios.deployment_target = '10.0'
13-
s.osx.deployment_target = '10.13'
14-
s.tvos.deployment_target = '10.0'
15-
s.watchos.deployment_target = '3.0'
12+
s.ios.deployment_target = '8.0'
13+
s.osx.deployment_target = '10.10'
14+
s.tvos.deployment_target = '9.0'
15+
s.watchos.deployment_target = '2.0'
1616

1717
s.source_files = 'Sources/**/*'
1818
end

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "CodableCSV",
66
platforms: [
7-
.macOS(.v10_13), .iOS(.v10), .tvOS(.v10), .watchOS(.v3)
7+
.macOS(.v10_10), .iOS(.v8), .tvOS(.v9), .watchOS(.v2)
88
],
99
products: [
1010
.library(name: "CodableCSV", targets: ["CodableCSV"]),

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@
22
<img src="Assets/CodableCSV.svg" alt="Codable CSV"/>
33
</p>
44

5-
[CodableCSV](https://github.com/dehesa/CodableCSV) allows you to read and write CSV files row-by-row or through Swift's Codable interface.
6-
7-
![Swift 5.1](https://img.shields.io/badge/Swift-5.1-orange.svg) ![platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20macOS%20%7C%20tvOS%20%7C%20watchOS%20%7C%20Linux-lightgrey.svg) [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org) [![Build Status](https://travis-ci.com/dehesa/CodableCSV.svg?branch=master)](https://travis-ci.com/dehesa/CodableCSV)
5+
<p align="center">
6+
<img src="Assets/Badges/Swift.svg" alt="Swift 5.1">
7+
<img src="Assets/Badges/Apple.svg" alt="macOS 10.10+ - iOS 8+ - tvOS 9+ - watchOS 2+">
8+
<img src="Assets/Badges/Linux.svg" alt="Linux">
9+
<a href="http://doge.mit-license.org"><img src="Assets/Badges/License.svg" alt="MIT License"></a>
10+
<a href="https://travis-ci.com/dehesa/CodableCSV"><img src="https://travis-ci.com/dehesa/CodableCSV.svg?branch=master"></a>
11+
</p>
812

9-
This framework provides:
13+
[CodableCSV](https://github.com/dehesa/CodableCSV) provides:
1014

1115
- Row-by-row CSV reader & writer.
1216
- Codable interface.
13-
- Support for multiple inputs/outputs (in-memory, file system, binary socket, etc.).
17+
- Support for multiple inputs/outputs: `String`s, `Data` blobs, and CSV files (represented by `URL` addresses).
1418
- CSV encoding & configuration inference (e.g. what field/row delimiters are being used).
1519
- Multiplatform support with no dependencies.
1620

17-
> `CodableCSV` can _encode to_ or _decode from_ `String`s, `Data` blobs, or CSV files (represented by `URL` addresses).
21+
> The Swift standard library and Foundation are considered implicit requirements.
1822
1923
# Usage
2024

@@ -38,7 +42,7 @@ You can choose to add the library through SPM or Cocoapods:
3842
)
3943
```
4044

41-
- Cocoapods.
45+
- [Cocoapods](https://cocoapods.org).
4246

4347
```
4448
pod 'CodableCSV', '~> 0.5.0'
@@ -312,7 +316,7 @@ decoder.decimalStratey = .custom {
312316

313317
## Tips Using `Codable`
314318

315-
`Codable` is fairly easy to use and most Swift standard library types already conform to it. However, sometimes it is tricky to get custom types to comply to `Codable` for very specific functionality. That is why I am leaving here some tips and advices concerning its usage:
319+
`Codable` is fairly easy to use and most Swift standard library types already conform to it. However, sometimes it is tricky to get custom types to comply to `Codable` for specific functionality. That is why I am leaving here some tips and advices concerning its usage:
316320

317321
<ul>
318322
<details><summary>Basic adoption.</summary><p>

0 commit comments

Comments
 (0)