squib 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +2 -2
- data/CHANGELOG.md +6 -0
- data/lib/squib/sprues/sprue_schema.rb +4 -3
- data/lib/squib/version.rb +1 -1
- data/samples/sprues/_negative_coords.rb +7 -0
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ce274e1ac305556f491ca0ec5fe50ce3423aadd4eee2bbda2d143bded8590a7
|
4
|
+
data.tar.gz: 2c98fe372b7eeb24eceafe9e416c582a3e51662300d2c83dabcb3a43f99210c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fe46e736b5a0acd2af24851041de586cd7fe0ab2208a6559b4cba676904ff07fadcdb2fe1d25084838634e1780b43dec32b7a3a7b4926fd173eeb6ccbdf2342
|
7
|
+
data.tar.gz: aecd5504f8dfd17518d9d675c58be8c1dfcbf5d5cff29aa9091308adbf4020e2fcadc91e4da155c69a20e397a5600c92269b8dfec306fcb87271c7342c68c04a
|
data/.github/workflows/tests.yml
CHANGED
@@ -8,9 +8,9 @@ jobs:
|
|
8
8
|
fail-fast: false
|
9
9
|
matrix:
|
10
10
|
os: [ubuntu, macos]
|
11
|
-
ruby: [2.5, 2.6, 2.7, head]
|
11
|
+
ruby: [2.5, 2.6, 2.7, 3.0, head]
|
12
12
|
runs-on: ${{ matrix.os }}-latest
|
13
|
-
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
|
13
|
+
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || (matrix.ruby == '3.0' && matrix.os == 'macos')}}
|
14
14
|
steps:
|
15
15
|
- uses: actions/checkout@v2
|
16
16
|
- uses: ruby/setup-ruby@v1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# Squib CHANGELOG
|
2
2
|
Squib follows [semantic versioning](http://semver.org).
|
3
3
|
|
4
|
+
## v0.17.1 / 2021-08-11
|
5
|
+
|
6
|
+
Bugs:
|
7
|
+
* Sprues now allow negative coordinates (#336)
|
8
|
+
* Documentation typos (#337)
|
9
|
+
|
4
10
|
## v0.17.0 / 2021-07-23
|
5
11
|
Features:
|
6
12
|
* Drop shadows! The `save_png` method now supports a bunch of `shadow_` arguments that will add a drop shadow just before rendering. This is intended for using in rulebooks or marketing. Try it out by adding `shadow_radius: 8` to your save_png (#306, #264)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module Squib
|
2
2
|
module Sprues
|
3
3
|
UNIT_REGEX = /^(\d*[.])?\d+(in|cm|mm)$/
|
4
|
-
|
4
|
+
COORD_REGEX = /^\-?(\d*[.])?\d+(in|cm|mm)$/
|
5
|
+
ROTATE_REGEX = /^\-?(\d*[.])?\d+(deg|rad)?$/
|
5
6
|
SCHEMA = {
|
6
7
|
'sheet_width' => UNIT_REGEX,
|
7
8
|
'sheet_height' => UNIT_REGEX,
|
@@ -35,8 +36,8 @@ module Squib
|
|
35
36
|
}]]
|
36
37
|
},
|
37
38
|
'cards' => [[{
|
38
|
-
'x' =>
|
39
|
-
'y' =>
|
39
|
+
'x' => COORD_REGEX,
|
40
|
+
'y' => COORD_REGEX,
|
40
41
|
'rotate' => [
|
41
42
|
:optional, Numeric,
|
42
43
|
ClassyHash::G.enum(:clockwise, :counterclockwise, :turnaround),
|
data/lib/squib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Meneely
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cairo
|
@@ -354,9 +354,9 @@ extra_rdoc_files:
|
|
354
354
|
- samples/ranges/_ranges.rb
|
355
355
|
- samples/saves/_hand.rb
|
356
356
|
- samples/saves/_portrait_landscape.rb
|
357
|
+
- samples/saves/_saves.rb
|
357
358
|
- samples/saves/_save_filenames.rb
|
358
359
|
- samples/saves/_save_pdf.rb
|
359
|
-
- samples/saves/_saves.rb
|
360
360
|
- samples/saves/_showcase.rb
|
361
361
|
- samples/shadows/_shadow.rb
|
362
362
|
- samples/shapes/_draw_shapes.rb
|
@@ -366,12 +366,13 @@ extra_rdoc_files:
|
|
366
366
|
- samples/sprues/_fold_sheet.rb
|
367
367
|
- samples/sprues/_hex_tiles.rb
|
368
368
|
- samples/sprues/_mints.rb
|
369
|
+
- samples/sprues/_negative_coords.rb
|
369
370
|
- samples/sprues/_sprue_example.rb
|
370
371
|
- samples/system_font_debug/_list_fonts.rb
|
372
|
+
- samples/text/bug134.rb
|
371
373
|
- samples/text/_embed_text.rb
|
372
374
|
- samples/text/_text.rb
|
373
375
|
- samples/text/_text_options.rb
|
374
|
-
- samples/text/bug134.rb
|
375
376
|
- samples/units/_cells.rb
|
376
377
|
- samples/units/_shorthands.rb
|
377
378
|
- samples/units/_units.rb
|
@@ -563,6 +564,7 @@ files:
|
|
563
564
|
- samples/sprues/_fold_sheet.rb
|
564
565
|
- samples/sprues/_hex_tiles.rb
|
565
566
|
- samples/sprues/_mints.rb
|
567
|
+
- samples/sprues/_negative_coords.rb
|
566
568
|
- samples/sprues/_sprue_example.rb
|
567
569
|
- samples/system_font_debug/_list_fonts.rb
|
568
570
|
- samples/text/_embed_text.rb
|
@@ -594,8 +596,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
594
596
|
version: '0'
|
595
597
|
requirements:
|
596
598
|
- On Windows, you need the Ruby+DevKit. See https://rubyinstaller.org/downloads
|
597
|
-
rubygems_version: 3.
|
598
|
-
signing_key:
|
599
|
+
rubygems_version: 3.0.3
|
600
|
+
signing_key:
|
599
601
|
specification_version: 2
|
600
602
|
summary: A Ruby DSL for prototyping card games
|
601
603
|
test_files:
|
@@ -640,6 +642,7 @@ test_files:
|
|
640
642
|
- samples/sprues/_fold_sheet.rb
|
641
643
|
- samples/sprues/_hex_tiles.rb
|
642
644
|
- samples/sprues/_mints.rb
|
645
|
+
- samples/sprues/_negative_coords.rb
|
643
646
|
- samples/sprues/_sprue_example.rb
|
644
647
|
- samples/system_font_debug/_list_fonts.rb
|
645
648
|
- samples/text/_embed_text.rb
|