Releases: NicholasTD07/SwiftDailyAPI
Moving To CocoaPods, From Carthage
- Use CocoaPods as dependency manager
- Drop support for Carthage
Sad, you cannot support both of them together somehow.
SWEEEEEEEEET Swift 2
- Update to Swift 2
- All tests pass!
NB Not a single change related to Quick and Nimble. Big fat claps 👏👏👏 for the Quick team for creating such an un-breaking API!
Async Decoding
Int subscript for TimelineCollection with sections in TableView in mind
Fix Int subscript for TimelineCollection to play nice with TabliView.
Basically it means the nth item in a TimelineCollection should be the nth item going backward from the end of the collection, i.e. timeline[n] == timeline[timeline.endIndex - 1 - n].
This plays well with how UITableView orders the sections in itself.
-- Top --
-- Section 0 -- ... -- timeline[endIndex - 1] --
-- Section 1 -- ... -- timeline[endIndex - 2] --
-- Section 2 -- ... -- timeline[endIndex - 3] --
.
.
.
TimelineCollection confirms to CollectionType
TimelineCollection gets count, indices, isEmpty, filter, map for free.
Added
TimelineCollectionconfirms toCollectionTypeb172342
DailyInMemoryStore
Mainly added the DailyInMemoryStore and TimelineCollection for it.
And updated to Xcode 7.0 and Swift 2.0. YEAH!!!!1!
Added
- Add
NSDate.daysAfter557f070
DailyInMemoryStore
- Use
TimelineCollectionto store dailies inDailyInMemoryStoref1a6ef1
TimelineCollection
- Add
TimelineCollectionandDateIndexf5d24b7 - Add spec for
TimelineCollectionaa41da5 DateIndexdefaults to init with today's date 09ed7d9
Changed
- Handlers in
DailyAPInow take non-nil values only 6d174eb
Xcode 7.0 and Swift 2.0
Fixed
- Correct
NSDate.daysBeforeto return earlier dates. 1bb1559 - Fix the path for
DailyAPI.daily(forDate:)6fcf6b4
P.S.
The 1 in YEAH!!!!1! at the beginning is intended.
DailyAPI is Ready to Go
Added
API
Model
- Decodable
Commenta5b3931
Misc
- Note:
completionHandlerswill be called onNSThread.mainThread()e68a21e toNSDatemethod to parsedateinDaily4fe1796- Performance test with real data 52bf5fc
Improved
- Add
finalfor better performance c528bcf - Type converting/decoing is done by extension to Argo 4fe1796, a65ed13
- Add documentation for functions in
DailyAPI3019b49 - More detailed example code in README.md 329dfdc
Changed
- Rename
DailyNewstoDaily596f48f - Move
dateFormatintoDailyConstantsbcdc817 - Mark all
createfunctions as private b41e459
Highlights
- The magical power of Generics and Emacs e9c3bd8
Generic Function is AWESOME
Extracted main body of the following methods into a generic function DailyAPI.request(URLRequest:, completionHandler:).
DailyAPI.latestDailyDailyAPI.dailyNewsDailyAPI.news
DailyAPI.news(newsId:)
Added
DailyAPI.news- Decodable
Newsmodel
DailyAPI.dailyNews(forDate:)
Added
DailyAPI.dailyNews(forDate:)
Changed
- Ignore
Carthage/Buildas a file - iPhone Deployment Target to 8.0 in Target Settings