diff --git a/.jazzy.yaml b/.jazzy.yaml
index 9e80bf1c..40a4fd78 100644
--- a/.jazzy.yaml
+++ b/.jazzy.yaml
@@ -2,7 +2,7 @@ author: Przemysław Wośko, Andrzej Michnia
author_url: https://girappe.com
module: SwiftyMocky
sourcekitten_sourcefile: docs.json
-module_version: 3.3.2
+module_version: 3.3.3
github_url: https://github.com/MakeAWishFoundation/SwiftyMocky
copyright: 'Copyright © 2017 MakeAWishFoundation. All rights reserved.'
readme: guides/Overview.md
diff --git a/Makefile b/Makefile
index 6230b3dc..d3e1147b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
EXECUTABLE_NAME = swiftymocky
REPO = https://github.com/MakeAWishFoundation/SwiftyMocky
-VERSION = 3.3.2
+VERSION = 3.3.3
PREFIX = /usr/local
INSTALL_PATH = $(PREFIX)/bin/$(EXECUTABLE_NAME)
diff --git a/Podfile.lock b/Podfile.lock
index 577c76b1..b4566594 100644
--- a/Podfile.lock
+++ b/Podfile.lock
@@ -1,8 +1,8 @@
PODS:
- Sourcery (0.16.1)
- - SwiftyMocky (3.3.2):
- - SwiftyMocky/Core (= 3.3.2)
- - SwiftyMocky/Core (3.3.2):
+ - SwiftyMocky (3.3.3):
+ - SwiftyMocky/Core (= 3.3.3)
+ - SwiftyMocky/Core (3.3.3):
- Sourcery (>= 0.16)
DEPENDENCIES:
diff --git a/README.md b/README.md
index 9c073740..cd9fd7f0 100644
--- a/README.md
+++ b/README.md
@@ -127,7 +127,7 @@ Add **SwiftyMocky** to you **Package.swift** dependencies:
```swift
dependencies: [
- .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "3.3.2"),
+ .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "3.3.3"),
]
```
@@ -367,11 +367,11 @@ SwiftyMocky is available under the MIT license. See the [LICENSE][link-license]
-[link-docs]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/3.3.2/docs/index.html
-[link-docs-features]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/3.3.2/docs/supported-features.html
-[link-docs-installation]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/3.3.2/docs/installation.html
-[link-docs-installation-carthage]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/3.3.2/docs/installation.html#installation-carthage
-[link-docs-setup]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/3.3.2/docs/setup-in-project.html
+[link-docs]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/3.3.3/docs/index.html
+[link-docs-features]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/3.3.3/docs/supported-features.html
+[link-docs-installation]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/3.3.3/docs/installation.html
+[link-docs-installation-carthage]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/3.3.3/docs/installation.html#installation-carthage
+[link-docs-setup]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/3.3.3/docs/setup-in-project.html
diff --git a/Sources/SwiftyMockyCLICore/Application.swift b/Sources/SwiftyMockyCLICore/Application.swift
index 9417b6de..b9e6eda7 100644
--- a/Sources/SwiftyMockyCLICore/Application.swift
+++ b/Sources/SwiftyMockyCLICore/Application.swift
@@ -6,7 +6,7 @@ public class Application {
// MARK: - Properties
- public let version = "3.3.2"
+ public let version = "3.3.3"
public var pwd = Path(ProcessInfo.processInfo.environment["PWD"] ?? "")
public var handle: (Error) -> Void = { error in
switch error {
diff --git a/Sources/Templates/Mock.swifttemplate b/Sources/Templates/Mock.swifttemplate
index 8675601e..b7cb21b4 100644
--- a/Sources/Templates/Mock.swifttemplate
+++ b/Sources/Templates/Mock.swifttemplate
@@ -36,7 +36,7 @@ func stringArray(fromArguments arguments: [String: Any], forKey key: String) ->
}
}
_%>
-// Generated with SwiftyMocky 3.3.2
+// Generated with SwiftyMocky 3.3.3
import SwiftyMocky
#if !MockyCustom
diff --git a/SwiftyMocky-Runtime/Info.plist b/SwiftyMocky-Runtime/Info.plist
index 25e7c856..ccef5262 100644
--- a/SwiftyMocky-Runtime/Info.plist
+++ b/SwiftyMocky-Runtime/Info.plist
@@ -15,7 +15,7 @@
-
-
- register(_:match:)
-
- Register sequence comparator, based on elements comparing.
- -
@@ -752,7 +733,7 @@ Return Value
Swift
-public func Given<T>(_ object: T, _ method: T.Given, _ policy: StubbingPolicy = .default) where T : Mock
+ public func Given<T: Mock>(_ object: T, _ method: T.Given, _ policy: StubbingPolicy = .default)
Swift
-public func Given<T>(_ type: T.Type, _ method: T.StaticGiven, _ policy: StubbingPolicy = .default) where T : StaticMock
+ public func Given<T: StaticMock>(_ type: T.Type, _ method: T.StaticGiven, _ policy: StubbingPolicy = .default)
All changes to SwiftyMocky project will be documented in this file.
+
-
-
- register(_:match:)
-
- Register sequence comparator, based on elements comparing.
- -
@@ -752,7 +733,7 @@ Return Value
Swift
-public func Given<T>(_ object: T, _ method: T.Given, _ policy: StubbingPolicy = .default) where T : Mock
+ public func Given<T: Mock>(_ object: T, _ method: T.Given, _ policy: StubbingPolicy = .default)
Swift
-public func Given<T>(_ type: T.Type, _ method: T.StaticGiven, _ policy: StubbingPolicy = .default) where T : StaticMock
+ public func Given<T: StaticMock>(_ type: T.Type, _ method: T.StaticGiven, _ policy: StubbingPolicy = .default)
All changes to SwiftyMocky project will be documented in this file.
+Join our community on Slack! -> [invitation link here][link-slack]
-Check out guides, or full documentation
+Check out guides, or full documentation
We consider current version as stable. We are moving toward using the new Mockfile but the previous configuration format would be still supported, until SwiftyMocky 4.0. Library works with Swift 4.1, 4.2, 5.0 and Sourcery 0.16.0.
+We consider current version as stable. We are moving toward using the new Mockfile but the previous configuration format would be still supported, until SwiftyMocky 4.0. Library works with Swift 4.1, 4.2, 5.0 and Sourcery 0.16.0.
While it is technically possible to integrate SwiftyMocky on Linux targets, there is no Mock generation feature there yet.
@@ -357,13 +357,13 @@Then execute carthage update
For Carthage, few additional steps are required ⚠️. For detailed install instructions, see full documentation.
+For Carthage, few additional steps are required ⚠️. For detailed install instructions, see full documentation.
Add SwiftyMocky to you Package.swift dependencies:
dependencies: [
- .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "3.3.2"),
+ .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "3.3.3"),
]
@@ -376,15 +376,15 @@ Annotate your protocols that are going to be mocked, making them adopt AutoMockable
protocol, or adding annotation comment above their definition in the source code.
Mocks are generated from your project root directory, based on configuration inside Mockfile.
+Mocks are generated from your project root directory, based on configuration inside Mockfile.
> swiftymocky setup # if you don't have a Mockfile yet
> swiftymocky doctor # validate your setup
> swiftymocky generate # generate mocks
-More informations about CLI and mock generation
+More informations about CLI and mock generation
-If you don’t want to migrate to our CLI and prefer to use raw
Sourcery, please refer to this section in documentation.
If you don’t want to migrate to our CLI and prefer to use raw
Sourcery, please refer to this section in documentation.
Full documentation is available here, as well as through docs directory.
+Full documentation is available here, as well as through docs directory.
-Guides - Table of contents
+Guides - Table of contents
-Changelog is available here
+Changelog is available here
For list all supported features, check documentation here or [guides][link-guides-features]
+For list all supported features, check documentation here or [guides][link-guides-features]
For more examples, check out our example project, or examples section in guides.
+For more examples, check out our example project, or examples section in guides.
To run the example project, clone the repo, and run pod install
from the Example directory first.