From 9a45ba42cf3e71fa7f8fe51f291c184eb90ac6c9 Mon Sep 17 00:00:00 2001
From: 1024jp <1024jp@wolfrosch.com>
Date: Thu, 10 Nov 2016 23:55:57 +0900
Subject: [PATCH 1/4] Fix a typo in comment
---
Sources/Data+Gzip.swift | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Sources/Data+Gzip.swift b/Sources/Data+Gzip.swift
index 4ccd23c..6e52253 100644
--- a/Sources/Data+Gzip.swift
+++ b/Sources/Data+Gzip.swift
@@ -160,7 +160,7 @@ public enum GzipError: Error {
public extension Data {
/**
- Check if the reciever is already gzipped.
+ Check if the receiver is already gzipped.
- returns: Whether the data is compressed.
*/
From 315768ca8dc60b7ad445bc2188f5032614639638 Mon Sep 17 00:00:00 2001
From: 1024jp <1024jp@wolfrosch.com>
Date: Thu, 3 Sep 2015 17:07:49 +0900
Subject: [PATCH 2/4] Add podspec (#4)
---
.swift-version | 1 +
CHANGELOG.md | 7 +++++++
GzipSwift.podspec | 25 +++++++++++++++++++++++++
README.md | 9 +++++++++
4 files changed, 42 insertions(+)
create mode 100644 .swift-version
create mode 100644 GzipSwift.podspec
diff --git a/.swift-version b/.swift-version
new file mode 100644
index 0000000..cb2b00e
--- /dev/null
+++ b/.swift-version
@@ -0,0 +1 @@
+3.0.1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7e8f7d0..80467a7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,13 @@
Change Log
==========================
+3.1.2
+--------------------------
+
+### New
+
+- Support CocoaPods.
+
3.1.1
--------------------------
diff --git a/GzipSwift.podspec b/GzipSwift.podspec
new file mode 100644
index 0000000..e3d7c86
--- /dev/null
+++ b/GzipSwift.podspec
@@ -0,0 +1,25 @@
+Pod::Spec.new do |s|
+ s.name = "GzipSwift"
+ s.version = "3.1.2"
+ s.summary = "Swift framework that enables gzip/gunzip Data using zlib."
+
+ s.homepage = "https://github.com/1024jp/GzipSwift"
+ s.license = { :type => "MIT",
+ :file => "LICENSE" }
+ s.author = { "1024jp" => "1024jp@wolfrosch.com" }
+
+ s.source = { :git => "https://github.com/1024jp/GzipSwift.git",
+ :tag => s.version }
+ s.source_files = 'Sources/*.swift'
+
+ s.module_name = 'Gzip'
+ s.osx.deployment_target = '10.9'
+ s.ios.deployment_target = '8.0'
+ s.watchos.deployment_target = '2.0'
+ s.tvos.deployment_target = '9.0'
+
+ s.requires_arc = true
+ s.library = 'z'
+ s.preserve_path = 'zlib/*'
+ s.pod_target_xcconfig = { 'SWIFT_INCLUDE_PATHS' => '$(PODS_ROOT)/GzipSwift/zlib' }
+end
diff --git a/README.md b/README.md
index e3453e4..1dfc012 100644
--- a/README.md
+++ b/README.md
@@ -51,6 +51,15 @@ GzipSwift is Carthage compatible. You can easily build GzipSwift adding the foll
```ruby
github "1024jp/GzipSwift"
```
+
+### Build via CocoaPods
+GzipSwift is available through [CocoaPods](http://cocoapods.org). To install
+it, simply add the following line to your Podfile:
+
+```ruby
+pod "GzipSwift"
+```
+
### For Linux platform with swift package manager
1. First you need to install zlib if you haven't installed yet:
From e626d0feb74ed1387053bf00c4cdfa82f68b788f Mon Sep 17 00:00:00 2001
From: 1024jp <1024jp@wolfrosch.com>
Date: Sat, 26 Nov 2016 00:18:12 +0900
Subject: [PATCH 3/4] Add CocoaPods badge to README
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 1dfc012..cc4c5f2 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,7 @@ GzipSwift
[![Swift](https://img.shields.io/badge/Swift-3.0.1-blue.svg)]()
[![platform](https://img.shields.io/badge/platform-macOS | iOS | watchOS | tvOS | Linux-blue.svg)]()
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
+[![CocoaPods compatible](http://img.shields.io/cocoapods/v/GzipSwift.svg?style=flat)](http://cocoadocs.org/docsets/GzipSwift)
[![Build Status](https://img.shields.io/travis/1024jp/GzipSwift/master.svg?style=flat)](https://travis-ci.org/1024jp/GzipSwift)
[![codecov.io](https://codecov.io/gh/1024jp/GzipSwift/branch/master/graphs/badge.svg)](https://codecov.io/gh/1024jp/GzipSwift)
[![License](https://img.shields.io/github/license/1024jp/GzipSwift.svg)](https://github.com/1024jp/GzipSwift/blob/develop/LICENSE)
From ce7e922cd7cca3da67a83784c4f3ebaacc2bf958 Mon Sep 17 00:00:00 2001
From: 1024jp <1024jp@wolfrosch.com>
Date: Sat, 26 Nov 2016 00:18:24 +0900
Subject: [PATCH 4/4] Update version number to 3.1.2
---
Project/Info.plist | 2 +-
Sources/Data+Gzip.swift | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Project/Info.plist b/Project/Info.plist
index ce892bf..5d3f53e 100644
--- a/Project/Info.plist
+++ b/Project/Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 3.1.1
+ 3.1.2
CFBundleVersion
$(CURRENT_PROJECT_VERSION)
NSPrincipalClass
diff --git a/Sources/Data+Gzip.swift b/Sources/Data+Gzip.swift
index 6e52253..1d03578 100644
--- a/Sources/Data+Gzip.swift
+++ b/Sources/Data+Gzip.swift
@@ -1,7 +1,7 @@
//
// Data+Gzip.swift
//
-// Version 3.1.1
+// Version 3.1.2
/*
The MIT License (MIT)