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
11 years ago
Andy Meneely
4a0c5e78b6
Fix PDF scaling issue
...
Properly compute the size of the PDF based on DPI and PDF-specific resolution (i.e. 72dpi).
Closes #62
11 years ago
Andy Meneely
0185f2dfcf
Fixing up regression tests for release
11 years ago
Andy Meneely
19cad2cdb8
Using a platform-specific fix for zero-width letters on embedding icons
...
Contributes to #30 and our zero-width letter woes.
11 years ago
Andy Meneely
91ba48f80b
Explicitly saving and restoring the matrix
11 years ago
Andy Meneely
c9f9235be7
Attempting travis fix by saving and restoring the matrix
11 years ago
Andy Meneely
574b76873e
Updating regression tests, renamed bezier curve params
11 years ago
Andy Meneely
cb33e8a40e
Updating unit tests
11 years ago
Andy Meneely
2caacaeece
Fixing compatibility with linux os
...
Thank you, Travis! Turns out the cairo gem isn't perfectly the same in Linux...
11 years ago
Andy Meneely
f49bff2388
Add antialias config option
...
Closes #41
11 years ago
Andy Meneely
612c042d52
SVG backend: PDF implemented, tests passing
...
Wrapping up the svg backend work
Still some bugs to stamp out, but this is getting close to release ready.
11 years ago
Andy Meneely
8876b27473
Merging in svg back end work. All but save_doc is done.
11 years ago
Andy Meneely
a9d6ffda75
Refactoring specs, now with less leakage!
11 years ago
Andy Meneely
578c3cb6a0
Upgrading rspec, fixing mock objects bug
11 years ago
Andy Meneely
d2543473c7
Fix a leftover x,y stroke on circles
...
Fixes #35
11 years ago
Andy Meneely
7a53f68393
Implementing mask feature for images
...
Fixes #32 .
11 years ago
Andy Meneely
bfbf7a7eba
Added support for linear and radial gradients
...
Closes #29
11 years ago
Andy Meneely
c287e6137c
Unit conversion feature added, tested, documented
11 years ago
Andy Meneely
f8f65f3de7
Support png scaling, but warns on use.
11 years ago
Andy Meneely
d5181302ad
Implementing ink extent return values
11 years ago
Andy Meneely
d4f0105785
Image rotation support for png and svg commands
...
With unit tests and other refactorings
11 years ago
Andy Meneely
20600a97e6
Rotation works better now!!
11 years ago
Andy Meneely
4bdf37e4dc
Some more tests to round out the coverage
11 years ago
Andy Meneely
c52c22ddb5
New mock specs for shapes and save
11 years ago
Andy Meneely
c6e85b0e46
Refactoring to use case more, fixed build
11 years ago
Andy Meneely
f4d2d759c1
Allowing strings for some inputs on text
...
Also writing mock object tests
11 years ago