squib 0.11.0 → 0.12.0
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/.gitignore +3 -0
- data/.travis.yml +5 -3
- data/CHANGELOG.md +24 -2
- data/README.md +2 -4
- data/RELEASE TODO.md +1 -0
- data/Rakefile +1 -1
- data/docs/arrays.rst +5 -2
- data/docs/build_groups.rst +15 -17
- data/docs/colors.rst +29 -3
- data/docs/conf.py +3 -3
- data/docs/config.rst +14 -1
- data/docs/data.rst +8 -4
- data/docs/dsl/configure.rst +18 -0
- data/docs/dsl/csv.rst +19 -0
- data/docs/dsl/data_frame.rst +85 -0
- data/docs/dsl/disable_build.rst +1 -4
- data/docs/dsl/disable_build_globally.rst +46 -0
- data/docs/dsl/enable_build.rst +1 -1
- data/docs/dsl/enable_build_globally.rst +44 -0
- data/docs/dsl/save_pdf.rst +44 -3
- data/docs/dsl/showcase.rst +11 -0
- data/docs/dsl/text.rst +3 -5
- data/docs/dsl/xlsx.rst +6 -0
- data/docs/guides/game_icons.rst +124 -4
- data/docs/guides/getting-started/part_1_zero_to_game.rst +4 -3
- data/docs/guides/getting-started/part_2_iconography.rst +92 -16
- data/docs/guides/getting-started/part_3_workflows.rst +43 -1
- data/docs/guides/getting-started/part_4_ruby_power.rst +18 -0
- data/docs/guides/git.rst +2 -1
- data/docs/guides/guard.rst +84 -0
- data/docs/guides/hello_world.rst +63 -4
- data/docs/guides/projects.rst +35 -0
- data/docs/install.rst +3 -1
- data/docs/layouts.rst +3 -3
- data/docs/learning.rst +3 -1
- data/docs/parameters.rst +14 -6
- data/docs/text_feature.rst +42 -13
- data/docs/units.rst +9 -1
- data/lib/squib/api/data.rb +6 -5
- data/lib/squib/api/groups.rb +14 -7
- data/lib/squib/api/save.rb +2 -1
- data/lib/squib/args/sheet.rb +57 -2
- data/lib/squib/card.rb +8 -0
- data/lib/squib/conf.rb +9 -1
- data/lib/squib/deck.rb +2 -1
- data/lib/squib/graphics/save_doc.rb +0 -45
- data/lib/squib/graphics/save_pdf.rb +85 -0
- data/lib/squib/graphics/showcase.rb +1 -1
- data/lib/squib/import/data_frame.rb +108 -0
- data/lib/squib/version.rb +1 -1
- data/samples/autoscale_font/.gitignore +2 -0
- data/samples/autoscale_font/card_00_expected.png +0 -0
- data/samples/backend/.gitignore +1 -0
- data/samples/backend/_backend-config.yml +5 -0
- data/samples/backend/_backend.rb +2 -9
- data/samples/backend/backend_00_expected.png +0 -0
- data/samples/backend/backend_01_expected.png +0 -0
- data/samples/backend/backend_vectorized_expected.pdf +0 -0
- data/samples/backend/backend_vectors_00_expected.svg +84 -0
- data/samples/backend/backend_vectors_01_expected.svg +84 -0
- data/samples/backend/shiny-purse.png +0 -0
- data/samples/backend/showcase_expected.png +0 -0
- data/samples/backend/spanner.svg +91 -0
- data/samples/build_groups/.gitignore +1 -0
- data/samples/build_groups/Rakefile +25 -0
- data/samples/colors/.gitignore +1 -0
- data/samples/colors/color_constants_00_expected.png +0 -0
- data/samples/colors/colors_00_expected.png +0 -0
- data/samples/colors/gradient_00_expected.png +0 -0
- data/samples/data/.gitignore +1 -0
- data/samples/data/explode_quantities.xlsx +0 -0
- data/samples/data/quantity_explosion.csv +3 -0
- data/samples/data/sample.csv +3 -0
- data/samples/data/sample.xlsx +0 -0
- data/samples/data/sample_csv_00_expected.png +0 -0
- data/samples/data/sample_csv_01_expected.png +0 -0
- data/samples/data/sample_csv_qty_00_expected.png +0 -0
- data/samples/data/sample_excel_00_expected.png +0 -0
- data/samples/data/sample_excel_01_expected.png +0 -0
- data/samples/data/sample_excel_02_expected.png +0 -0
- data/samples/data/sample_excel_resources_00_expected.png +0 -0
- data/samples/data/sample_excel_resources_01_expected.png +0 -0
- data/samples/data/sample_xlsx_qty_00_expected.png +0 -0
- data/samples/images/.gitignore +8 -0
- data/samples/images/_images_00_expected.png +0 -0
- data/samples/images/angler-fish.png +0 -0
- data/samples/images/ball.png +0 -0
- data/samples/images/glass-heart.svg +52 -0
- data/samples/images/grit.png +0 -0
- data/samples/images/offset.svg +85 -0
- data/samples/images/robot-golem.svg +1 -0
- data/samples/images/shiny-purse.png +0 -0
- data/samples/images/spanner.svg +91 -0
- data/samples/images/sprites.png +0 -0
- data/samples/images/with-alpha.png +0 -0
- data/samples/intro/.gitignore +2 -0
- data/samples/intro/auto-repair.svg +1 -0
- data/samples/intro/crawling.svg +1 -0
- data/samples/intro/data.xlsx +0 -0
- data/samples/intro/humans.svg +1 -0
- data/samples/intro/ninja-mask.svg +1 -0
- data/samples/intro/part1_00_expected.png +0 -0
- data/samples/intro/part2_00_expected.png +0 -0
- data/samples/intro/part3_00_expected.png +0 -0
- data/samples/intro/part3_layout.yml +34 -0
- data/samples/intro/part4_00_expected.png +0 -0
- data/samples/intro/part4_01_expected.png +0 -0
- data/samples/intro/part5_00_expected.png +0 -0
- data/samples/intro/part5_01_expected.png +0 -0
- data/samples/intro/part5_02_expected.png +0 -0
- data/samples/intro/part5_03_expected.png +0 -0
- data/samples/intro/part5_hand_expected.png +0 -0
- data/samples/intro/part5_showcase_expected.png +0 -0
- data/samples/intro/pirate-skull.svg +1 -0
- data/samples/intro/robot-golem.svg +1 -0
- data/samples/project/Gemfile +6 -0
- data/samples/project/Guardfile +18 -0
- data/samples/project/Rakefile +25 -0
- data/samples/project/bw/robot-golem.svg +53 -0
- data/samples/project/color/robot-golem.svg +1 -0
- data/samples/project/config.yml +2 -0
- data/samples/project/layouts/characters.yml +3 -0
- data/samples/project/layouts/skills.yml +3 -0
- data/samples/project/src/characters.rb +8 -0
- data/samples/project/src/skills.rb +7 -0
- data/samples/{ranges.rb → ranges/_ranges.rb} +0 -0
- data/samples/ranges/glass-heart.svg +52 -0
- data/samples/ranges/ranges_00_expected.png +0 -0
- data/samples/saves/.gitignore +1 -0
- data/samples/saves/_save_pdf.rb +18 -0
- data/samples/saves/hand_expected.png +0 -0
- data/samples/saves/hand_pretty_expected.png +0 -0
- data/samples/saves/save-pdf-small_expected.pdf +0 -0
- data/samples/saves/save-pdf_expected.pdf +0 -0
- data/samples/saves/save_png_00_expected.png +0 -0
- data/samples/saves/save_png_trimmed_00_expected.png +0 -0
- data/samples/saves/save_sheet_00_expected.png +0 -0
- data/samples/saves/save_sheet_01_expected.png +0 -0
- data/samples/saves/save_sheet_range_00_expected.png +0 -0
- data/samples/saves/save_sheet_range_01_expected.png +0 -0
- data/samples/saves/save_single_sheet_00_expected.png +0 -0
- data/samples/saves/saves_notrim_01_expected.png +0 -0
- data/samples/saves/showcase2_expected.png +0 -0
- data/samples/saves/showcase_expected.png +0 -0
- data/samples/saves/showcase_individual_00_expected.png +0 -0
- data/samples/saves/showcase_individual_01_expected.png +0 -0
- data/samples/saves/showcase_individual_02_expected.png +0 -0
- data/samples/saves/showcase_individual_03_expected.png +0 -0
- data/samples/saves/spanner.svg +91 -0
- data/samples/shapes/.gitignore +1 -0
- data/samples/shapes/shape_00_expected.png +0 -0
- data/samples/text/.gitignore +2 -0
- data/samples/text/README.md +1 -0
- data/samples/text/_text_00_expected.png +0 -0
- data/samples/text/config.yml +2 -0
- data/samples/units/_units.rb +32 -0
- data/samples/units/units_00_expected.png +0 -0
- data/samples/units/using_units.yml +10 -0
- data/spec/api/api_data_spec.rb +18 -18
- data/spec/api/api_groups_spec.rb +49 -0
- data/spec/args/sheet_spec.rb +24 -2
- data/spec/conf_spec.rb +8 -0
- data/spec/data/conf/basic.yml +1 -0
- data/spec/data/samples/autoscale_font/_autoscale_font.rb.txt +3 -0
- data/spec/data/samples/basic.rb.txt +3 -0
- data/spec/data/samples/cairo_access.rb.txt +2 -0
- data/spec/data/samples/colors/_gradients.rb.txt +1 -0
- data/spec/data/samples/config_text_markup.rb.txt +2 -0
- data/spec/data/samples/custom_config.rb.txt +1 -0
- data/spec/data/samples/data/_csv.rb.txt +6 -0
- data/spec/data/samples/data/_excel.rb.txt +13 -0
- data/spec/data/samples/embed_text.rb.txt +4 -0
- data/spec/data/samples/hello_world.rb.txt +2 -0
- data/spec/data/samples/images/_more_load_images.rb.txt +1 -0
- data/spec/data/samples/{ranges.rb.txt → ranges/_ranges.rb.txt} +3 -0
- data/spec/data/samples/saves/_hand.rb.txt +8 -0
- data/spec/data/samples/saves/_portrait_landscape.rb.txt +2 -0
- data/spec/data/samples/saves/_save_pdf.rb.txt +1505 -449
- data/spec/data/samples/saves/_saves.rb.txt +16 -0
- data/spec/data/samples/saves/_showcase.rb.txt +4 -0
- data/spec/data/samples/shapes/_draw_shapes.rb.txt +1 -0
- data/spec/data/samples/text_options.rb.txt +3 -0
- data/spec/data/samples/tgc_proofs.rb.txt +1 -0
- data/spec/data/samples/{units.rb.txt → units/_units.rb.txt} +20 -15
- data/spec/deck_spec.rb +7 -0
- data/spec/graphics/graphics_save_doc_spec.rb +2 -1
- data/spec/import/data_frame_spec.rb +251 -0
- data/spec/samples/run_samples_spec.rb +1 -1
- data/spec/samples/samples_regression_spec.rb +3 -2
- data/squib.gemspec +6 -6
- metadata +144 -24
- data/.gitmodules +0 -36
- data/samples/units.rb +0 -28
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.
|
|
4
|
+
version: 0.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Meneely
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cairo
|
|
@@ -16,28 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.15.
|
|
19
|
+
version: 1.15.3
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.15.
|
|
26
|
+
version: 1.15.3
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: pango
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 3.0
|
|
33
|
+
version: 3.1.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 3.0
|
|
40
|
+
version: 3.1.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: nokogiri
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -58,28 +58,28 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 2.
|
|
61
|
+
version: 2.5.1
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 2.
|
|
68
|
+
version: 2.5.1
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: rsvg2
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 3.0
|
|
75
|
+
version: 3.1.0
|
|
76
76
|
type: :runtime
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 3.0
|
|
82
|
+
version: 3.1.0
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: mercenary
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -114,28 +114,28 @@ dependencies:
|
|
|
114
114
|
requirements:
|
|
115
115
|
- - "~>"
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 3.0
|
|
117
|
+
version: 3.1.0
|
|
118
118
|
type: :runtime
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - "~>"
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 3.0
|
|
124
|
+
version: 3.1.0
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: gio2
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
128
128
|
requirements:
|
|
129
129
|
- - "~>"
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: 3.0
|
|
131
|
+
version: 3.1.0
|
|
132
132
|
type: :runtime
|
|
133
133
|
prerelease: false
|
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
136
|
- - "~>"
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: 3.0
|
|
138
|
+
version: 3.1.0
|
|
139
139
|
- !ruby/object:Gem::Dependency
|
|
140
140
|
name: bundler
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -278,20 +278,22 @@ extra_rdoc_files:
|
|
|
278
278
|
- samples/intro/05_excel.rb
|
|
279
279
|
- samples/layouts/builtin_layouts.rb
|
|
280
280
|
- samples/layouts/layouts.rb
|
|
281
|
-
- samples/
|
|
281
|
+
- samples/project/src/characters.rb
|
|
282
|
+
- samples/project/src/skills.rb
|
|
283
|
+
- samples/ranges/_ranges.rb
|
|
282
284
|
- samples/saves/_hand.rb
|
|
283
285
|
- samples/saves/_portrait_landscape.rb
|
|
284
286
|
- samples/saves/_saves.rb
|
|
287
|
+
- samples/saves/_save_pdf.rb
|
|
285
288
|
- samples/saves/_showcase.rb
|
|
286
289
|
- samples/shapes/_draw_shapes.rb
|
|
287
290
|
- samples/text/_text.rb
|
|
288
291
|
- samples/text_options.rb
|
|
289
292
|
- samples/tgc_proofs.rb
|
|
290
293
|
- samples/unicode.rb
|
|
291
|
-
- samples/units.rb
|
|
294
|
+
- samples/units/_units.rb
|
|
292
295
|
files:
|
|
293
296
|
- ".gitignore"
|
|
294
|
-
- ".gitmodules"
|
|
295
297
|
- ".travis.yml"
|
|
296
298
|
- CHANGELOG.md
|
|
297
299
|
- CONTRIBUTING.md
|
|
@@ -338,12 +340,16 @@ files:
|
|
|
338
340
|
- docs/dsl/build_groups.rst
|
|
339
341
|
- docs/dsl/circle.rst
|
|
340
342
|
- docs/dsl/cm.rst
|
|
343
|
+
- docs/dsl/configure.rst
|
|
341
344
|
- docs/dsl/csv.rst
|
|
342
345
|
- docs/dsl/curve.rst
|
|
346
|
+
- docs/dsl/data_frame.rst
|
|
343
347
|
- docs/dsl/deck.rst
|
|
344
348
|
- docs/dsl/disable_build.rst
|
|
349
|
+
- docs/dsl/disable_build_globally.rst
|
|
345
350
|
- docs/dsl/ellipse.rst
|
|
346
351
|
- docs/dsl/enable_build.rst
|
|
352
|
+
- docs/dsl/enable_build_globally.rst
|
|
347
353
|
- docs/dsl/grid.rst
|
|
348
354
|
- docs/dsl/hand.rst
|
|
349
355
|
- docs/dsl/hint.rst
|
|
@@ -371,8 +377,11 @@ files:
|
|
|
371
377
|
- docs/guides/getting-started/part_1_zero_to_game.rst
|
|
372
378
|
- docs/guides/getting-started/part_2_iconography.rst
|
|
373
379
|
- docs/guides/getting-started/part_3_workflows.rst
|
|
380
|
+
- docs/guides/getting-started/part_4_ruby_power.rst
|
|
374
381
|
- docs/guides/git.rst
|
|
382
|
+
- docs/guides/guard.rst
|
|
375
383
|
- docs/guides/hello_world.rst
|
|
384
|
+
- docs/guides/projects.rst
|
|
376
385
|
- docs/help.rst
|
|
377
386
|
- docs/index.rst
|
|
378
387
|
- docs/install.rst
|
|
@@ -430,9 +439,11 @@ files:
|
|
|
430
439
|
- lib/squib/graphics/image.rb
|
|
431
440
|
- lib/squib/graphics/save_doc.rb
|
|
432
441
|
- lib/squib/graphics/save_images.rb
|
|
442
|
+
- lib/squib/graphics/save_pdf.rb
|
|
433
443
|
- lib/squib/graphics/shapes.rb
|
|
434
444
|
- lib/squib/graphics/showcase.rb
|
|
435
445
|
- lib/squib/graphics/text.rb
|
|
446
|
+
- lib/squib/import/data_frame.rb
|
|
436
447
|
- lib/squib/layout_parser.rb
|
|
437
448
|
- lib/squib/layouts/economy.yml
|
|
438
449
|
- lib/squib/layouts/fantasy.yml
|
|
@@ -455,15 +466,33 @@ files:
|
|
|
455
466
|
- lib/squib/sample_helpers.rb
|
|
456
467
|
- lib/squib/version.rb
|
|
457
468
|
- samples/_output/gitkeep.txt
|
|
469
|
+
- samples/autoscale_font/.gitignore
|
|
458
470
|
- samples/autoscale_font/_autoscale_font.rb
|
|
471
|
+
- samples/autoscale_font/card_00_expected.png
|
|
472
|
+
- samples/backend/.gitignore
|
|
473
|
+
- samples/backend/_backend-config.yml
|
|
459
474
|
- samples/backend/_backend.rb
|
|
475
|
+
- samples/backend/backend_00_expected.png
|
|
476
|
+
- samples/backend/backend_01_expected.png
|
|
477
|
+
- samples/backend/backend_vectorized_expected.pdf
|
|
478
|
+
- samples/backend/backend_vectors_00_expected.svg
|
|
479
|
+
- samples/backend/backend_vectors_01_expected.svg
|
|
480
|
+
- samples/backend/shiny-purse.png
|
|
481
|
+
- samples/backend/showcase_expected.png
|
|
482
|
+
- samples/backend/spanner.svg
|
|
460
483
|
- samples/ball.png
|
|
461
484
|
- samples/basic.rb
|
|
462
485
|
- samples/bug134.rb
|
|
486
|
+
- samples/build_groups/.gitignore
|
|
487
|
+
- samples/build_groups/Rakefile
|
|
463
488
|
- samples/build_groups/build_groups.rb
|
|
464
489
|
- samples/cairo_access.rb
|
|
490
|
+
- samples/colors/.gitignore
|
|
465
491
|
- samples/colors/_colors.rb
|
|
466
492
|
- samples/colors/_gradients.rb
|
|
493
|
+
- samples/colors/color_constants_00_expected.png
|
|
494
|
+
- samples/colors/colors_00_expected.png
|
|
495
|
+
- samples/colors/gradient_00_expected.png
|
|
467
496
|
- samples/config_disable_quotes.yml
|
|
468
497
|
- samples/config_text_markup.rb
|
|
469
498
|
- samples/config_text_markup.yml
|
|
@@ -471,19 +500,65 @@ files:
|
|
|
471
500
|
- samples/custom_config.rb
|
|
472
501
|
- samples/customconfig-imgdir/shiny-purse2.png
|
|
473
502
|
- samples/customconfig-imgdir/spanner2.svg
|
|
503
|
+
- samples/data/.gitignore
|
|
474
504
|
- samples/data/_csv.rb
|
|
475
505
|
- samples/data/_excel.rb
|
|
506
|
+
- samples/data/explode_quantities.xlsx
|
|
507
|
+
- samples/data/quantity_explosion.csv
|
|
508
|
+
- samples/data/sample.csv
|
|
509
|
+
- samples/data/sample.xlsx
|
|
510
|
+
- samples/data/sample_csv_00_expected.png
|
|
511
|
+
- samples/data/sample_csv_01_expected.png
|
|
512
|
+
- samples/data/sample_csv_qty_00_expected.png
|
|
513
|
+
- samples/data/sample_excel_00_expected.png
|
|
514
|
+
- samples/data/sample_excel_01_expected.png
|
|
515
|
+
- samples/data/sample_excel_02_expected.png
|
|
516
|
+
- samples/data/sample_excel_resources_00_expected.png
|
|
517
|
+
- samples/data/sample_excel_resources_01_expected.png
|
|
518
|
+
- samples/data/sample_xlsx_qty_00_expected.png
|
|
476
519
|
- samples/embed_text.rb
|
|
477
520
|
- samples/glass-heart.svg
|
|
478
521
|
- samples/grit.png
|
|
479
522
|
- samples/hello_world.rb
|
|
523
|
+
- samples/images/.gitignore
|
|
480
524
|
- samples/images/_images.rb
|
|
525
|
+
- samples/images/_images_00_expected.png
|
|
481
526
|
- samples/images/_more_load_images.rb
|
|
527
|
+
- samples/images/angler-fish.png
|
|
528
|
+
- samples/images/ball.png
|
|
529
|
+
- samples/images/glass-heart.svg
|
|
530
|
+
- samples/images/grit.png
|
|
531
|
+
- samples/images/offset.svg
|
|
532
|
+
- samples/images/robot-golem.svg
|
|
533
|
+
- samples/images/shiny-purse.png
|
|
534
|
+
- samples/images/spanner.svg
|
|
535
|
+
- samples/images/sprites.png
|
|
536
|
+
- samples/images/with-alpha.png
|
|
537
|
+
- samples/intro/.gitignore
|
|
482
538
|
- samples/intro/01_hello.rb
|
|
483
539
|
- samples/intro/02_options.rb
|
|
484
540
|
- samples/intro/03_layout.rb
|
|
485
541
|
- samples/intro/04_arrays.rb
|
|
486
542
|
- samples/intro/05_excel.rb
|
|
543
|
+
- samples/intro/auto-repair.svg
|
|
544
|
+
- samples/intro/crawling.svg
|
|
545
|
+
- samples/intro/data.xlsx
|
|
546
|
+
- samples/intro/humans.svg
|
|
547
|
+
- samples/intro/ninja-mask.svg
|
|
548
|
+
- samples/intro/part1_00_expected.png
|
|
549
|
+
- samples/intro/part2_00_expected.png
|
|
550
|
+
- samples/intro/part3_00_expected.png
|
|
551
|
+
- samples/intro/part3_layout.yml
|
|
552
|
+
- samples/intro/part4_00_expected.png
|
|
553
|
+
- samples/intro/part4_01_expected.png
|
|
554
|
+
- samples/intro/part5_00_expected.png
|
|
555
|
+
- samples/intro/part5_01_expected.png
|
|
556
|
+
- samples/intro/part5_02_expected.png
|
|
557
|
+
- samples/intro/part5_03_expected.png
|
|
558
|
+
- samples/intro/part5_hand_expected.png
|
|
559
|
+
- samples/intro/part5_showcase_expected.png
|
|
560
|
+
- samples/intro/pirate-skull.svg
|
|
561
|
+
- samples/intro/robot-golem.svg
|
|
487
562
|
- samples/layouts/_output/.gitignore
|
|
488
563
|
- samples/layouts/builtin_layouts.rb
|
|
489
564
|
- samples/layouts/custom-layout.yml
|
|
@@ -499,21 +574,63 @@ files:
|
|
|
499
574
|
- samples/load_images_config.yml
|
|
500
575
|
- samples/offset.svg
|
|
501
576
|
- samples/pokercard.png
|
|
502
|
-
- samples/
|
|
577
|
+
- samples/project/Gemfile
|
|
578
|
+
- samples/project/Guardfile
|
|
579
|
+
- samples/project/Rakefile
|
|
580
|
+
- samples/project/bw/robot-golem.svg
|
|
581
|
+
- samples/project/color/robot-golem.svg
|
|
582
|
+
- samples/project/config.yml
|
|
583
|
+
- samples/project/layouts/characters.yml
|
|
584
|
+
- samples/project/layouts/skills.yml
|
|
585
|
+
- samples/project/src/characters.rb
|
|
586
|
+
- samples/project/src/skills.rb
|
|
587
|
+
- samples/ranges/_ranges.rb
|
|
588
|
+
- samples/ranges/glass-heart.svg
|
|
589
|
+
- samples/ranges/ranges_00_expected.png
|
|
590
|
+
- samples/saves/.gitignore
|
|
503
591
|
- samples/saves/_hand.rb
|
|
504
592
|
- samples/saves/_portrait_landscape.rb
|
|
593
|
+
- samples/saves/_save_pdf.rb
|
|
505
594
|
- samples/saves/_saves.rb
|
|
506
595
|
- samples/saves/_showcase.rb
|
|
596
|
+
- samples/saves/hand_expected.png
|
|
597
|
+
- samples/saves/hand_pretty_expected.png
|
|
598
|
+
- samples/saves/save-pdf-small_expected.pdf
|
|
599
|
+
- samples/saves/save-pdf_expected.pdf
|
|
600
|
+
- samples/saves/save_png_00_expected.png
|
|
601
|
+
- samples/saves/save_png_trimmed_00_expected.png
|
|
602
|
+
- samples/saves/save_sheet_00_expected.png
|
|
603
|
+
- samples/saves/save_sheet_01_expected.png
|
|
604
|
+
- samples/saves/save_sheet_range_00_expected.png
|
|
605
|
+
- samples/saves/save_sheet_range_01_expected.png
|
|
606
|
+
- samples/saves/save_single_sheet_00_expected.png
|
|
607
|
+
- samples/saves/saves_notrim_01_expected.png
|
|
608
|
+
- samples/saves/showcase2_expected.png
|
|
609
|
+
- samples/saves/showcase_expected.png
|
|
610
|
+
- samples/saves/showcase_individual_00_expected.png
|
|
611
|
+
- samples/saves/showcase_individual_01_expected.png
|
|
612
|
+
- samples/saves/showcase_individual_02_expected.png
|
|
613
|
+
- samples/saves/showcase_individual_03_expected.png
|
|
614
|
+
- samples/saves/spanner.svg
|
|
615
|
+
- samples/shapes/.gitignore
|
|
507
616
|
- samples/shapes/_draw_shapes.rb
|
|
617
|
+
- samples/shapes/shape_00_expected.png
|
|
508
618
|
- samples/shiny-purse.png
|
|
509
619
|
- samples/spanner.svg
|
|
510
620
|
- samples/sprites.png
|
|
621
|
+
- samples/text/.gitignore
|
|
622
|
+
- samples/text/README.md
|
|
511
623
|
- samples/text/_text.rb
|
|
624
|
+
- samples/text/_text_00_expected.png
|
|
625
|
+
- samples/text/config.yml
|
|
512
626
|
- samples/text_options.rb
|
|
513
627
|
- samples/tgc_proofs.rb
|
|
514
628
|
- samples/unicode.rb
|
|
515
|
-
- samples/units.rb
|
|
629
|
+
- samples/units/_units.rb
|
|
630
|
+
- samples/units/units_00_expected.png
|
|
631
|
+
- samples/units/using_units.yml
|
|
516
632
|
- spec/api/api_data_spec.rb
|
|
633
|
+
- spec/api/api_groups_spec.rb
|
|
517
634
|
- spec/api/api_settings_spec.rb
|
|
518
635
|
- spec/api/api_units_spec.rb
|
|
519
636
|
- spec/args/box_spec.rb
|
|
@@ -574,7 +691,7 @@ files:
|
|
|
574
691
|
- spec/data/samples/hello_world.rb.txt
|
|
575
692
|
- spec/data/samples/images/_more_load_images.rb.txt
|
|
576
693
|
- spec/data/samples/layouts.rb.txt
|
|
577
|
-
- spec/data/samples/ranges.rb.txt
|
|
694
|
+
- spec/data/samples/ranges/_ranges.rb.txt
|
|
578
695
|
- spec/data/samples/saves/_hand.rb.txt
|
|
579
696
|
- spec/data/samples/saves/_portrait_landscape.rb.txt
|
|
580
697
|
- spec/data/samples/saves/_save_pdf.rb.txt
|
|
@@ -583,7 +700,7 @@ files:
|
|
|
583
700
|
- spec/data/samples/shapes/_draw_shapes.rb.txt
|
|
584
701
|
- spec/data/samples/text_options.rb.txt
|
|
585
702
|
- spec/data/samples/tgc_proofs.rb.txt
|
|
586
|
-
- spec/data/samples/units.rb.txt
|
|
703
|
+
- spec/data/samples/units/_units.rb.txt
|
|
587
704
|
- spec/data/xlsx/basic.xlsx
|
|
588
705
|
- spec/data/xlsx/explode_quantities.xlsx
|
|
589
706
|
- spec/data/xlsx/formulas.xlsx
|
|
@@ -593,6 +710,7 @@ files:
|
|
|
593
710
|
- spec/graphics/cairo_context_wrapper_spec.rb
|
|
594
711
|
- spec/graphics/embedding_utils_spec.rb
|
|
595
712
|
- spec/graphics/graphics_save_doc_spec.rb
|
|
713
|
+
- spec/import/data_frame_spec.rb
|
|
596
714
|
- spec/layout_parser_spec.rb
|
|
597
715
|
- spec/logger_spec.rb
|
|
598
716
|
- spec/samples/_diffs/gitkeep.txt
|
|
@@ -683,12 +801,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
683
801
|
version: '0'
|
|
684
802
|
requirements: []
|
|
685
803
|
rubyforge_project:
|
|
686
|
-
rubygems_version: 2.
|
|
804
|
+
rubygems_version: 2.6.7
|
|
687
805
|
signing_key:
|
|
688
806
|
specification_version: 2
|
|
689
807
|
summary: A Ruby DSL for prototyping card games
|
|
690
808
|
test_files:
|
|
691
809
|
- spec/api/api_data_spec.rb
|
|
810
|
+
- spec/api/api_groups_spec.rb
|
|
692
811
|
- spec/api/api_settings_spec.rb
|
|
693
812
|
- spec/api/api_units_spec.rb
|
|
694
813
|
- spec/args/box_spec.rb
|
|
@@ -749,7 +868,7 @@ test_files:
|
|
|
749
868
|
- spec/data/samples/hello_world.rb.txt
|
|
750
869
|
- spec/data/samples/images/_more_load_images.rb.txt
|
|
751
870
|
- spec/data/samples/layouts.rb.txt
|
|
752
|
-
- spec/data/samples/ranges.rb.txt
|
|
871
|
+
- spec/data/samples/ranges/_ranges.rb.txt
|
|
753
872
|
- spec/data/samples/saves/_hand.rb.txt
|
|
754
873
|
- spec/data/samples/saves/_portrait_landscape.rb.txt
|
|
755
874
|
- spec/data/samples/saves/_save_pdf.rb.txt
|
|
@@ -758,7 +877,7 @@ test_files:
|
|
|
758
877
|
- spec/data/samples/shapes/_draw_shapes.rb.txt
|
|
759
878
|
- spec/data/samples/text_options.rb.txt
|
|
760
879
|
- spec/data/samples/tgc_proofs.rb.txt
|
|
761
|
-
- spec/data/samples/units.rb.txt
|
|
880
|
+
- spec/data/samples/units/_units.rb.txt
|
|
762
881
|
- spec/data/xlsx/basic.xlsx
|
|
763
882
|
- spec/data/xlsx/explode_quantities.xlsx
|
|
764
883
|
- spec/data/xlsx/formulas.xlsx
|
|
@@ -768,6 +887,7 @@ test_files:
|
|
|
768
887
|
- spec/graphics/cairo_context_wrapper_spec.rb
|
|
769
888
|
- spec/graphics/embedding_utils_spec.rb
|
|
770
889
|
- spec/graphics/graphics_save_doc_spec.rb
|
|
890
|
+
- spec/import/data_frame_spec.rb
|
|
771
891
|
- spec/layout_parser_spec.rb
|
|
772
892
|
- spec/logger_spec.rb
|
|
773
893
|
- spec/samples/_diffs/gitkeep.txt
|
data/.gitmodules
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
[submodule "samples/intro"]
|
|
2
|
-
path = samples/intro
|
|
3
|
-
url = https://gist.github.com/5026392a419124312cb7.git
|
|
4
|
-
|
|
5
|
-
[submodule "samples/images"]
|
|
6
|
-
path = samples/images
|
|
7
|
-
url = https://gist.github.com/00ba7eb0aa1d82140503.git
|
|
8
|
-
|
|
9
|
-
[submodule "samples/text"]
|
|
10
|
-
path = samples/text
|
|
11
|
-
url = https://gist.github.com/52d7b8e332194946bc69.git
|
|
12
|
-
[submodule "samples/autoscale_font"]
|
|
13
|
-
path = samples/autoscale_font
|
|
14
|
-
url = https://gist.github.com/andymeneely/a4536fff0f3dc5d59c66
|
|
15
|
-
[submodule "samples/build_groups"]
|
|
16
|
-
path = samples/build_groups
|
|
17
|
-
url = https://gist.github.com/andymeneely/bda48487e3b8c9d15edb
|
|
18
|
-
|
|
19
|
-
[submodule "samples/backend"]
|
|
20
|
-
path = samples/backend
|
|
21
|
-
url = https://gist.github.com/7b4a3acd0e758aedf87ba549e2025a11.git
|
|
22
|
-
|
|
23
|
-
[submodule "samples/shapes"]
|
|
24
|
-
path = samples/shapes
|
|
25
|
-
url = https://gist.github.com/59089c972b8b0e5d7e76598010e69291.git
|
|
26
|
-
|
|
27
|
-
[submodule "samples/saves"]
|
|
28
|
-
path = samples/saves
|
|
29
|
-
url = https://gist.github.com/3c60c13b25f525abd037db4055abf35c.git
|
|
30
|
-
|
|
31
|
-
[submodule "samples/data"]
|
|
32
|
-
path = samples/data
|
|
33
|
-
url = https://gist.github.com/6f89115805e205c647a779b7b4866151.git
|
|
34
|
-
[submodule "samples/colors"]
|
|
35
|
-
path = samples/colors
|
|
36
|
-
url = https://gist.github.com/fac2f4a16a23c2bada126e93d6523971.git
|
data/samples/units.rb
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
require 'squib'
|
|
2
|
-
|
|
3
|
-
Squib::Deck.new do
|
|
4
|
-
background color: '#ddd'
|
|
5
|
-
|
|
6
|
-
# We can use our DSL-method to use inches
|
|
7
|
-
# Computed using @dpi (set to 300 by default)
|
|
8
|
-
bleed = inches(0.125)
|
|
9
|
-
cut_width = inches(2.5)
|
|
10
|
-
cut_height = inches(3.5)
|
|
11
|
-
rect x: bleed, y: bleed, radius: 25,
|
|
12
|
-
width: cut_width, height: cut_height
|
|
13
|
-
|
|
14
|
-
# We can also use cm this way
|
|
15
|
-
cm(2)
|
|
16
|
-
|
|
17
|
-
# Or we can use a string ending with cm or in
|
|
18
|
-
# (even cleaner in Yaml since we don't need quotes!)
|
|
19
|
-
safe_margin = '0.25in'
|
|
20
|
-
safe_width = '2.25in'
|
|
21
|
-
safe_height = '3.25in'
|
|
22
|
-
rect x: safe_margin, y: safe_margin,
|
|
23
|
-
width: safe_width, height: safe_height, radius: 25
|
|
24
|
-
|
|
25
|
-
rect x: '4cm', y: '4 cm ', width: 100, height: 100
|
|
26
|
-
|
|
27
|
-
save prefix: 'units_', format: :png
|
|
28
|
-
end
|