Commit Graph

1007 Commits (7399946ec25a06d989d3b9873297764821ef1bdf)

Author SHA1 Message Date
Andy Meneely bfe2c8c4a5 Put the stupid Mac issue on the front README page
Based on #88

[skip ci]
2015-07-26 21:57:45 -04:00
Andy Meneely d899795f2b Remove debug line 2015-07-26 21:50:54 -04:00
Andy Meneely 54185fe9eb Warn on non-existing layout
Fix #99 and refactor args_loader a bit
2015-07-26 21:50:43 -04:00
Andy Meneely 003a26ae68 Two new built-in layouts: fantasy.yml and economy.yml
Contributes to #97
2015-07-26 00:59:12 -04:00
Andy Meneely 4d2230cd34 Clean up the CHANGELOG
[skip ci]
2015-07-21 22:07:46 -04:00
Andy Meneely cddea47ba5 Upgrade Roo to 2.1.x
Looks like the main difference is that xlsm is now supported, so I added test for it.
2015-07-21 21:47:50 -04:00
Andy Meneely 70a5f48bda Add nil check for colors, just in case
Probably not possible, but provides a more descriptive error than before anyway.

Fixes #84.
2015-07-21 21:37:54 -04:00
Andy Meneely f21e9448e1 Warn when text is ellipsized
Closes #80
2015-07-21 21:31:50 -04:00
Andy Meneely 92d866548c Cleanup of img_dir and testing of input_file.rb 2015-07-21 21:04:23 -04:00
Andy Meneely 813b8f8600 Fix documentation on svg method 2015-07-21 20:47:09 -04:00
Andy Meneely 04ac3f730a Fix mock object tests 2015-07-21 20:44:08 -04:00
Andy Meneely 336c43069a Removing an over-engineered test 2015-07-21 20:27:26 -04:00
Andy Meneely e20c644a9a Implemented new args design for svg and png
As part of that implementation, text_embed now supports singleton expansion. Closes #54
2015-07-21 20:27:15 -04:00
Andy Meneely ff3d057d49 Add a force_id: true example to load_images 2015-07-21 20:17:08 -04:00
Andy Meneely 806cae192b Document #88 resolution in CHANGELOG 2015-07-12 00:57:57 -04:00
Andy Meneely 25b13fd592 Better ability to handle per-dsl-method defaults 2015-07-12 00:52:34 -04:00
Andy Meneely f2d693f8ff Updated debugging for new args classes 2015-07-12 00:51:57 -04:00
Andy Meneely 3783640889 Strip trailing and leading whitespace on text args 2015-07-12 00:35:50 -04:00
Andy Meneely 08d0ac2b60 Starting paint args class - not integrated yet.
Draw args also now requires custom_colors from Deck. (Can't trust caller to override the default.)
2015-07-12 00:06:27 -04:00
Andy Meneely ad15e0f933 Task "rake sanity" now does a clean build, and sanity_only is not clean 2015-07-11 11:04:13 -04:00
Andy Meneely 37a7210751 New spec for validating line caps
Because I'm obsessed with code coverage.
2015-07-10 13:03:22 -04:00
Andy Meneely c66c6bc4f0 Removed img_dir from set method, added specs 2015-07-10 12:43:56 -04:00
Andy Meneely b234a5a8e7 Actually backfill CHANGELOG for #56 and #96 2015-07-10 10:17:36 -04:00
Andy Meneely 8506104058 Backfill CHANGELOG for #56, #96 2015-07-10 10:14:09 -04:00
Andy Meneely 3354bf9b27 Merge pull request #96 from meltheadorable/bugfix/column-size-bug
fixes #56 by accounting for case that would produce zero rows
2015-07-10 10:08:49 -04:00
Melody 8674d8d946 updates rowify specs to merge default options and cover new test case 2015-07-08 23:47:49 -04:00
Melody 4bc8ba7455 fixes #56 by accounting for case that would produce zero rows 2015-07-08 22:28:36 -04:00
Andy Meneely e43f68d323 Ported text command over to the new args classes
* Involved a big rewrite of arg_loader to accomodate nil and false better. Sadly this meant dumping ||= for if-statements. Blech, but works.
  * Updates to regression tests are pretty trivial.
  * Removed graphics_text_spec because, even though it looks useful, with rake sanity it really isn't.
  * Exposed font on deck as well

Cleaned up graphics/text.rb too!
2015-07-07 23:59:23 -04:00
Andy Meneely 11f827cffa Documenting zip/map best practice, and learning Ruby Array
[skip ci]
2015-07-06 11:23:26 -04:00
Andy Meneely cc5c540be8 Updated regression specs
Mostly from changing colorify to always converting to a string
New ranges example for the idiom
New text options example for dotted

[skip ci]
2015-07-03 20:16:18 -04:00
Andy Meneely 1b22542655 Remove dead code 2015-07-03 16:06:00 -04:00
Andy Meneely 2dd3fc3365 Documented a range idiom
In reaction to #90

[skip ci]
2015-07-03 16:01:44 -04:00
Andy Meneely 79814a43ea Start migrating text over to new args system
Almost there. It's working fine with the sample, but next it's time to write validators to get all this arg logic out of text.rb and make it just about drawing text.

Yes, unit tests aren't updated yet.
[skip ci]
2015-07-03 02:11:32 -04:00
Andy Meneely 6aecdbbb4a Adding custom colors to the draw arg 2015-07-03 00:47:46 -04:00
Andy Meneely f16f285a0a Update expected draw_shapes.rb PNG for sanity test 2015-06-16 21:20:06 -04:00
Andy Meneely c931a860a1 Args refactoring: combine polygon, tri, and bezier args into coords
As a rule, I think it's better to group args classes together have some extra overhead of extracting unused parameters. For example, we don't *need* to extract "n" for the circle, but the ease of having logically grouped classes is better than having tons of different classes tailored to each command.
2015-06-16 21:14:43 -04:00
Andy Meneely b5903293d7 Layouts use strings as keys, so that must be realistic 2015-06-11 17:20:02 -04:00
Andy Meneely 78ee185fde Update sample to use cleaner syntax 2015-06-11 17:19:32 -04:00
Andy Meneely 243b3836c4 Refactor to remove instance_eval
When you have a hammer...
2015-06-11 17:19:17 -04:00
Andy Meneely c5e00f1877 Employing the new args refactoring on all shapes 2015-06-11 16:16:08 -04:00
Andy Meneely 8a7841d64f Add dash option to drawing operations
Currently only impacts rect, but it will impact others with the new design shortly
2015-06-08 15:26:33 -04:00
Andy Meneely 12c5cd675b Added line cap and join settings for rect and curve
More forthcoming - these are proof-of-concept
2015-06-08 14:17:46 -04:00
Andy Meneely c1e410fe72 First foray into args class refactoring: rect
So far, I really like this approach. It allows us to push validation logic out of the Card class and into its own set of classes that can be more easily tested.

Fixes #75, but we've got a lot more work to do in getting this full scale
2015-06-08 13:36:23 -04:00
Andy Meneely 6c60f21bb0 Refactored drawing to get fill_n_stroke
Contributes to #75
2015-06-04 16:40:55 -04:00
Andy Meneely 34851be5d7 Put release date on the changelog 2015-05-27 15:55:12 -04:00
Andy Meneely 9801188b47 Update expected png for star 2015-05-26 21:09:19 -04:00
Andy Meneely da0fe1b118 Onward and upward. 2015-05-26 21:04:15 -04:00
Andy Meneely 981a9eab0e I dub thee v0.6.0 2015-05-26 20:57:58 -04:00
Andy Meneely d957addfc3 Enabling regression tests again 2015-05-26 20:56:58 -04:00
Andy Meneely a20100f3f8 Hiding private stuff from public documentation 2015-05-26 20:55:11 -04:00