28 Commits

Author SHA1 Message Date
88069f045c Fix docs issues.
Update scripts to match latest rubocop.
Fix hex length of unity printf feature.
2023-11-07 23:48:48 -05:00
a7639eeb54 Bump rubocop up to newer ruby versions (in progress) 2023-02-16 16:40:23 -05:00
36259d46b6 Merge PR #545 2023-02-06 15:15:43 -05:00
b44c2dd095 Fix broken YAML parsing on later Rubies with Psych >=4.0
YAML.load is now interpreted as YAML.safe_load, which breaks where the
YAML file contains aliases. If we can assume our yaml files are
trusted (since this a development tool), we can check for the presence
of YAML.unsafe_load and use it instead if it exists.
2022-05-27 15:08:11 +01:00
8e1e9c18ab Fix ruby style warnings as reported by rubocop 2021-04-15 22:22:33 +02:00
0b899aec14 Fix conditional issue in generator script.
Bump version.
2021-01-26 08:59:27 -05:00
fcab680286 Ruby script cleanup.
Fix warnings.
Remove 32-bit tests from standard suite because they're not running on most platforms.
2021-01-16 21:03:18 -05:00
76c3755fe3 Add guard TEST on test module template
With a test file guarded we can include this file on IDE project
(MPLAB X in my case) and compile without excluding test files.
Excluding test files on MPLAB X disable autocompletion and function
navigation.
2020-09-07 10:37:26 +02:00
2c3e75e859 Fixed issue #486 2020-03-17 20:38:11 -04:00
3b5b491860 sub in '_' for '-' in define and test name in module generator 2019-12-26 01:10:09 -05:00
eb0bd42f0d Updated to newer coding standard 2019-10-24 15:33:41 -04:00
a59db2bdbf add a blank line after #include "unity.h"
The include must be in the first line, else you may expect some issues.
Some autoformat tools could sort the includes alphabetically and could
break the test.
2019-06-27 08:28:52 +02:00
ead95b3ab8 Removed leading underscore from module generator header guards. 2019-02-22 08:38:29 +11:00
6b657c6f17 Fix (most) Rubocop warnings. 2018-11-28 13:27:00 -05:00
c1bc32dc58 - Generator will not change names by default
- Fixed some style issues.
2017-06-25 13:58:31 -04:00
3e0a7121fb Started to flesh out rubocop settings for this project. Added rakefile tasks to do so. Updated first script to make it compliant. 2017-03-28 15:48:28 -04:00
3062c39725 Starting to enforce our coding style. The first step is that we’ve pulled in Rubocop to check out Ruby syntax. There is likely a bit of customization to do yet AND there is definitely that backlog of todo’s that we just told it to ignore. 2017-03-28 08:44:32 -04:00
7b51355e5a Module generator finishes for partially existing files
This resolves #219. When generating a new module, if all the files to
generate already exist then it fails as before. If some of the files
already exist, then the files that need to be created are created. Any
existing files are not changed.

Also added a bunch of tests for this feature via rspec. Run them from
the test folder with `rake spec`.
2016-12-02 13:49:07 -07:00
37049a3a20 Fixed error when path provided with module name. 2016-11-28 23:57:17 -07:00
4386cf356f Added to Module Generator:
- configurable case.
- better passing of includes and boilerplate information
- test only pattern
- optional naming conventions for case
2016-11-22 14:24:24 -05:00
4e2f0381cc Add ability to inject correct mock prefix 2016-11-21 15:19:16 -05:00
661c1b2d56 Boost version and remove some debug puts statements 2016-10-27 23:06:18 -04:00
2ce8618014 refactor generate_module so that it can be called as a class from within Ceedling (much like the test runner generator) 2016-10-27 17:33:13 -04:00
b3bc196ab3 making new flush routines work under all defined conditions. 2016-06-21 10:01:34 -04:00
33325f4a0b More fixes to line endings 2016-01-07 14:20:59 -05:00
26c61f611f git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@109 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e 2010-12-27 17:33:08 +00:00
3fbc034e7d - restored examples to working condition
- restored makefiles to working condition
- updated files to include copyright notice
- fixed bug in string array comparisons
- ignored tests no longer run teardown
- tests failing for uncaught cexceptions now get exception id reported

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@70 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-04-26 01:10:48 +00:00
5e6a64bca4 - added missing generate_module script
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@50 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-12-28 18:34:33 +00:00