Commit Graph

50 Commits (4dffbed4fcc236b0e2029f54c5dbcc0dd81e5ffe)

Author SHA1 Message Date
Andy Meneely 35d1bd64c0 Playing around with html diffing on sanity test 2015-11-24 00:37:09 -05:00
Andy Meneely f33a74cada Samples: intro gist
Also make the sample regression spec more subdirectory friendly
2015-11-23 22:44:44 -05:00
Andy Meneely b00cc99dd0 Added a grid shape
Close #68
2015-10-26 23:59:51 -04:00
Andy Meneely d99e840ffd PNG/SVG: flipping is now supported.
Fixes #11
2015-10-26 23:31:16 -04:00
Andy Meneely 8ea553eb95 Updating specs for image cropping
Ripped out graphics_images_spec.rb for being annoyingly useless. Too many mock objects!
2015-10-26 22:52:21 -04:00
Andy Meneely 541c8d49ca Crop PNGs, now with more rounded corners!
Contributes to #11
2015-10-26 22:35:56 -04:00
Andy Meneely 94a35f6028 Update expected images for sanity test 2015-08-16 00:31:53 -04:00
Andy Meneely 8f977f5956 Update text_options.rb sample, and expected output 2015-07-26 23:25:43 -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 f16f285a0a Update expected draw_shapes.rb PNG for sanity test 2015-06-16 21:20:06 -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 9801188b47 Update expected png for star 2015-05-26 21:09:19 -04:00
Andy Meneely d957addfc3 Enabling regression tests again 2015-05-26 20:56:58 -04:00
Andy Meneely 3bbc787025 Add polygon method to dsl
Testing and documentation too.

Closes #67
2015-05-22 06:12:48 -04:00
Andy Meneely 0853b6a708 Finish regression testing of star 2015-05-21 18:29:38 -04:00
Andy Meneely b8536bcabe Regression and sanity testing for star
Closes #72
2015-05-21 09:29:01 -04:00
Andy Meneely a86974d5b8 Regression and sanity testing 2015-05-19 15:02:54 -04:00
Andy Meneely dab544a53b Add ellipse method
Also experimenting with using stroke_preserve, which in turn may make the other methods less repetitive.

Closes #66
2015-04-30 11:48:21 -04:00
Andy Meneely ac7769237c Fix the csv_import.rb sample to function properly 2015-04-30 10:05:34 -04:00
Andy Meneely 71defb9e33 Fix color handling with text outline stroking
Needed to set squibcolor prior to translating the coordinate system so that gradients are relative to the card (as is documented). This also means stroking is done AFTER drawing the text, which looks better anyway.
2015-04-30 09:54:41 -04:00
Andy Meneely 2e84cf4e6a Update load_images expected png for sanity testing 2015-04-30 09:37:57 -04:00
Andy Meneely 923f346575 Redesigning how config files are read, stored, and delegated
With the new design, we take the load off of deck.rb and simply delegate methods over to the new conf.rb. This means that things like `antialias` is now available as a method to the normal Squib scripts for easy checking (without being mutable). Squib::Conf also handles parsing and defaults, and any potential input validation we need to do in the future.

Typographer is also set up now as a deck-wide configuration. This may change in the future if we want typography customization per-command, although that seems like a strange use case.

Lots of tests for this one, and lots of cross-cutting concerns in this commit.

This commit also includes some tweaks to rspec tests, including tagging of slow tests for a `rake spec_fastonly`

Conflicts:
	spec/samples/samples_regression_spec.rb
	spec/spec_helper.rb
	squib.sublime-project
2015-04-28 20:31:53 -04:00
Andy Meneely 74865cb10f Sanity test: pixel-by-pixel comparison 2015-04-28 16:07:40 -04:00
Andy Meneely 5ea9ce619f Basic visual sanity test for better regression testing 2015-04-27 11:15:31 -04:00
Andy Meneely bed94e47ba Changing rspec sample regressions to one-at-a-time 2015-04-27 09:58:25 -04:00
Andy Meneely 0185f2dfcf Fixing up regression tests for release 2015-04-13 21:33:55 -04:00
Andy Meneely 063d5156d6 Allow configuration of typographical replacements, e.g. smart quotes
If you're living in a non-UTF-8 character set, then you can configure what quotes are smartly changed.
If my regexes are messing things up, you can also turn this off with smart_quotes: false
Also updated docs.

This closes #50
2015-04-07 21:21:00 -04:00
Andy Meneely 91ba48f80b Explicitly saving and restoring the matrix 2015-04-02 10:14:08 -04:00
Andy Meneely 784a0dcb90 Updating the regression test 2015-03-31 21:24:28 -04:00
Andy Meneely 574b76873e Updating regression tests, renamed bezier curve params 2015-03-26 19:50:12 -04:00
Andy Meneely 8876b27473 Merging in svg back end work. All but save_doc is done. 2015-02-20 22:56:07 -05:00
Andy Meneely 578c3cb6a0 Upgrading rspec, fixing mock objects bug 2015-02-13 13:26:22 -05:00
Andy Meneely b0b69186e7 Don't need these regression logs 2015-01-28 15:07:57 -05:00
Andy Meneely bfbf7a7eba Added support for linear and radial gradients
Closes #29
2015-01-26 22:22:09 -05:00
Andy Meneely f3e3082f0e Implement showcase feature
#Closes 26
2015-01-05 21:09:35 -05:00
Andy Meneely fd217294c5 Implemented sheet command 2014-12-31 00:47:02 -05:00
Andy Meneely 979cd701e6 Added a unicode sample
Removed the unicode from the text_options.rb sample so the regression test can be back online.
2014-12-30 11:53:55 -05:00
Andy Meneely f8f65f3de7 Support png scaling, but warns on use. 2014-12-09 22:59:49 -05:00
Andy Meneely 04b55d8b32 Finished CSV feature 2014-12-08 00:05:18 -05:00
Andy Meneely 44fd5ca745 Disabling the correct test this time 2014-11-24 09:56:45 -05:00
Andy Meneely a3e3b592fb Back to disabling these tests until I get answers 2014-11-24 09:43:39 -05:00
Andy Meneely cb63f94ac2 Attempting to re-enable old tests with new change 2014-11-20 03:41:18 -05:00
Andy Meneely 9e45726bdf Being more specific about encoding 2014-11-20 03:20:23 -05:00
Andy Meneely 996fab90bd Disabling the two regression test that fail, for now 2014-11-19 23:09:36 -05:00
Andy Meneely 99ab80fb51 Rewriting and refactoring Squib sample test 2014-11-19 22:49:12 -05:00
Andy Meneely 4c4c96b8b9 Disabling AGAIN for fixing the public broken build 2014-11-19 03:50:58 -05:00
Andy Meneely 550bb80d29 Test stability: scrubbing pango font description differently 2014-11-19 03:41:07 -05:00
Andy Meneely 4389c6d5d2 Disabling this test until it's more stable 2014-11-18 21:15:31 -05:00
Andy Meneely 069f8edb02 Don't need this anymore 2014-11-18 01:55:46 -05:00
Andy Meneely 99ac612b8a Regression testing: cairo mock object stores graphics calls
So the idea behind this is maintain an "expected value" for the sample runs. We store the graphics calls and their arguments as a readable text file. Any change in the samples will break this, but the idea is to make sure this doesn't get broken unexpectedly.

Rearranged the data files in specs
2014-11-18 01:53:00 -05:00