Skip to content

Commit

Permalink
Releasing version 7.0.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTelezhkin committed Feb 1, 2018
1 parent 21f26e6 commit 21783a1
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 34 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion DTModelStorage.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
8 changes: 5 additions & 3 deletions Source/Core/MemoryStorage+UpdateWithoutAnimations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
Expand Down
2 changes: 1 addition & 1 deletion Supporting files/Framework.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>7.0.1</string>
<string>7.0.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
7 changes: 7 additions & 0 deletions Tests/Specs/MemoryStorage/MemoryStorageSearchSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
34 changes: 5 additions & 29 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<table width="100%" >
<tr>
<th width="33%"><a href="http://brew.sh">Homebrew</a></td>
<th width="33%">Installer Script</td>
<th width="33%">Rubygems</td>
</tr>
<tr>
<td width="33%" align="center">macOS</td>
<td width="33%" align="center">macOS</td>
<td width="33%" align="center">macOS or Linux with Ruby 2.0.0 or above</td>
</tr>
<tr>
<td width="33%"><code>brew cask install fastlane</code></td>
<td width="33%"><a href="https://download.fastlane.tools">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>
<td width="33%"><code>sudo gem install fastlane -NV</code></td>
</tr>
</table>
Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew cask install fastlane`

# Available Actions
### test_ios11
Expand All @@ -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
Expand Down

0 comments on commit 21783a1

Please sign in to comment.