Andy Meneely
7058689c0b
remove unused class
2017-10-05 23:37:58 -04:00
Andy Meneely
2362e189d7
new methods: safe_zone and cut_zone
2017-10-05 23:36:53 -04:00
Andy Meneely
9b3636cf6f
Revert "first draft of thegamecrafter templates, missing all the complex ones"
...
This reverts commit 7f6d70b886 .
See https://github.com/andymeneely/squib/pull/214#issuecomment-334627919
2017-10-05 20:30:50 -04:00
Clarence "Sparr" Risher
7f6d70b886
first draft of thegamecrafter templates, missing all the complex ones
2017-10-05 20:26:01 -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
Andy Meneely
eb13450468
Update changelog with latest @sparr changes
2017-10-05 19:58:22 -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
b3bd8f03d8
add x= and /= to extends values
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
Andy Meneely
d5bf9062a2
sanity: update sanity test expected images for new font size
2017-10-05 17:02:24 -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
06970b77a6
sprues: polishing up the feature
...
Lots of examples, some better checking, lots of documentation, sanity tests. Lots of little stuff.
2017-10-05 15:48:57 -04:00
Andy Meneely
3ccc6432ab
sprues: better validation errors
2017-10-05 11:15:33 -04:00
Andy Meneely
fbb45d89d7
Cleanup deps
2017-10-05 10:47:11 -04:00
Andy Meneely
daff0281fd
Merge remote-tracking branch 'origin/master' into dev
2017-10-05 10:34:00 -04:00
Dave Schaefer
52920ab8f0
Card - improve error message when reading invalid svg files
...
Add a test file in samples/images - it's a simple 1x1 pixel white png
saved with a 'svg' extension.
Fix for #228
(cherry picked from commit 32fad2460753a72cc2b0100d0a132512b6eeed81)
# Conflicts:
# lib/squib/graphics/image.rb
2017-10-05 10:33:00 -04:00
Andy Meneely
4e92b1ae31
deps: lock in even more
2017-10-05 10:29:27 -04:00
Cory Li
6149023dbb
respect `crop_marks` config option when saving PDF
2017-09-01 09:16:25 -04:00
Noah Callaway
7d23ec70f4
Update comment in header
...
Just a tiny irrelevant change to update the header comment to note the correct genre for this file.
2017-08-14 10:24:47 -04:00
Andy Meneely
17ecf87385
docs: documenting and sampling sprues
2017-08-02 17:11:52 -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
94979eded6
deps: downgrade classy_hash until 2.4 support
...
See https://github.com/deseretbook/classy_hash/issues/11
2017-07-21 15:30:35 -04:00
Andy Meneely
1a93d768dd
travis: bump ruby
2017-07-21 15:10:27 -04:00
Andy Meneely
c969f8ecf4
spec: add a test for making a new sprue
2017-07-21 15:10:26 -04:00
Andy Meneely
07f3c3c14a
sprues: samples for a custom sprue
2017-07-21 15:10:24 -04:00
Andy Meneely
23b6d318d2
fix a missing require
2017-07-21 15:10:23 -04:00
Andy Meneely
96832e1141
README: Ruby 2.2+, fix for #231
2017-07-21 10:56:44 -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
Andy Meneely
36dc7ce4eb
cli: squib new gives informative message
...
Also, move the files so we we can eventually add more project templates
2017-07-17 12:27:34 -04:00
Andy Meneely
ad5c53c8bd
cleanup
2017-07-17 12:17:45 -04:00
Andy Meneely
5d3e1120b9
travis: disable caching, remove apt-install
2017-07-17 12:12:17 -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
c6aa3983c4
Starting merge of @felixleong's code
...
I'm gonna name these "sprues" and do it a tad different than him, but it'll be mostly his code
2017-07-17 11:52:17 -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
c6e1c67e5f
Fix deprecation warnings
2017-05-30 16:02:23 -04:00
Andy Meneely
5b3548d7aa
Deps: bump and lock in
2017-05-30 15:45:27 -04:00
Andy Meneely
f140ff32fa
Cleanup and tests of yaml method
2017-04-15 21:25:34 -04:00
Adam Blinkinsop
d53fbc1715
Add yaml DSL method to the Deck object.
2017-03-20 08:53:49 -04:00
Adam Blinkinsop
874456e87c
Create sample.yaml
...
To finish up the _yaml.rb sample.
2017-03-20 08:53:49 -04:00
Adam Blinkinsop
04cf7d2c9c
Create _yaml.rb
...
Next up, create sample.yaml
2017-03-20 08:53:49 -04:00
Adam Blinkinsop
563f800ba7
Add a yaml DSL method.
...
I find the yaml format easier to read than csv (when working entirely in text, at least). This loader works on this array-formatted yaml, but not (for whatever reason, possibly library brokenness) on multi-doc format:
```
- title: Foo
rank: 2
- title: Bar
rank: 3
```
2017-03-20 08:53:49 -04:00
Andy Meneely
824a28c87d
Document and test rtl option
2017-03-11 16:39:19 -05:00
Clarence "Sparr" Risher
695bd8fb77
add save_sheet rtl option for duplex printing
2017-03-11 16:28:20 -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
Clarence "Sparr" Risher
1a58adb288
switch arc_ccw true/false to arc_direction :counterclockwise/:clockwise
2017-03-10 22:48:21 -05:00
Clarence "Sparr" Risher
573a1e9e30
implement circle arc feature, no tests
2017-03-10 22:48:21 -05:00