From 21783a1205a7ebc0e277db17eb94ce82c2a95a1b Mon Sep 17 00:00:00 2001 From: Denys Telezhkin Date: Thu, 1 Feb 2018 14:00:30 +0200 Subject: [PATCH] Releasing version 7.0.2. --- CHANGELOG.md | 4 +++ DTModelStorage.podspec | 2 +- ...emoryStorage+UpdateWithoutAnimations.swift | 8 +++-- Supporting files/Framework.plist | 2 +- .../MemoryStorageSearchSpec.swift | 7 ++++ fastlane/README.md | 34 +++---------------- 6 files changed, 23 insertions(+), 34 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13a1052a..3ab2ba44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. # Next +## [7.0.2](https://github.com/DenHeadless/DTModelStorage/releases/tag/7.0.2) + +* Properly collect all updates from updateWithoutAnimations block. + ## [7.0.1](https://github.com/DenHeadless/DTModelStorage/releases/tag/7.0.1) * Fixed a bug, that prevented datasource from being updated when `updateWithoutAnimations` method on `MemoryStorage` was used. diff --git a/DTModelStorage.podspec b/DTModelStorage.podspec index 7700e7d3..05a4b0cd 100644 --- a/DTModelStorage.podspec +++ b/DTModelStorage.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'DTModelStorage' - s.version = "7.0.1" + s.version = "7.0.2" s.license = 'MIT' s.summary = 'Storage classes for datasource based controls.' s.homepage = 'https://github.com/DenHeadless/DTModelStorage' diff --git a/Source/Core/MemoryStorage+UpdateWithoutAnimations.swift b/Source/Core/MemoryStorage+UpdateWithoutAnimations.swift index f7215753..01ca1554 100644 --- a/Source/Core/MemoryStorage+UpdateWithoutAnimations.swift +++ b/Source/Core/MemoryStorage+UpdateWithoutAnimations.swift @@ -35,16 +35,18 @@ extension MemoryStorage let recordingDelegate = RecordingDelegate() self.delegate = recordingDelegate block() - recordingDelegate.update?.applyDeferredDatasourceUpdates() + recordingDelegate.updates.forEach { + $0.applyDeferredDatasourceUpdates() + } self.delegate = delegate } } private class RecordingDelegate: StorageUpdating { - var update : StorageUpdate? + var updates: [StorageUpdate] = [] func storageDidPerformUpdate(_ update: StorageUpdate) { - self.update = update + updates.append(update) } func storageNeedsReloading() {} diff --git a/Supporting files/Framework.plist b/Supporting files/Framework.plist index 6c538047..3f5caf83 100644 --- a/Supporting files/Framework.plist +++ b/Supporting files/Framework.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 7.0.1 + 7.0.2 CFBundleSignature ???? CFBundleVersion diff --git a/Tests/Specs/MemoryStorage/MemoryStorageSearchSpec.swift b/Tests/Specs/MemoryStorage/MemoryStorageSearchSpec.swift index ac67dfab..3173684c 100644 --- a/Tests/Specs/MemoryStorage/MemoryStorageSearchSpec.swift +++ b/Tests/Specs/MemoryStorage/MemoryStorageSearchSpec.swift @@ -96,7 +96,14 @@ class MemoryStorageSearchSpec: XCTestCase { storage.updateWithoutAnimations { storage.addItems([1,2]) } + expect(self.storage.items(inSection: 0)?.flatMap { $0 as? Int} ?? []) == [1,2] + + storage.updateWithoutAnimations { + storage.addItems([3,4]) + storage.addItems([5,6]) + } + expect(self.storage.items(inSection: 0)?.flatMap { $0 as? Int} ?? []) == [1,2,3,4,5,6] } func testEmptySection() diff --git a/fastlane/README.md b/fastlane/README.md index 51bde489..190d608a 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -8,25 +8,11 @@ Make sure you have the latest version of the Xcode command line tools installed: xcode-select --install ``` -## Choose your installation method: - - - - - - - - - - - - - - -
Homebrew -Installer Script -Rubygems -
macOSmacOSmacOS or Linux with Ruby 2.0.0 or above
brew cask install fastlaneDownload the zip file. Then double click on the install script (or run it in a terminal window).sudo gem install fastlane -NV
+Install _fastlane_ using +``` +[sudo] gem install fastlane -NV +``` +or alternatively using `brew cask install fastlane` # Available Actions ### test_ios11 @@ -49,16 +35,6 @@ fastlane test_tvos11 fastlane test_tvos10 ``` -### test_ios10_legacy -``` -fastlane test_ios10_legacy -``` - -### test_tvos10_legacy -``` -fastlane test_tvos10_legacy -``` - ### pod_lint ``` fastlane pod_lint