Commit Graph

266 Commits (aedb139f0d48f093b67ef4f45de9306a76592260)

Author SHA1 Message Date
Andy Meneely 2020b5a67a sanity: fixing lots of tests
apparently i totally borked a lot of sanity tests. should be fixed now.

BORK BORK BORK
2017-11-06 23:09:48 -05:00
Andy Meneely 60ca032d2d cli: unit tests for advanced template 2017-10-10 10:36:06 -04:00
Andy Meneely 498a8224e7 samples: fix to be more consistent 2017-10-06 11:00:14 -04:00
Andy Meneely 2362e189d7 new methods: safe_zone and cut_zone 2017-10-05 23:36:53 -04:00
Andy Meneely d07fd1f478 regression fix 2017-10-05 20:03:46 -04:00
Damien Salvador 44b899181a save_pdf: right-to-left support
# Conflicts:
#	CHANGELOG.md
2017-10-05 20:00:21 -04:00
Clarence "Sparr" Risher 8509ab5728 change x= to *=, add unit tests and improve existing tests 2017-10-05 19:41:43 -04:00
Clarence Sparr Risher 2a86b8f215 fix save_sheet to calculate rows correctly based on range
Based on PR #207
2017-10-05 19:38:50 -04:00
Seh Hui, Leong f800c131ff Respect DPI settings in text, add pt unit
This has the compatibility impact that all font sizes should be divided by 3 to maintain their same sizes.

Based on PR #225. Thanks @felixleong!!

Conflicts:
	bin/squib
	lib/squib/graphics/text.rb
2017-10-05 16:37:46 -04:00
Andy Meneely 3ccc6432ab sprues: better validation errors 2017-10-05 11:15:33 -04:00
Andy Meneely 283c82dfe8 fix downgrade of ClassyHash
I should run my unit tests before pushing lol
2017-07-21 15:36:59 -04:00
Andy Meneely c969f8ecf4 spec: add a test for making a new sprue 2017-07-21 15:10:26 -04:00
Andy Meneely 391193812d sprues: upgrade to classy_hash 0.2.0 2017-07-17 14:58:45 -04:00
Andy Meneely 0d076b1e85 sprues: rename "template" to "sprue"
Also:
  * Move stuff around to a builtin/ folder
  * Separate out classes to follow my one-class-per-file convention
  * Samples are renamed to the underscore convention

I just like the word "sprue", and it's more descriptive than our original choice of "template". If I had to start Squib all over again, I would probably name it "Sprue" :P
2017-07-17 14:48:43 -04:00
Seh Hui, Leong 25bf0d7a67 Squash @felixleong's pdf-template feature.
I will be making revisions based on this, but this is all of his hard work.

Thank you!!!

Conflicts:
	squib.gemspec
2017-07-17 11:59:00 -04:00
Andy Meneely 10e63c845f Rollup of v0.13.x fixes
See v0.13-fixes branch for individual fixes

Conflicts:
	CHANGELOG.md
	lib/squib/version.rb
	squib.gemspec
2017-07-17 11:31:53 -04:00
Andy Meneely d94a3e676b Fix for latest dep changes 2017-05-30 16:19:42 -04:00
Andy Meneely f140ff32fa Cleanup and tests of yaml method 2017-04-15 21:25:34 -04:00
Andy Meneely 824a28c87d Document and test rtl option 2017-03-11 16:39:19 -05:00
Andy Meneely a55300f844 more tests for circle arc
Also document it in the CHANGELOG.
2017-03-10 22:48:22 -05:00
Clarence "Sparr" Risher ebba554b5d update existing tests for new functionality 2017-03-10 22:48:21 -05:00
Andy Meneely 1cdc9c0d71 samples: reorganize for better sanity
Converted to a more consistent organization of each folder for groups of samples

Contributes to #118
2017-01-04 15:16:11 -05:00
Andy Meneely 5152651813 rake sanity: img diff'ing with CSS blending
Got CSS blending properly working for diff'ing images so we can do a quick sanity test on all the samples before releasing.

Works toward #118
2017-01-04 14:19:26 -05:00
Andy Meneely c267e1dda7 spec: rip out flaky mock object test 2017-01-03 12:07:04 -05:00
Andy Meneely 3ce5d8b4eb data: fix wrap_n_pad bug
This doesn't make modifications to the original string. If only Ruby used their own convention and did str#concat! instead of str#concat

Fixes #191

[skip ci]
2016-12-22 16:31:23 -05:00
Andy Meneely f4d94240e0 import: data frames are here!
Implemented a whole new class to represent the data that comes in from CSV and XLSX. See docs for more info.

Closes #153
2016-12-02 00:17:57 -05:00
Andy Meneely e53e47dde7 build groups: add convenience methods 2016-11-24 14:00:23 -05:00
Andy Meneely 9aac069c76 docs+samples: documenting a project 2016-11-17 21:14:06 -05:00
Andy Meneely 56b5a711e4 dsl: add Squib.configure
I ended up adding this one on a whim, but it feels like a long time coming. We need cleaner support for Rakefiles, and this is a good step toward that I think.
2016-11-17 21:11:12 -05:00
Andy Meneely 6807e0bce0 docs: begin writeup of guard
While writing this I realized that this really should be part of part_3_workflows.rst, so it'll eventually make it into there. But it's recorded in its unpolished form for now.
2016-11-16 15:04:42 -05:00
Andy Meneely e18084d963 deck: flush surface upon exit
Fixes bug #180
2016-11-15 20:02:12 -05:00
Andy Meneely 5c087680ea regression tests: take off training wheels 2016-11-15 15:26:17 -05:00
Andy Meneely 0dcd2a06bc docs: document units better 2016-11-15 15:25:55 -05:00
Andy Meneely 7c66644955 samples: better units example 2016-11-15 15:22:39 -05:00
Andy Meneely 02c78d8f13 spec: fix regression breakage 2016-11-15 14:43:36 -05:00
Andy Meneely 30395aee56 save_pdf: add crop marks
Should satisfy #123

Needs some testing on printers but the functionality is there.
2016-11-01 12:12:03 -04:00
Andy Meneely ee2ed28550 text: rewrite embedding to use set_shape_renderer
No more arcane unicode magic!

Closes #177

Related to #170, #171, #158, #103, and #153 too.
2016-09-15 15:19:56 -04:00
Andy Meneely 0501a94bac test: update regression test for rotated ellipse 2016-09-09 00:29:03 -04:00
Andy Meneely d2eae64da2 shapes: rect and ellipse get the angle option
Closes #162
2016-09-09 00:10:43 -04:00
Andy Meneely 4ec1a33cfd layouts: support unit conversion in extends
fixes bug #173

Also: LayoutParser is now a proper class, as God intended.
2016-09-08 21:32:30 -04:00
Andy Meneely 4ea30c63e2 units: support mm
Closes #161
2016-06-27 11:10:39 -04:00
Andy Meneely 61afecd95d sanity: initial rewrite of sanity testing 2016-04-26 17:17:21 -04:00
Andy Meneely ee0d232478 text: rewrite how image space is carved
Embedded images avoid zero-sized fonts by using non-printable characters instead.

This is for #153 and #103
2016-04-25 23:36:10 -04:00
Andy Meneely bdcd7d94ad save_png: update regression tests 2016-04-25 23:06:29 -04:00
Andy Meneely 87fd3b7b6f samples: update regression test 2016-04-12 13:39:29 -04:00
Andy Meneely 43ab4b0ae8 samples: gistify colors 2016-04-12 00:04:53 -04:00
Andy Meneely 8cd651d5f1 samples: gistifying excel.rb and csv.rb 2016-04-11 22:30:32 -04:00
Andy Meneely bd5e6c92f6 samples: gistify saves 2016-04-11 21:33:15 -04:00
Andy Meneely dd32e3bfae samples: cleanup regression tests 2016-04-11 21:13:34 -04:00
Andy Meneely 795b4e4478 csv: yield to block on each cell
Closes #151

Related to #145
2016-04-11 20:07:55 -04:00