pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/ruby-squib games/ruby-squib: update to 0.16.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/014e0ee4fce3
branches:  trunk
changeset: 444680:014e0ee4fce3
user:      taca <taca%pkgsrc.org@localhost>
date:      Mon Jan 11 13:38:35 2021 +0000

description:
games/ruby-squib: update to 0.16.0

## v0.16.0 / 2020-11-24

Features:

* Special custom unit: cells. A "cell" defaults to 37.5px, or 1/8in,
  e.g. `x: '1 cell'` means `x: 37.5`.  See the docs for details.

* Shorthands for `x`, `y`, `width`, and `height`! The words `x: 'middle'`
  and `x: 'middle + 1in'` will get interpreted.  See the docs for details.

* Autoscaling text! `ellipsize: :autoscale` will now downscale your
  `font_size` if the text ellipsized.  Thanks @Qgel! (#288, #111).

* Option checking!! Completely reworked the way we handle arguments in
  Squib internally (no external behavioral differences).  Now, when you
  give an option to Squib that is not expected.  Since every DSL method
  "knows" what options it takes, that also means we have EVERY option
  properly documented (missed a few...) AND we have an automated test that
  will tell us if we forget to document it.

* `save_png` and `save_sheet` now have a `suffix` option which defaults to
  `''`.  So now you can customize the filenames with `prefix`,
  `count_format`, and `suffix`.

Compatibility:

* When saving PNGs with sprues, outputs start counting at zero - which is
  more consistent with the rest of Squib.

* Minimum Ruby is now 2.5. NOTE: Ruby 3.0 is coming Christmas 2020!! Check
  it out.

Bugs:

* Extra page/no page issue with sprues (#320)
* Fix Ruby 2.7+ deprecations with CSV arguments (#303)

Chores:
* Reorganized the code internally. (#298) Every DSL method now has its own file.
* Moved to Github Actions
* Bump pango et al

diffstat:

 games/ruby-squib/Makefile |  14 ++++++------
 games/ruby-squib/PLIST    |  50 +++++++++++++++++++++++++++++++++++-----------
 games/ruby-squib/distinfo |  10 ++++----
 3 files changed, 50 insertions(+), 24 deletions(-)

diffs (155 lines):

diff -r d7cdf23eee52 -r 014e0ee4fce3 games/ruby-squib/Makefile
--- a/games/ruby-squib/Makefile Mon Jan 11 13:35:03 2021 +0000
+++ b/games/ruby-squib/Makefile Mon Jan 11 13:38:35 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2020/03/24 00:34:50 taca Exp $
+# $NetBSD: Makefile,v 1.20 2021/01/11 13:38:35 taca Exp $
 
-DISTNAME=      squib-0.15.3
+DISTNAME=      squib-0.16.0
 #MASTER_SITES= ${MASTER_SITE_GITHUB:=andymeneely/}
 CATEGORIES=    games
 #GITHUB_TAG=   v${PKGVERSION_NOREV}
@@ -10,22 +10,22 @@
 COMMENT=       Tool for prototyping card and board games
 LICENSE=       mit
 
-DEPENDS+=      ${RUBY_PKGPREFIX}-mercenary>=0.3.6:../../devel/ruby-mercenary
+DEPENDS+=      ${RUBY_PKGPREFIX}-mercenary>=0.4.0<0.5:../../devel/ruby-mercenary
 DEPENDS+=      ${RUBY_PKGPREFIX}-nokogiri>=1.10.4:../../textproc/ruby-nokogiri
-DEPENDS+=      ${RUBY_PKGPREFIX}-classy_hash>=0.2.1<0.3:../../devel/ruby-classy_hash
+DEPENDS+=      ${RUBY_PKGPREFIX}-classy_hash>=0.2.1:../../devel/ruby-classy_hash
 #DEPENDS+=     ${RUBY_PKGPREFIX}-pkg-config-[0-9]*:../../devel/ruby-pkg-config
 #DEPENDS+=     ${RUBY_PKGPREFIX}-cairo>=1.16:../../graphics/ruby-cairo
 DEPENDS+=      ${RUBY_PKGPREFIX}-progressbar>=1.10<2:../../misc/ruby-progressbar
 DEPENDS+=      ${RUBY_PKGPREFIX}-roo>=2.8.2<2.9:../../math/ruby-roo
 DEPENDS+=      ${RUBY_PKGPREFIX}-pango>=3.4<4:../../devel/ruby-pango
+DEPENDS+=      ${RUBY_PKGPREFIX}-rainbow>=3.0.0:../../misc/ruby-rainbow
 DEPENDS+=      ${RUBY_PKGPREFIX}-rsvg2>=3.4<4:../../graphics/ruby-rsvg2
 #DEPENDS+=     ${RUBY_PKGPREFIX}-gobject-introspection>=3.4<4:../../devel/ruby-gobject-introspection
 #DEPENDS+=     ${RUBY_PKGPREFIX}-gio2>=3.4<4:../../devel/ruby-gio2
-DEPENDS+=      ${RUBY_PKGPREFIX}-highline>=2.0.2<2.1:../../devel/ruby-highline
+DEPENDS+=      ${RUBY_PKGPREFIX}-highline>=2.0.3<2.1:../../devel/ruby-highline
 
 RUBYGEM_OPTIONS+=      --format-executable
-
-OVERRIDE_GEMSPEC+=     mercenary>=0.3.6
+OVERRIDE_GEMSPEC+=     classy_hash>=0.2.1
 
 .include "../../lang/ruby/gem.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r d7cdf23eee52 -r 014e0ee4fce3 games/ruby-squib/PLIST
--- a/games/ruby-squib/PLIST    Mon Jan 11 13:35:03 2021 +0000
+++ b/games/ruby-squib/PLIST    Mon Jan 11 13:38:35 2021 +0000
@@ -1,29 +1,20 @@
-@comment $NetBSD: PLIST,v 1.6 2020/03/24 00:34:50 taca Exp $
+@comment $NetBSD: PLIST,v 1.7 2021/01/11 13:38:35 taca Exp $
 bin/squib${RUBY_SUFFIX}
 ${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/.github/workflows/tests.yml
 ${GEM_LIBDIR}/.gitignore
-${GEM_LIBDIR}/.travis.yml
 ${GEM_LIBDIR}/CHANGELOG.md
 ${GEM_LIBDIR}/CONTRIBUTING.md
 ${GEM_LIBDIR}/Dockerfile
 ${GEM_LIBDIR}/Gemfile
+${GEM_LIBDIR}/Guardfile
 ${GEM_LIBDIR}/LICENSE.txt
 ${GEM_LIBDIR}/README.md
 ${GEM_LIBDIR}/RELEASE TODO.md
 ${GEM_LIBDIR}/Rakefile
-${GEM_LIBDIR}/appveyor.yml
 ${GEM_LIBDIR}/bin/squib
 ${GEM_LIBDIR}/lib/squib.rb
-${GEM_LIBDIR}/lib/squib/api/background.rb
-${GEM_LIBDIR}/lib/squib/api/data.rb
-${GEM_LIBDIR}/lib/squib/api/groups.rb
-${GEM_LIBDIR}/lib/squib/api/image.rb
-${GEM_LIBDIR}/lib/squib/api/save.rb
 ${GEM_LIBDIR}/lib/squib/api/settings.rb
-${GEM_LIBDIR}/lib/squib/api/shapes.rb
-${GEM_LIBDIR}/lib/squib/api/text.rb
-${GEM_LIBDIR}/lib/squib/api/text_embed.rb
-${GEM_LIBDIR}/lib/squib/api/units.rb
 ${GEM_LIBDIR}/lib/squib/args/arg_loader.rb
 ${GEM_LIBDIR}/lib/squib/args/box.rb
 ${GEM_LIBDIR}/lib/squib/args/card_range.rb
@@ -48,6 +39,7 @@
 ${GEM_LIBDIR}/lib/squib/args/transform.rb
 ${GEM_LIBDIR}/lib/squib/args/typographer.rb
 ${GEM_LIBDIR}/lib/squib/args/unit_conversion.rb
+${GEM_LIBDIR}/lib/squib/args/xywh_shorthands.rb
 ${GEM_LIBDIR}/lib/squib/builtin/layouts/economy.yml
 ${GEM_LIBDIR}/lib/squib/builtin/layouts/fantasy.yml
 ${GEM_LIBDIR}/lib/squib/builtin/layouts/hand.yml
@@ -98,6 +90,34 @@
 ${GEM_LIBDIR}/lib/squib/conf.rb
 ${GEM_LIBDIR}/lib/squib/constants.rb
 ${GEM_LIBDIR}/lib/squib/deck.rb
+${GEM_LIBDIR}/lib/squib/dsl/background.rb
+${GEM_LIBDIR}/lib/squib/dsl/circle.rb
+${GEM_LIBDIR}/lib/squib/dsl/csv.rb
+${GEM_LIBDIR}/lib/squib/dsl/curve.rb
+${GEM_LIBDIR}/lib/squib/dsl/cut_zone.rb
+${GEM_LIBDIR}/lib/squib/dsl/ellipse.rb
+${GEM_LIBDIR}/lib/squib/dsl/grid.rb
+${GEM_LIBDIR}/lib/squib/dsl/groups.rb
+${GEM_LIBDIR}/lib/squib/dsl/hand.rb
+${GEM_LIBDIR}/lib/squib/dsl/line.rb
+${GEM_LIBDIR}/lib/squib/dsl/png.rb
+${GEM_LIBDIR}/lib/squib/dsl/polygon.rb
+${GEM_LIBDIR}/lib/squib/dsl/rect.rb
+${GEM_LIBDIR}/lib/squib/dsl/safe_zone.rb
+${GEM_LIBDIR}/lib/squib/dsl/save.rb
+${GEM_LIBDIR}/lib/squib/dsl/save_pdf.rb
+${GEM_LIBDIR}/lib/squib/dsl/save_png.rb
+${GEM_LIBDIR}/lib/squib/dsl/save_sheet.rb
+${GEM_LIBDIR}/lib/squib/dsl/showcase.rb
+${GEM_LIBDIR}/lib/squib/dsl/star.rb
+${GEM_LIBDIR}/lib/squib/dsl/svg.rb
+${GEM_LIBDIR}/lib/squib/dsl/text.rb
+${GEM_LIBDIR}/lib/squib/dsl/text_embed.rb
+${GEM_LIBDIR}/lib/squib/dsl/triangle.rb
+${GEM_LIBDIR}/lib/squib/dsl/units.rb
+${GEM_LIBDIR}/lib/squib/dsl/xlsx.rb
+${GEM_LIBDIR}/lib/squib/dsl/yaml.rb
+${GEM_LIBDIR}/lib/squib/errors_warnings/warn_unexpected_params.rb
 ${GEM_LIBDIR}/lib/squib/graphics/background.rb
 ${GEM_LIBDIR}/lib/squib/graphics/cairo_context_wrapper.rb
 ${GEM_LIBDIR}/lib/squib/graphics/embedding_utils.rb
@@ -111,7 +131,11 @@
 ${GEM_LIBDIR}/lib/squib/graphics/shapes.rb
 ${GEM_LIBDIR}/lib/squib/graphics/showcase.rb
 ${GEM_LIBDIR}/lib/squib/graphics/text.rb
+${GEM_LIBDIR}/lib/squib/import/csv_importer.rb
 ${GEM_LIBDIR}/lib/squib/import/data_frame.rb
+${GEM_LIBDIR}/lib/squib/import/quantity_exploder.rb
+${GEM_LIBDIR}/lib/squib/import/xlsx_importer.rb
+${GEM_LIBDIR}/lib/squib/import/yaml_importer.rb
 ${GEM_LIBDIR}/lib/squib/layout_parser.rb
 ${GEM_LIBDIR}/lib/squib/progress.rb
 ${GEM_LIBDIR}/lib/squib/sample_helpers.rb
@@ -166,6 +190,8 @@
 ${GEM_LIBDIR}/samples/text/_text.rb
 ${GEM_LIBDIR}/samples/text/_text_options.rb
 ${GEM_LIBDIR}/samples/text/bug134.rb
+${GEM_LIBDIR}/samples/units/_cells.rb
+${GEM_LIBDIR}/samples/units/_shorthands.rb
 ${GEM_LIBDIR}/samples/units/_units.rb
 ${GEM_LIBDIR}/squib.gemspec
 ${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff -r d7cdf23eee52 -r 014e0ee4fce3 games/ruby-squib/distinfo
--- a/games/ruby-squib/distinfo Mon Jan 11 13:35:03 2021 +0000
+++ b/games/ruby-squib/distinfo Mon Jan 11 13:38:35 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.11 2020/03/24 00:34:50 taca Exp $
+$NetBSD: distinfo,v 1.12 2021/01/11 13:38:35 taca Exp $
 
-SHA1 (squib-0.15.3.gem) = 1cb6e45914083c8288cf843f5acf3c3d6ceb3d14
-RMD160 (squib-0.15.3.gem) = f30d3d538e6faa7328e9d37ebd7df19cc58c7bba
-SHA512 (squib-0.15.3.gem) = d229d98af1bb8521f97633d698e9ec821d7e3f091fd4c87e02b0981d00d9bdb8f61b51037f74ec7c78a48e8fff726336df58e9013ed55edfa8cf795ff6f8f62a
-Size (squib-0.15.3.gem) = 88576 bytes
+SHA1 (squib-0.16.0.gem) = bf93f8bb206553c04ff020efb01889f50298585e
+RMD160 (squib-0.16.0.gem) = e8a6b9140326935187904d2f700a5083c1612109
+SHA512 (squib-0.16.0.gem) = 7d6769a9f2b7c9efa992e7b1f07051c52a7e88b935a4d8540641a362ce881e0d0148dbd05a55f155d05198a4f8e10b8e1d43b4744e314a015460293568e51a36
+Size (squib-0.16.0.gem) = 95744 bytes



Home | Main Index | Thread Index | Old Index