Skip to content

Commit ad2042d

Browse files
Release 0.6.0 (#94)
* add contributors to license * add running log of changes for release notes * note Swift 5.3 compatibiltiy in readme * bump version
1 parent 1357bfc commit ad2042d

File tree

4 files changed

+44
-24
lines changed

4 files changed

+44
-24
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!--
2+
## 0.0.0
3+
4+
API Changes:
5+
6+
Bugfixes:
7+
8+
Other:
9+
-->
10+
11+
12+
## 0.6.0
13+
14+
API Changes:
15+
16+
- Rename `View` to `CSVView` to avoid SwiftUI namespace conflicts (#93) - @campionfellin
17+
18+
Other:
19+
20+
- Bump iOS Deployment target to 9.0, Xcode 12 recommended changes. (#91) - @DenTelezhkin

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 Naoto Kaneko
3+
Copyright (c) 2014 Naoto Kaneko.
4+
Copyright (c) 2019 SwiftCSV Contributors.
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +20,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1920
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2021
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2122
SOFTWARE.
22-

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# SwiftCSV
22

3-
![Swift 5.0](https://img.shields.io/badge/Swift-5.0-blue.svg?style=flat)
4-
[![Platform support](https://img.shields.io/badge/platform-ios%20%7C%20osx%20%7C%20tvos%20%7C%20watchos-lightgrey.svg?style=flat-square)](https://github.com/swiftcsv/SwiftCSV/blob/master/LICENSE.md)
5-
[![Build Status](https://img.shields.io/travis/swiftcsv/SwiftCSV/master.svg?style=flat-square)](https://travis-ci.org/swiftcsv/SwiftCSV)
3+
![Swift 5.3](https://img.shields.io/badge/Swift-5.3-blue.svg?style=flat)
4+
[![Platform support](https://img.shields.io/badge/platform-ios%20%7C%20osx%20%7C%20tvos%20%7C%20watchos-lightgrey.svg?style=flat-square)](https://github.com/swiftcsv/SwiftCSV/blob/master/LICENSE.md)
5+
[![Build Status](https://img.shields.io/travis/swiftcsv/SwiftCSV/master.svg?style=flat-square)](https://travis-ci.org/swiftcsv/SwiftCSV)
66
[![Code coverage status](https://codecov.io/gh/swiftcsv/SwiftCSV/branch/master/graph/badge.svg)](https://codecov.io/gh/swiftcsv/SwiftCSV)
7-
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SwiftCSV.svg?style=flat-square)](https://cocoapods.org/pods/SwiftCSV)
7+
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SwiftCSV.svg?style=flat-square)](https://cocoapods.org/pods/SwiftCSV)
88
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
9-
[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/swiftcsv/SwiftCSV/blob/master/LICENSE.md)
9+
[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/swiftcsv/SwiftCSV/blob/master/LICENSE.md)
1010
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg?style=flat-square)](https://houndci.com)
1111

1212

@@ -31,10 +31,10 @@ do {
3131

3232
// From a file inside the app bundle, with a custom delimiter, errors, and custom encoding
3333
let resource: CSV? = try CSV(
34-
name: "users",
35-
extension: "tsv",
36-
bundle: .main,
37-
delimiter: "\t",
34+
name: "users",
35+
extension: "tsv",
36+
bundle: .main,
37+
delimiter: "\t",
3838
encoding: .utf8)
3939
} catch parseError as CSVParseError {
4040
// Catch errors from parsing invalid formed CSV
@@ -55,10 +55,10 @@ class CSV {
5555
/// - parameter delimiter: Character used to separate row and header fields (default is ',')
5656
/// - parameter loadColumns: Whether to populate the `columns` dictionary (default is `true`)
5757
/// - throws: `CSVParseError` when parsing `string` fails.
58-
public init(string: String,
59-
delimiter: Character = comma,
58+
public init(string: String,
59+
delimiter: Character = comma,
6060
loadColumns: Bool = true) throws
61-
61+
6262
/// Load a CSV file as a named resource from `bundle`.
6363
///
6464
/// - parameter name: Name of the file resource inside `bundle`.
@@ -70,11 +70,11 @@ class CSV {
7070
/// - throws: `CSVParseError` when parsing the contents of the resource fails, or file loading errors.
7171
/// - returns: `nil` if the resource could not be found
7272
public convenience init?(
73-
name: String,
74-
extension ext: String? = nil,
75-
bundle: Bundle = .main,
76-
delimiter: Character = comma,
77-
encoding: String.Encoding = .utf8,
73+
name: String,
74+
extension ext: String? = nil,
75+
bundle: Bundle = .main,
76+
delimiter: Character = comma,
77+
encoding: String.Encoding = .utf8,
7878
loadColumns: Bool = true) throws
7979

8080
/// Load a CSV file from `url`.
@@ -85,9 +85,9 @@ class CSV {
8585
/// - parameter loadColumns: Whether to populate the columns dictionary (default is `true`)
8686
/// - throws: `CSVParseError` when parsing the contents of `url` fails, or file loading errors.
8787
public convenience init(
88-
url: URL,
89-
delimiter: Character = comma,
90-
encoding: String.Encoding = .utf8,
88+
url: URL,
89+
delimiter: Character = comma,
90+
encoding: String.Encoding = .utf8,
9191
loadColumns: Bool = true)
9292
}
9393

SwiftCSV.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SwiftCSV"
3-
s.version = "0.5.6"
3+
s.version = "0.6.0"
44
s.summary = "CSV parser for Swift"
55
s.homepage = "https://github.com/swiftcsv/SwiftCSV"
66
s.license = { :type => "MIT", :file => "LICENSE" }
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
99
"Christian Tietze" => "me@christiantietze.de"
1010
}
1111
s.source = { :git => "https://github.com/swiftcsv/SwiftCSV.git", :tag => s.version }
12-
s.swift_versions = [ "5.0", "4.2" ]
12+
s.swift_versions = [ "5.3", "5.2", "5.1", "5.0", "4.2" ]
1313

1414
s.ios.deployment_target = "9.0"
1515
s.osx.deployment_target = "10.9"

0 commit comments

Comments
 (0)