Commit Graph

274 Commits

Author SHA1 Message Date
dmazzoni b0b64cf503 Support spaces in script path in build_generator 2019-02-23 11:58:47 +01:00
Maxim Berezhnoy 6e760b70ce consistent usage across the file 2019-02-23 11:42:23 +01:00
Maxim Berezhnoy 83e79fffd6 consistent variable usage 2019-02-23 11:42:23 +01:00
Matyáš Kříž 349fa1c154 Temporarily fix unintentional collision because of fail-safe classes being in the input file.
It creates way too many merge conflicts if we tried to apply the full fix here.
2019-01-31 13:24:26 +01:00
Matyáš Kříž 6fc3283bfc Check return type for equality as well. 2019-01-24 11:10:21 +01:00
Matthew Cross 944f2c7f8a Change SwiftKit to Brightify. 2019-01-24 11:10:08 +01:00
Matthew Cross 515a91c5ca Update generator and run script usage. 2019-01-24 11:09:54 +01:00
Matyáš Kříž 2bcce595b3 Add `—clean` option to the run script to rebuild the Cuckoo Generator. 2019-01-24 11:09:17 +01:00
Matyáš Kříž 1cd91fb1f4 Finish subimports. 2019-01-24 11:09:03 +01:00
Matyáš Kříž dd252b5b75 Generate correct import. 2019-01-24 11:09:03 +01:00
Matyáš Kříž 4f24586e9c Make regular expressions easier to modify and fix missing backslash. 2019-01-24 11:09:03 +01:00
Matyáš Kříž 312257727f Add support for importing individual types. 2019-01-24 11:09:03 +01:00
Matyáš Kříž e2bc56d7fc Add `FinalClassStub` to the fail-safe. 2019-01-24 11:08:16 +01:00
Matyáš Kříž 75e5ef54a8 Add name conflict in case Cuckoo Generator tries to generate `final` class as a fail-safe. 2019-01-24 11:08:16 +01:00
Matyáš Kříž 233a04fda5 Add `debugMode` capability to `Tokenizer` to output less information in debug mode. 2019-01-24 11:08:16 +01:00
Matyáš Kříž f9f947fc5b Ignore classes marked as `final`. 2019-01-24 11:08:16 +01:00
Matyáš Kříž aa0b7ec77a Use older string subscripting to compile on Xcode 9. 2019-01-24 11:08:16 +01:00
Matyáš Kříž 04c9db0400 Generate attributes for methods and variables. 2019-01-24 11:08:16 +01:00
Matyáš Kříž 5867e24421 Add basic attribute generation. 2019-01-24 11:07:08 +01:00
Matyáš Kříž 1b77516e83 Generate attributes. 2019-01-24 11:07:08 +01:00
Matyáš Kříž 2f6ab41bbc Add `@available` attribute support. 2019-01-24 11:05:37 +01:00
Matyáš Kříž 2961debaba Transform IUO return value as well. 2019-01-24 11:04:30 +01:00
Matyáš Kříž 7ad094cf78 Transform IUO into `Optional` to prevent errors. 2019-01-24 11:04:30 +01:00
Matyáš Kříž 9d6ecf889c Add class accessibility to required places. 2018-11-09 13:36:48 +01:00
Matyáš Kříž d29ab5f839 Show class accessibility. 2018-11-09 13:36:48 +01:00
Matyáš Kříž acf338e4a1 Fix two bugs introduced by code cleaning. 2018-11-09 13:36:14 +01:00
Matyáš Kříž 5c3c305216 Coalesce to `false` if there are no attributes. 2018-11-05 17:29:05 +01:00
Matyáš Kříž b22502a82b Bring back `fallthrough`. 2018-11-05 16:29:04 +01:00
Matyáš Kříž c558179b33 Don’t generate comments if not in debug mode. 2018-11-05 16:25:10 +01:00
Matyáš Kříž 231216b588 Code cleaning. 2018-11-05 15:12:00 +01:00
Tadeas Kriz 7fb9d2d6e8 Bump version. 2018-10-09 14:11:23 +02:00
Tadeas Kriz fa8231105a Fix escaping closure (crashing in Xcode 10). 2018-10-09 13:52:37 +02:00
Tadeas Kriz 12f9bac435 Fix warnings. 2018-10-09 13:52:23 +02:00
Marek Slavik 0fc242dcec Make project compilable. 2018-09-27 15:24:52 +02:00
Tadeas Kriz c6baeda34c Add first draft of a new Mock initialization DSL. 2018-07-06 15:39:08 +02:00
Tadeas Kriz ae465a4689 Add enableDefaultImplementation to protocol Mock. 2018-06-05 16:42:41 +02:00
Tadeas Kriz 59f2240831 Reintroduce support for pre-0.11.0 Cuckoo spies. 2018-06-05 16:35:51 +02:00
Matyáš Kříž 0a5c4f7f1d Remake `ContainerToken` filtering to be more effective and easier to add more filters in the future. (@TadeasKriz) 2018-04-27 13:55:28 +02:00
Matyáš Kříž 76472af91e Add regular expression `class` and `protocol` matching. 2018-04-27 13:55:28 +02:00
Matyáš Kříž 3793af312a Add `glob` switch that parses input paths as globs enabling for easier project scaling. 2018-04-27 13:55:28 +02:00
Matyáš Kříž 8cc707ff7c Build generator by default. Download using `--download [VERSION]` option. 2018-04-13 13:45:27 +02:00
Matyáš Kříž 79e19c6fe3 Modify the `run` bash script to allow the user to build rather than download the `cuckoo_generator`.
The option is `--build`, no shorthand.
2018-04-13 09:29:44 +02:00
Matyáš Kříž 682619c35f Use `Switch` instead of `Option`. 2018-04-06 20:01:30 +02:00
Matyáš Kříž bee9b97bf0 Add a debug flag that generates general info above methods when used. 2018-04-06 19:38:00 +02:00
Tadeas Kriz 5165e3fc52 Bump version. 2018-04-05 17:14:01 +02:00
Tadeas Kriz 7968fdae9d Make sure we keep the `cuckoo_generator` in the `Pods/Cuckoo` dir. 2018-04-05 17:10:27 +02:00
Tadeas Kriz 851a5f9755 Bump version. 2018-04-04 11:27:16 +02:00
Tadeas Kriz e920e14acc Fix handling of access_token and username in Fastfile. 2018-04-04 11:24:07 +02:00
Tadeas Kriz c6e23cdfc8 Make sure we bundle Swift runtime with the released generator. 2018-04-04 10:42:09 +02:00
Jake Van Alstyne 68dae06d96 Disable bitcode 2018-04-04 10:32:57 +02:00