Skip to content

Commit

Permalink
Fix data source index paths
Browse files Browse the repository at this point in the history
  • Loading branch information
srdanrasic committed Sep 15, 2016
1 parent ddc081a commit da6421e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0-GM-CANDIDATE
6 changes: 3 additions & 3 deletions Bond.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Bond"
s.version = "5.0.0-beta3"
s.version = "5.0.0-beta4"
s.summary = "A Swift binding framework"

s.description = <<-DESC
Expand All @@ -21,12 +21,12 @@ Pod::Spec.new do |s|
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.10"
s.tvos.deployment_target = '9.0'
s.source = { :git => "https://github.com/SwiftBond/Bond.git", :tag => "v5.0.0-beta3" }
s.source = { :git => "https://github.com/SwiftBond/Bond.git", :tag => "v5.0.0-beta4" }
s.source_files = 'Sources/**/*.swift', 'Bond/*.{h,m,swift}'
s.ios.exclude_files = "Sources/AppKit"
s.tvos.exclude_files = "Sources/AppKit"
s.osx.exclude_files = "Sources/UIKit"
s.requires_arc = true

s.dependency 'ReactiveKit', '~> 3.0.0-beta2'
s.dependency 'ReactiveKit', '~> 3.0.0-beta4'
end
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "ReactiveKit/ReactiveKit" "v3.0.0-beta2"
github "ReactiveKit/ReactiveKit" "v3.0.0-beta4"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/ReactiveKit
8 changes: 4 additions & 4 deletions Sources/ObservableArray.swift
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ extension ObservableArrayEvent: DataSourceEventProtocol {
case .initial:
return .reload
case .inserts(let indices):
return .insertRows(indices.map(IndexPath.init))
return .insertRows(indices.map { IndexPath(row: $0, section: 0) })
case .deletes(let indices):
return .deleteRows(indices.map(IndexPath.init))
return .deleteRows(indices.map { IndexPath(row: $0, section: 0) })
case .updates(let indices):
return .reloadRows(indices.map(IndexPath.init))
return .reloadRows(indices.map { IndexPath(row: $0, section: 0) })
case .move(let from, let to):
return .moveRow(IndexPath(index: from), IndexPath(index: to))
return .moveRow(IndexPath(row: from, section: 0), IndexPath(row: to, section: 0))
case .beginBatchEditing:
return .beginUpdates
case .endBatchEditing:
Expand Down

0 comments on commit da6421e

Please sign in to comment.