Skip to content

Commit

Permalink
Release 3.0.0 (#49)
Browse files Browse the repository at this point in the history
Release 3.0.0
  • Loading branch information
kylef authored Jun 7, 2019
2 parents d7a7abf + 7e0505a commit 2ab6d53
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Changelog for URITemplate

## Master
## 3.0.0

### Breaking

- Support for Swift 3 has been removed.
- Support for Swift < 4.2 has been removed.

### Enhancements

- Adds support for Swift 5.0.

## 2.0.3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,9 @@ public struct URITemplate : CustomStringConvertible, Equatable, Hashable, Expres
return template
}

#if swift(>=4.2)
public func hash(into hasher: inout Hasher) {
template.hash(into: &hasher)
}
#else
public var hashValue: Int {
return template.hashValue
}
#endif

/// Returns the set of keywords in the URI Template
public var variables: [String] {
Expand Down
5 changes: 3 additions & 2 deletions URITemplate.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'URITemplate'
spec.version = '2.0.3'
spec.version = '3.0.0'
spec.summary = 'Swift library for dealing with URI Templates (RFC6570)'
spec.homepage = 'https://github.com/kylef/URITemplate.swift'
spec.license = { :type => 'MIT', :file => 'LICENSE' }
Expand All @@ -9,9 +9,10 @@ Pod::Spec.new do |spec|
spec.source = { :git => 'https://github.com/kylef/URITemplate.swift.git', :tag => "#{spec.version}" }
spec.source_files = 'Sources/*.{h,swift}'
spec.ios.deployment_target = '8.0'
spec.osx.deployment_target = '10.9'
spec.osx.deployment_target = '10.10'
spec.watchos.deployment_target = '2.0'
spec.tvos.deployment_target = '9.0'
spec.requires_arc = true
spec.swift_versions = ['4.2', '5.0']
end

0 comments on commit 2ab6d53

Please sign in to comment.