From 07b80385e6b4d321f0029b4784175c61b93af16d Mon Sep 17 00:00:00 2001 From: shnhrrsn Date: Sat, 14 Oct 2017 17:45:05 -0400 Subject: [PATCH] 2.2.0 --- EGOCache.podspec | 17 +++++++++++------ Info.plist | 2 +- README.markdown | 31 +++++++++++++++++-------------- 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/EGOCache.podspec b/EGOCache.podspec index bd38a55..7d9f036 100644 --- a/EGOCache.podspec +++ b/EGOCache.podspec @@ -1,12 +1,17 @@ Pod::Spec.new do |s| s.name = "EGOCache" - s.version = "2.1.3" - s.summary = "Fast Caching for Objective-C (iPhone & Mac Compatible)." - s.description = "EGOCache is a simple, thread-safe key value cache store. It has native support for NSString, UI/NSImage, and NSData, but can store anything that implements . All cached items expire after the timeout, which by default, is one day." + s.version = "2.2.0" + s.summary = "Fast Caching for Objective-C (Works with macOS, iOS, tvOS and watchOS)." + s.description = "EGOCache is a simple, thread-safe key value cache store for macOS, iOS, tvOS and watchOS." s.homepage = "https://github.com/enormego/EGOCache" s.license = "MIT" - s.author = "Enormego, Shaun Harrison" - s.source = { :git => "https://github.com/enormego/EGOCache.git", :tag => "v" + s.version.to_s } + s.author = "Shaun Harrison" + s.social_media_url = "http://twitter.com/shnhrrsn" + s.source = { :git => "https://github.com/enormego/EGOCache.git", :tag => s.version.to_s } s.requires_arc = true - s.source_files = "*.{h,m}" + s.source_files = "Sources/*.{h,m}" + s.osx.deployment_target = "10.8" + s.ios.deployment_target = "7.0" + s.tvos.deployment_target = "9.0" + s.watchos.deployment_target = "2.0" end diff --git a/Info.plist b/Info.plist index 46ef58c..609b03e 100644 --- a/Info.plist +++ b/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.1.3 + 2.2.0 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/README.markdown b/README.markdown index 1bf2505..7b67fef 100644 --- a/README.markdown +++ b/README.markdown @@ -1,25 +1,28 @@ -# About EGOCache 2.x -EGOCache is a simple, thread-safe key value cache store. It has native support for `NSString`, `UI/NSImage`, and `NSData`, but can store anything that implements ``. All cached items expire after the timeout, which by default, is one day. +# EGOCache +EGOCache is a simple, thread-safe key value cache store for macOS, iOS, tvOS and watchOS. -# Requirements +It has native support for `NSString`, `UIImage`, `NSImage`, and `NSData`, but can store anything that implements ``. All cached items expire after the timeout, which by default, is one day. -* ARC -* Blocks -* iOS or OS X +## Installation -# Changes in 2.0 +### Carthage -The public interface in 2.0 is largely the same, with the exception of `[EGOCache currentCache]` being deprecated in favor of `[EGOCache globalCache]`. You can now create your own instances of EGOCache and tell it to store wherever, this can be good for dividing up caches in different sections of your app. +``` +github "enormego/EGOCache" ~> 2.2.0 +``` -Internally, EGOCache was largely rewritten to take advantage of libdispatch and is far more stable/performant when handling saves from multiple threads than it was in the past. +### CocoaPods -One other notable internal change for users upgrading from 1.0 to be aware of, is UIImage's are no longer stored via `UIImagePNGRepresentation`. They're stored now by archiving UIImage itself, which allows us to retain information such as image scale, orientation, and also store the image in it's native type, so JPEG's are no longer inflated to PNG sizes. If you were previously saving images via `setImage:forKey:`, but for some reason retrieving them via `dataForKey:`, you'll need to update your code to account for this. +``` +pod 'EGOCache', '~> 2.2.0' +``` -# Questions -Feel free to contact info@enormego.com if you need any help with EGOCache. +### Without a dependency manager -# License -Copyright (c) 2015 enormego +Drag EGOCache.h and EGOCache.m into your project. + +## License +Copyright (c) 2017 enormego Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal