Skip to content

Commit b02024c

Browse files
committed
Version v3.0.1
1 parent 7ec7470 commit b02024c

File tree

4 files changed

+48
-16
lines changed

4 files changed

+48
-16
lines changed

Mini-Swift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'Mini-Swift'
5-
s.version = '3.0.0'
5+
s.version = '3.0.1'
66
s.swift_version = '5.0'
77
s.summary = 'The minimal expression of a Flux architecture in Swift.'
88

Package.resolved

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@
7777
"package": "Nimble",
7878
"repositoryURL": "https://github.com/Quick/Nimble",
7979
"state": {
80-
"branch": null,
81-
"revision": "b02b00b30b6353632aa4a5fb6124f8147f7140c0",
82-
"version": "8.0.5"
80+
"branch": "master",
81+
"revision": "eea5843b34beb559dd51cf004953f75028e47add",
82+
"version": null
8383
}
8484
},
8585
{

Package.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ let package = Package(
3838
.package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "5.0.0")),
3939
.package(url: "https://github.com/apple/swift-nio.git", .upToNextMajor(from: "2.7.1")),
4040
// Development
41-
.package(url: "https://github.com/Quick/Nimble", .branch("master")), // dev
42-
.package(url: "https://github.com/mattgallagher/CwlPreconditionTesting", .branch("master")), // dev
43-
.package(url: "https://github.com/minuscorp/ModuleInterface", from: "0.0.1"), // dev
44-
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.35.8"), // dev
45-
.package(url: "https://github.com/jpsim/SourceKitten", from: "0.26.0"), // dev
46-
.package(url: "https://github.com/shibapm/Rocket", from: "0.4.0"), // dev
47-
.package(url: "https://github.com/Realm/SwiftLint", from: "0.35.0"), // dev
48-
.package(url: "https://github.com/eneko/SourceDocs", from: "0.6.1"), // dev
49-
.package(url: "https://github.com/shibapm/PackageConfig.git", from: "0.12.2"), // dev
50-
.package(url: "https://github.com/shibapm/Komondor.git", from: "1.0.0"), // dev
51-
.package(url: "https://github.com/Carthage/Commandant.git", .exact("0.17.0")), // dev
41+
// .package(url: "https://github.com/Quick/Nimble", .branch("master")), // dev
42+
// .package(url: "https://github.com/mattgallagher/CwlPreconditionTesting", .branch("master")), // dev
43+
// .package(url: "https://github.com/minuscorp/ModuleInterface", from: "0.0.1"), // dev
44+
// .package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.35.8"), // dev
45+
// .package(url: "https://github.com/jpsim/SourceKitten", from: "0.26.0"), // dev
46+
// .package(url: "https://github.com/shibapm/Rocket", from: "0.4.0"), // dev
47+
// .package(url: "https://github.com/Realm/SwiftLint", from: "0.35.0"), // dev
48+
// .package(url: "https://github.com/eneko/SourceDocs", from: "0.6.1"), // dev
49+
// .package(url: "https://github.com/shibapm/PackageConfig.git", from: "0.12.2"), // dev
50+
// .package(url: "https://github.com/shibapm/Komondor.git", from: "1.0.0"), // dev
51+
// .package(url: "https://github.com/Carthage/Commandant.git", .exact("0.17.0")), // dev
5252
],
5353
targets: [
5454
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -73,7 +73,7 @@ let package = Package(
7373
name: "MiniPromises",
7474
dependencies: ["Mini"]
7575
),
76-
.testTarget(name: "MiniSwiftTests", dependencies: ["Mini", "MiniTasks", "MiniPromises", "TestMiddleware", "NIOConcurrencyHelpers", "RxSwift", "Nimble", "RxTest", "RxBlocking"]), // dev
76+
// .testTarget(name: "MiniSwiftTests", dependencies: ["Mini", "MiniTasks", "MiniPromises", "TestMiddleware", "NIOConcurrencyHelpers", "RxSwift", "Nimble", "RxTest", "RxBlocking"]), // dev
7777
],
7878
swiftLanguageVersions: [.version("5.1")]
7979
)

docs/MiniTasks.swift

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,47 @@ extension ObservableType where Self.Element: Mini.StateType {
9898
}
9999

100100
extension PrimitiveSequenceType where Self: RxSwift.ObservableConvertibleType, Self.Trait == RxSwift.SingleTrait {
101+
/**
102+
Dispatches an given action from the result of the `Single` trait. This is only usable when the `Action` is a `CompletableAction`.
103+
- Parameter action: The `CompletableAction` type to be dispatched.
104+
- Parameter dispatcher: The `Dispatcher` object that will dispatch the action.
105+
- Parameter mode: The `Dispatcher` dispatch mode, `.async` by default.
106+
- Parameter fillOnError: The payload that will replace the action's payload in case of failure.
107+
*/
101108
public func dispatch<A>(action: A.Type, on dispatcher: Mini.Dispatcher, mode: Mini.Dispatcher.DispatchMode.UI = .async, fillOnError errorPayload: A.Payload? = nil) -> RxSwift.Disposable where A: MiniTasks.CompletableAction, Self.Element == A.Payload
102109

110+
/**
111+
Dispatches an given action from the result of the `Single` trait. This is only usable when the `Action` is a `CompletableAction`.
112+
- Parameter action: The `CompletableAction` type to be dispatched.
113+
- Parameter key: The key associated with the `Task` result.
114+
- Parameter dispatcher: The `Dispatcher` object that will dispatch the action.
115+
- Parameter mode: The `Dispatcher` dispatch mode, `.async` by default.
116+
- Parameter fillOnError: The payload that will replace the action's payload in case of failure or `nil`.
117+
*/
103118
public func dispatch<A>(action: A.Type, key: A.Key, on dispatcher: Mini.Dispatcher, mode: Mini.Dispatcher.DispatchMode.UI = .async, fillOnError errorPayload: A.Payload? = nil) -> RxSwift.Disposable where A: MiniTasks.KeyedCompletableAction, Self.Element == A.Payload
104119

120+
/**
121+
Builds a `CompletableAction` from a `Single`
122+
- Parameter action: The `CompletableAction` type to be built.
123+
- Parameter fillOnError: The payload that will replace the action's payload in case of failure or `nil`.
124+
- Returns: A `Single` of the `CompletableAction` type declared by the action parameter.
125+
*/
105126
public func action<A>(_ action: A.Type, fillOnError errorPayload: A.Payload? = nil) -> RxSwift.Single<A> where A: MiniTasks.CompletableAction, Self.Element == A.Payload
106127
}
107128

108129
extension PrimitiveSequenceType where Self.Element == Never, Self.Trait == RxSwift.CompletableTrait {
130+
/**
131+
Dispatches an given action from the result of the `Completable` trait. This is only usable when the `Action` is an `EmptyAction`.
132+
- Parameter action: The `CompletableAction` type to be dispatched.
133+
- Parameter dispatcher: The `Dispatcher` object that will dispatch the action.
134+
- Parameter mode: The `Dispatcher` dispatch mode, `.async` by default.
135+
*/
109136
public func dispatch<A>(action: A.Type, on dispatcher: Mini.Dispatcher, mode: Mini.Dispatcher.DispatchMode.UI = .async) -> RxSwift.Disposable where A: MiniTasks.EmptyAction
110137

138+
/**
139+
Builds an `EmptyAction` from a `Completable`
140+
- Parameter action: The `EmptyAction` type to be built.
141+
- Returns: A `Single` of the `EmptyAction` type declared by the action parameter.
142+
*/
111143
public func action<A>(_ action: A.Type) -> RxSwift.Single<A> where A: MiniTasks.EmptyAction
112144
}

0 commit comments

Comments
 (0)