45 Commits

Author SHA1 Message Date
Mark VanderVoord f368744ca5 Updates for the new year 2026-01-23 11:19:02 -05:00
Mark VanderVoord a60383ec34 Update licenses to new standards... plus New Years bump 2025-01-01 12:05:55 -05:00
Mark VanderVoord 6b0587fce5 Fixes to latest stylistic warnings. 2024-08-01 12:12:08 -04:00
Mark VanderVoord c83f8bddf2 Working towards gemifying and automatically reporting version. 2024-08-01 11:47:58 -04:00
Mark VanderVoord 119f6607d9 Don't need to escape symbols in brackets 2024-04-02 19:28:29 -04:00
Mark VanderVoord 9cc8fb5302 Let's enable validation of examples. failures should trip errors.
Also make them verbose so we can see what is going on.
2024-04-02 18:44:35 -04:00
Mark VanderVoord 3a6f1f29a3 🪲 Fixed issue where -oblah.yml isn't parsed by powershell.
:fern: `-o blah.yml` also accepted as valid input now.
2024-03-20 15:55:59 -04:00
Mark VanderVoord a642b1fe49 Update to latest Unity and therefore newer Rubocop standards. Tweaked scripts to match latest standards. 2023-11-22 17:40:07 -05:00
Mark VanderVoord dcde998087 cleanup style 2021-01-16 22:20:16 -05:00
Mark VanderVoord af1818a652 Merge pull request #327 from Hannes103/feature/sub-folder-supprt
add optional folder argument to create_mock()
2021-01-07 17:59:10 -05:00
ollehu 70d5750659 Merge branch 'master' into master 2020-11-12 16:01:43 +01:00
Iñigo Huguet 334f46781a Allow parsing empty values for options in CLI arguments
If an option is passed via CLI, it cannot be passed with an
empty value because the Regex makes it to match 1 or more
characters.

For example, arguments `--mock_prefix=""` and `--mock_prefix=`
are invalid, because they don't match the regex and are not
recognized as options, so they're treated as files to mock.

Changing the regex to match 0 or more characters for the option
value, instead of 1 or more, solves the problem.
2020-11-04 09:42:36 +01:00
Olle Hynén Ulfsjöö ea061bbb50 Improve the regexps for parsing parameters to cmock.rb
Also, conform to the standard 80 character limit

Change-Id: I7830ddd5d65ccc06c96884c1c3d4575241f99e6d
2020-10-23 16:26:36 +02:00
Hannes Bachl 22a7228bbc add optional folder argument to create_mock() 2020-09-01 10:17:54 +02:00
mvandervoord 67858837d1 Update coding style to match our own official coding guidelines 2020-03-18 19:16:58 -04:00
mvandervoord 8885be7e55 Support alternative header file extension support (thanks @Tuc-an) 2020-03-18 15:08:21 -04:00
mvandervoord f5abf20f4b Add ability to generate skeleton from header. woo! 2020-03-12 12:20:33 -04:00
Mark VanderVoord dd791fe407 Remove support for versions of Ruby before 2.0 (as Rubylang doesn’t even support them anymore) 2017-03-20 16:18:09 -04:00
Mark VanderVoord d6efa5b88a Fix numerous small errors concerning precedence of plugins, particularly related to callbacks, return_thru_ptr, and expect_any_args 2016-01-07 13:38:59 -05:00
John Gunnison 6e7a0b9be7 Support dashes in command line option values 2015-04-24 15:51:22 -07:00
Jocelyn Le Sage 3def9e6011 Properly merge options. 2014-05-22 08:49:58 -04:00
Mark VanderVoord 85fa655023 - cmock now accepts any combo of yaml and command line options, applying them in the order they appear on the command line (thanks kylebhamilton for the suggestion!) 2014-05-21 15:26:43 -04:00
Mark VanderVoord 7f4d5c7306 Fixed symbol loading when using direct command line arguments 2014-04-15 11:34:02 -04:00
Mark VanderVoord 26b3f6ef65 Fix encoding issues for anyone using a somewhat modern Ruby (1.9 or greater) 2014-03-17 10:43:19 -04:00
Mark VanderVoord bb5fd622c3 * added ability to pass most options through the command line directly (see doc updates) 2013-10-01 08:26:13 -04:00
mvandervoord 0e12f087bd - Works with Ruby 1.8.6, 1.8.7, 1.9.1, 1.9.2 (and possibly others)
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@192 bf332499-1b4d-0410-844d-d2d48d5cc64c
2010-10-22 17:20:31 +00:00
mvandervoord 36de9c6fc4 - added copyright notices to code (oops)
- protected against people using extern "C"

git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@161 bf332499-1b4d-0410-844d-d2d48d5cc64c
2010-04-27 02:14:44 +00:00
mvandervoord 89737d59fe - beefed up unit tests for function pointers
- added module name to reduce chance of typedef name collisions.

git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@160 bf332499-1b4d-0410-844d-d2d48d5cc64c
2010-04-27 01:40:34 +00:00
mvandervoord 4a1a7bdb4d - CMock verbosity control
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@150 bf332499-1b4d-0410-844d-d2d48d5cc64c
2009-12-06 19:20:53 +00:00
mvandervoord c524ae7c9d - faster, stronger and lighter parser
- more robust comment removal
- disable plugins by default


git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@140 bf332499-1b4d-0410-844d-d2d48d5cc64c
2009-08-24 13:57:11 +00:00
mvandervoord 3e1651c937 * updated for better compatibility (now works with 1.8.6, 1.8.7, 1.9.0, 1.9.1)
* fixed bugs and cleaned up strict global ordering support (and added system test to prove it) 

git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@130 bf332499-1b4d-0410-844d-d2d48d5cc64c
2009-06-19 02:05:46 +00:00
mkarlesky e8f7468cd2 tweak to give parser proper header name for error reporting
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@118 bf332499-1b4d-0410-844d-d2d48d5cc64c
2009-05-28 04:08:01 +00:00
mkarlesky f63c2b4fc8 first stab at prettying up load_paths and require handling b/c of vendor/gems
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@96 bf332499-1b4d-0410-844d-d2d48d5cc64c
2009-05-14 19:33:26 +00:00
mkarlesky e6c84d9e07 completed first pass at testing slimmed down cmock_header_parser using new function prototype parser; added functionality to raise exception upon failed parsing or no prototypes in file to be parsed
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@95 bf332499-1b4d-0410-844d-d2d48d5cc64c
2009-05-14 19:10:42 +00:00
mkarlesky 500c30a5ce intermediate check in; integrating new parser and tests thereof yet in progress
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@93 bf332499-1b4d-0410-844d-d2d48d5cc64c
2009-05-14 05:18:45 +00:00
mvandervoord c081525fbc - updated header parser to pull in variable attribute list from configuration
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@76 bf332499-1b4d-0410-844d-d2d48d5cc64c
2009-04-15 12:04:37 +00:00
mvandervoord 492e319e11 * major changes to Expects to support structs, etc... not recommended for general consumption yet.
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@56 bf332499-1b4d-0410-844d-d2d48d5cc64c
2009-02-19 03:28:53 +00:00
mvandervoord c7ec4f5b9a * cleaned up interface to plugins
* plugins no longer need to implement unused functions
* config now is extensible to support changing plugin needs

git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@55 bf332499-1b4d-0410-844d-d2d48d5cc64c
2009-02-11 18:47:58 +00:00
mvandervoord c15115d596 * Runnable from command line
* Updated docs to better explain config and usage

git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@53 bf332499-1b4d-0410-844d-d2d48d5cc64c
2008-12-13 01:18:04 +00:00
mvandervoord 4e6061acc3 * fixed bug in Ignore plugin
* cleaned up config management to allow an option hash or yaml file

git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@52 bf332499-1b4d-0410-844d-d2d48d5cc64c
2008-12-12 02:09:57 +00:00
greg-williams 9bc2b9a008 - Added throwaway demo project
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@34 bf332499-1b4d-0410-844d-d2d48d5cc64c
2008-10-29 00:37:41 +00:00
mvandervoord 56d13b90f6 main object is now CMock instead of CMockSetup. Cleaned up the way objects are created, particularly related to plugins.
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@19 bf332499-1b4d-0410-844d-d2d48d5cc64c
2008-07-19 15:42:56 +00:00
mvandervoord 93555b7faf Lots of cleanup. Now generates identical code to earlier versions except varargs are broken.
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@10 bf332499-1b4d-0410-844d-d2d48d5cc64c
2008-06-01 22:16:57 +00:00
greg-williams 42fba80136 git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@5 bf332499-1b4d-0410-844d-d2d48d5cc64c 2008-06-01 18:09:28 +00:00
greg-williams ebb2b6e969 git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@2 bf332499-1b4d-0410-844d-d2d48d5cc64c 2008-06-01 13:58:18 +00:00