diff --git a/PHAssetResourceInputStream.podspec b/PHAssetResourceInputStream.podspec index cbe1bcd..3f57f18 100644 --- a/PHAssetResourceInputStream.podspec +++ b/PHAssetResourceInputStream.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'PHAssetResourceInputStream' - s.version = '0.0.3' + s.version = '0.0.4' s.license = { :type => 'MIT', :file => 'LICENSE.md' } s.summary = 'PHAssetResourceInputStream is an input stream implementation library for assets from Photos Framework' s.homepage = 'https://github.com/fromcelticpark/PHAssetResourceInputStream' diff --git a/README.md b/README.md index 9f22c05..f0a1e79 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Build Status](https://travis-ci.org/fromcelticpark/PHAssetResourceInputStream.svg?branch=master)](https://travis-ci.org/fromcelticpark/PHAssetResourceInputStream) ![Version](https://img.shields.io/cocoapods/v/PHAssetResourceInputStream.svg?style=flat) ![Platform](https://img.shields.io/cocoapods/p/PHAssetResourceInputStream.svg?style=flat) ![Swift](https://img.shields.io/badge/%20in-swift%203.0-orange.svg) @@ -27,7 +28,7 @@ Bellow is the example of getting the size from a `PHAssetResource`: ```swift let dataProducer = PHAssetResourceDataProducer(assetResource: assetResource) -var dataGenerator = DataGeneratorFromDataProducer(dataProducer: dataProducer) +let dataGenerator = DataGeneratorFromDataProducer(dataProducer: dataProducer) do { var size = 0 @@ -35,15 +36,13 @@ do { size += data.length } print(size) -} catch { - print("error occured") +} catch let error { + print("Error occured: \(error)") } ``` ## TODO - [-] Add an example project -- [-] Add Travis CI support -- [-] Add tests for `PHAssetResourceInputStreamDataSource` ## Installation