Kelvin Harron
088c021cbc
Update README.md for SPM instructions
...
specified the target to select as part of the SPM installation process
2023-06-03 14:39:07 +02:00
Matyáš Kříž
475322e609
Bump version.
2023-04-17 17:30:01 +02:00
nanashiki
9676d7e374
Up DEPLOYMENT_TARGETs
2023-04-17 17:27:11 +02:00
nanashiki
75a209c3ba
Fix String index is out of bounds crash
2023-04-17 17:24:25 +02:00
Matyáš Kříž
e29f10eac6
Bump version.
2023-04-11 23:19:48 +02:00
Kabir Oberai
4148a6a7ff
Support effectful properties
2023-04-11 23:17:51 +02:00
Kabir Oberai
a71ba74df1
Fix generator crashing for property wrappers with empty type.
2023-04-01 10:19:13 +02:00
Matyáš Kříž
fa66b6a0a0
Bump version.
2023-03-26 14:22:04 +02:00
Seth Deckard
6f41152d83
Fix Generator to handle reserved keywords
...
Allows for reserved keywords to be used as argument labels / parameters
in mocked types.
Fixes: https://github.com/Brightify/Cuckoo/issues/452
- Moves escaping util function to Utils and makes it internal since it
now needs to be used outside of `Generator`.
- Uses escaping function in areas affected by the bug.
- Renames set of reserved names to reflect the larger scope (no longer
used for just function names).
- Some minor clean-up to style and formatting on areas touched.
Example of the problem:
Generate a mock for a protocol with the function:
```
func escape(for: String) -> String
```
This would result in `for` as a function parameter used within the body
of the function for the mock and verification and stubbing proxies,
which would not compile. This change escapes keywords like this so the
generated code will compile.
See `TestedProtocol.withReservedKeywords` for a test example. An example
was added to `TestedClass` as well, but the real motivation for this is
protocols since conforming types can and often do use a different
parameter name so the argument label like `for` would never be used
within the body of the function.
2023-03-23 08:31:12 -04:00
Matyáš Kříž
a9469909b7
Bump version.
2023-03-17 16:26:12 +01:00
Matyáš Kříž
7d51beb752
Update CI.
2023-03-17 16:23:34 +01:00
Matyáš Kříž
41a70422fb
Update pbxproj.
2023-03-17 16:21:39 +01:00
David Steinacher
f0f77397a5
add missing () when closure is an autoclosure
2023-02-12 16:30:21 +01:00
Matyáš Kříž
835c61246a
Completely convert project to Tuist.
2023-01-07 18:58:48 +01:00
Farid Mammadov
cbb5f5d416
Add support async/await in Protocol with Associated Type.
2023-01-03 16:46:43 +01:00
Matyáš Kříž
102c9b3a10
Add forgotten file to the project.
2023-01-03 16:39:53 +01:00
sk409
8d7b893bc2
Support NSObjectProtocol inheritance for protocol.
2022-09-19 17:39:55 +02:00
Matyáš Kříž
64b1681e37
Bump version.
2022-09-01 17:04:31 +02:00
sk409
5a9301b97c
Remove closure argument name.
2022-09-01 17:00:52 +02:00
Matyáš Kříž
4b5a397f58
Bump version.
2022-08-16 19:40:27 +02:00
Antonio J Pallares
55149ddee9
test: add tests with `OCMQuantifier`s
2022-08-16 16:49:01 +02:00
Antonio J Pallares
a84978a0c1
feat: enable OCMock's OCMQuantifier for objcVerify function. Fixes #366
2022-08-16 16:48:58 +02:00
Yoji Ueda
0ff327d675
Remove unnecessary await expression in MockTemplate.
2022-08-16 16:42:21 +02:00
Matyáš Kříž
3df9608f5a
Bump version.
2022-07-24 16:18:58 +02:00
Roland Kakonyi
1b0af7cc4a
Fix missing attributes for Stubs.
2022-07-24 16:14:15 +02:00
Matyáš Kříž
efa47f2afa
Update Fastlane.
2022-06-20 21:43:35 +02:00
Matyáš Kříž
d3de8c0bfd
Bump version.
2022-06-20 21:29:45 +02:00
Tyler Thompson
5d52a7f75b
Add support for nested classes.
2022-06-17 19:06:07 +02:00
sk409
3f6e9a84e8
Add support for multiline method signatures.
2022-06-17 18:23:07 +02:00
Roland Kakonyi
a3c4ad13f7
Add support for unavailable platforms from available attributes.
2022-06-17 17:49:03 +02:00
Matyáš Kříž
6af1b4d09f
Remove duplicate attributes.
2022-05-30 20:28:33 +02:00
Matyáš Kříž
69c1c9aee6
Bump version.
2022-03-18 13:03:35 +01:00
Matyáš Kříž
de28aa5f3c
Revert "Add SPM support for Cuckoo+OCMock." because of SPM instability.
...
This reverts commit e4a0153485
.
2022-03-18 13:01:22 +01:00
Matyáš Kříž
084f5dbdc3
Fix automatic generator binary upload.
2022-03-17 21:14:20 +01:00
Matyáš Kříž
83b5c4e83b
Bump version.
2022-03-17 18:55:22 +01:00
Matyáš Kříž
dd8db792ba
Don't require a name range for method parameters.
2022-03-17 18:40:48 +01:00
Antonio J Pallares
e4a0153485
Add SPM support for Cuckoo+OCMock.
2022-03-10 19:53:38 +01:00
sk409
b1da946216
Ignore missing input paths.
2022-02-23 20:53:08 +01:00
sk409
2775830d13
Escape reserved keywords.
2022-02-13 17:46:04 +01:00
Matyáš Kříž
fe7b56381c
Bump version.
2022-01-19 17:28:56 +01:00
Matyáš Kříž
21a4fc39df
Update `.gitignore`.
2022-01-19 17:22:52 +01:00
Matyáš Kříž
249aba0930
Update `Podfile.lock`.
2022-01-19 17:22:09 +01:00
Ailton Vieira Pinto Filho
53b8ff4428
Add support for concurrency mocking.
2022-01-18 19:37:21 +01:00
Matyáš Kříž
6c6c7fa83c
Update PathKit, Spectre, Stencil.
2021-11-29 13:29:29 +01:00
Matyáš Kříž
6473adac0d
Make deployed binaries work for both Intel and M1 Macs.
2021-11-29 13:29:14 +01:00
Matyáš Kříž
79b13331e5
Bump version.
2021-11-19 08:05:56 +01:00
Matyáš Kříž
b7ff314d6b
Raise minimum deployment targets.
...
iOS to 9.0; Mac OS to 11.0
2021-11-19 08:04:03 +01:00
Matyáš Kříž
df8847df2d
Update gem dependencies.
2021-11-19 07:55:56 +01:00
Boris Spinner
7da80b2321
Skip cuckoo for SwiftUI preview builds
2021-11-19 07:47:25 +01:00
Akihiro Sakahara
eb1502c657
Bump Stencil version to 0.14.2.
2021-11-18 17:10:30 +01:00