From de79b5d2de31a53d8d35792df615139633a3056c Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Fri, 11 Sep 2015 09:09:34 -0400 Subject: [PATCH] Bump pango, rsvg2, and cairo --- CHANGELOG.md | 4 ++-- squib.gemspec | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 377e4e1..f61a3bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,13 +14,13 @@ Features * Upgraded roo (Excel parsing) to 2.1.0. Macro-enabled Excel files can be parsed now (i.e. `xlsm`), although I've only mildly tested this. (cddea47ba56add286639e493d5cc0146245eca68) * New built-in layouts: `fantasy.yml` and `economy.yml`. Demonstrated in new sample `layouts_builtin.rb` (#97) * Added `:scale` shortcut to `width` and `height` options for `png` and `svg`. Allows you to set the width and the image will scale while keeping its aspect ratio. (e.g. `svg width: 500, height: :scale`) (#91) -* Upgraded cairo gem to 1.14.2, which silences some warnings on Macs and upgrades a lot of Windows dependencies +* Upgraded cairo dependency to 1.14.3, which silences some warnings on Macs and upgrades a lot of Windows dependencies. +* Upgraded pango, librsvg dependencies to 3.0.0, which focused mainly on upgrading Windows dependencies. Compatibility: * All drawn shapes (e.g. circle, triangle, star) will now draw their stroke on top of the fill. This was not consistent before, and now it is (because Squib is more DRY about it!). This means that your `stroke_width` might render wider than before. If you want the other behavior, specify `stroke_strategy: :stroke_first`. Also applies to `text` when `stroke_width` is specified. * The `width` and `height` options for `text` have changed their defaults from `:native` to `:auto`. This is to differentiate them from `:native` widths that default elsewhere. Additionally, `width` and `height` for shapes now default to `:deck`, and get interpreted as the deck width and height. The `:native` options are interpreted for SVG and PNG images as their original values. The behavior is all the same, just with more specific names. * Removed `img_dir` from the `set` method. You can still set `img_dir` in the configuration file (e.g. `config.yml`). Added a deprecation error. -* Default `width` and `height` for text embedding `png` and `svg` have changed from 32 to `:native` to be more consistent with the rest of the system Bugs: * Fixed a `Cairo::WriteError` on `save_sheet` (#56, PR #96 thank you @meltheadorable!) diff --git a/squib.gemspec b/squib.gemspec index 3a6ebd7..d1075a7 100644 --- a/squib.gemspec +++ b/squib.gemspec @@ -27,10 +27,10 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(/^(test|spec|features)\//) spec.require_paths = ['lib'] - spec.add_runtime_dependency 'cairo', '~> 1.14.2' - spec.add_runtime_dependency 'pango', '~> 2.2.0' + spec.add_runtime_dependency 'cairo', '~> 1.14.3' + spec.add_runtime_dependency 'pango', '~> 3.0.1' spec.add_runtime_dependency 'roo', '~> 2.1.0' - spec.add_runtime_dependency 'rsvg2', '~> 2.2.0' + spec.add_runtime_dependency 'rsvg2', '~> 3.0.0' spec.add_runtime_dependency 'mercenary', '~> 0.3.4' spec.add_runtime_dependency 'ruby-progressbar', '~> 1.6'