Commit Graph

296 Commits (9ea66021d300c6ff36fe8667840d07d272f40a78)

Author SHA1 Message Date
Andy Meneely f8c0e1b129 rows arg in save_sheet is always respected
fixes #332
2021-05-13 22:39:52 -04:00
Andy Meneely 11d550f3df make shorthands more intuitive 2020-11-24 12:16:54 -05:00
Andy Meneely cd3bf1b3f2 add suffix option
closes #268
2020-11-19 00:14:04 -05:00
Andy Meneely 93a0d56eda woof this was a big change but ok
Add cell_px everywhere we have dpi

This might be smelly. Sorry, Mr. Fowler and Prof. Frens...
2020-11-17 23:40:15 -05:00
Andy Meneely 82afdf1608 unit testing, more samples 2020-11-17 14:17:37 -05:00
Andy Meneely 2969957c5b shorthands for xywh! initial implementation 2020-10-06 15:58:57 -04:00
Andy Meneely 4003e00e2a refactoring to get middle/center, possibly more 2020-10-05 11:27:49 -04:00
Andy Meneely 0de6b31ad7 Deal with extra/no page issue with sprues
Also rename things so we number at zero.

Fixes #320
2020-10-04 15:53:16 -04:00
Andy Meneely b4f3dbc5eb fix default Qty field 2020-10-03 01:34:14 -04:00
Andy Meneely 9b0602a50c ported xlsx over 2020-10-02 13:44:42 -04:00
Andy Meneely ca96a0e857 Merge branch 'dev' into args-refactor-forrealsies 2020-10-02 09:06:55 -04:00
Andy Meneely f5c41dd5c2 update coveralls setup 2020-09-29 11:31:30 -04:00
Andy Meneely 272892d358 text method migrated! 2020-05-16 20:00:45 -04:00
Andy Meneely 9ef4afc2e6 converted the rest! 2020-03-20 23:07:14 -04:00
Andy Meneely fc3908533f not ready to do this test yet 2020-03-18 14:20:51 -04:00
Andy Meneely 4b664d2061 converting a bunch over now, new rspec tests 2020-03-18 14:10:37 -04:00
Andy Meneely 77a694f797 partway through the conversion 2020-03-16 16:38:13 -04:00
Andy Meneely 76ef45cfa4 documentation specs, beginning cleaner conversion 2020-03-13 10:38:34 -04:00
Andy Meneely 750cb40267 cleanup 2020-03-13 08:38:10 -04:00
Andy Meneely 42a73f602f update to new format 2020-03-11 16:45:09 -04:00
Andy Meneely 7804b5459d add new test for my own sanity 2019-11-27 00:28:18 -05:00
Andy Meneely abe772f804 update regressions 2019-10-17 13:52:44 -04:00
Mirko K 6d57b3e8c1 Feat/font autoscale (#288)
* PoC font autosize feature

* Take enumerables or 'auto' keyword for autoscaling

* Allo enumerables of font_size per card, where the largest font size that does not ellipsize is chosen

* Use ellipsize: :autoscale keyword to determine font autosizing

* Use binary search to find the correct font size

* Consider new ellipsize option in testcase

* Document ellipsize: :autoscale option

* Add ellipsize: :autoscale sample to text sample

* Fix double multiplication with Pango::SCALE

* Scale embedded images with text when autoscaling

* Remove stray semicolon

* Return dummy value for FontDescription.size in mock_cairo

* Update regression test data for autoscale feature.

* Add ellipsize: :autoscale example to existing font_autoscale sample

* Add missing :autoscale to list of options in documentation
2019-10-17 11:29:14 -04:00
Andy Meneely f638fec87a test cleanup 2019-08-06 12:43:16 -04:00
Andy Meneely cb66d7c31d
Flip options for sprues (#251) (#277)
* Flipping works, now just need new argument

* Finishing up

* New test data
2019-06-07 15:23:15 -04:00
Andy Meneely a40c4d7dc4 Cleaner handling of SVG ID 2019-05-29 14:20:03 -04:00
Andy Meneely 89c0e6625d xlsx, csv, yaml: explode defaults to "qty" (#262)
Not "Qty"
2019-05-24 11:23:19 -04:00
Andy Meneely 5a8b3c5fcd png: check magic bytes for well-formed files
Closes #$250
2018-08-09 13:12:30 -04:00
Andy Meneely 248eb2fb91 Layout multiple inheritance works with operators
The case of using relative operators and multiple inheritance is handled now.

Fixes #244
2018-07-31 15:07:33 -04:00
Andy Meneely aada86a070 Fix extra stroke on circle, fix #248 2018-07-31 13:27:17 -04:00
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