From 10e63c845fb2c2a9d6b204b386b4d00e6cdff880 Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Mon, 17 Jul 2017 11:31:53 -0400 Subject: [PATCH] Rollup of v0.13.x fixes See v0.13-fixes branch for individual fixes Conflicts: CHANGELOG.md lib/squib/version.rb squib.gemspec --- CHANGELOG.md | 14 +- docs/conf.py | 4 +- lib/squib/graphics/image.rb | 4 +- lib/squib/graphics/save_pdf.rb | 2 +- .../autoscale_font/_autoscale_font.rb.txt | 18 +- spec/data/samples/basic.rb.txt | 40 +-- spec/data/samples/colors/_gradients.rb.txt | 6 +- .../samples/config/config_text_markup.rb.txt | 18 +- spec/data/samples/config/custom_config.rb.txt | 8 +- spec/data/samples/data/_csv.rb.txt | 48 +-- spec/data/samples/data/_excel.rb.txt | 150 ++++----- spec/data/samples/hello_world.rb.txt | 12 +- .../samples/images/_more_load_images.rb.txt | 28 +- spec/data/samples/proofs/_tgc_proofs.rb.txt | 12 +- spec/data/samples/ranges/_ranges.rb.txt | 150 ++++----- spec/data/samples/saves/_hand.rb.txt | 48 +-- .../samples/saves/_portrait_landscape.rb.txt | 12 +- spec/data/samples/saves/_saves.rb.txt | 96 +++--- spec/data/samples/saves/_showcase.rb.txt | 32 +- spec/data/samples/text/_embed_text.rb.txt | 96 +++--- spec/data/samples/text/_text_options.rb.txt | 306 +++++++++--------- spec/data/samples/units/_units.rb.txt | 6 +- spec/spec_helper.rb | 4 +- squib.gemspec | 34 +- 24 files changed, 578 insertions(+), 570 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 890c3e9..1d468c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,13 +8,21 @@ Features: * `save_sheet` method now supports `rtl` or "right-to-left", for easier duplex printing of backs (#204, #208) by @sparr * `yaml` method for reading in data, much like `csv` and `xlsx` by @blinks -Chores: -* Bumped dependencies for Cairo to 1.15.8, Pango et al. to 3.1.4, and nokogiri to 1.7.2. Locked in Cairo and Pango deps so we don't have live release issues that we had recently. +Special thanks to @sparr and @blinks for all of their work!! + +## v0.13.4 / 2017-07-17 Bugs: +* Bumped Pango et al. to 3.1.8 to fix the Homebrew/Mac compatibility issue in Squib v0.13.3. Install should be clean on Macs now. + +## v0.13.3 / 2017-07-15 + +Bugs: +* Fix `undefined method [] for nil:NilClass` error on `svg` (was a regression error in librsvg that we worked around.) +* Bump dependencies to latest stable versions. Pango et al. to 3.1.7 and Cairo to 1.15.9. This fixes some compatibility issues. * Fixed some deprecation warnings on `text` -Special thanks to @sparr and @blinks for all of their work!! +Compatibility known issue: if you are using Homebrew on Mac, you may need to set an environment variable for this version. This should be fixed in the upcoming 3.1.8 version of Pango that is forthcoming. See this: https://github.com/ruby-gnome2/ruby-gnome2/issues/1058 ## v0.13.2 / 2017-01-27 diff --git a/docs/conf.py b/docs/conf.py index 32b706a..831d09a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -55,9 +55,9 @@ author = u'Andy Meneely' # built documents. # # The short X.Y version. -version = u'v0.13' +version = u'v0.14' # The full version, including alpha/beta/rc tags. -release = u'v0.13.1' +release = u'v0.14.0a' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/lib/squib/graphics/image.rb b/lib/squib/graphics/image.rb index 33d0323..8796e51 100644 --- a/lib/squib/graphics/image.rb +++ b/lib/squib/graphics/image.rb @@ -88,11 +88,11 @@ module Squib cc.operator = paint.blend unless paint.blend == :none if paint.mask.to_s.empty? - cc.render_rsvg_handle(svg, svg_args.id) + cc.render_rsvg_handle(svg, id: svg_args.id) else tmp = Cairo::ImageSurface.new(box.width / scale_width, box.height / scale_height) tmp_cc = Cairo::Context.new(tmp) - tmp_cc.render_rsvg_handle(svg, svg_args.id) + tmp_cc.render_rsvg_handle(svg, id: svg_args.id) cc.set_source_squibcolor(paint.mask) cc.mask(tmp, 0, 0) end diff --git a/lib/squib/graphics/save_pdf.rb b/lib/squib/graphics/save_pdf.rb index 4218f28..c326027 100644 --- a/lib/squib/graphics/save_pdf.rb +++ b/lib/squib/graphics/save_pdf.rb @@ -30,7 +30,7 @@ module Squib card.cairo_surface.finish cc.save cc.scale(0.8, 0.8) # I really don't know why I needed to do this at all. But 0.8 is the magic number to get this to scale right - cc.render_rsvg_handle(RSVG::Handle.new_from_file(card.svgfile), nil) + cc.render_rsvg_handle(Rsvg::Handle.new_from_file(card.svgfile)) cc.restore else abort "No such back end supported for save_pdf: #{backend}" diff --git a/spec/data/samples/autoscale_font/_autoscale_font.rb.txt b/spec/data/samples/autoscale_font/_autoscale_font.rb.txt index a76c92a..2b1e904 100644 --- a/spec/data/samples/autoscale_font/_autoscale_font.rb.txt +++ b/spec/data/samples/autoscale_font/_autoscale_font.rb.txt @@ -64,9 +64,9 @@ pango font: size=([32768]) pango: font_description=([MockDouble]) pango: text=(["Short & Big"]) pango: width=([286720]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -86,9 +86,9 @@ pango font: size=([18432]) pango: font_description=([MockDouble]) pango: text=(["Medium Length & Size"]) pango: width=([286720]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -108,9 +108,9 @@ pango font: size=([12288]) pango: font_description=([MockDouble]) pango: text=(["Super duper long string here, therefore a smaller font."]) pango: width=([286720]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/data/samples/basic.rb.txt b/spec/data/samples/basic.rb.txt index 5c1495d..20c2051 100644 --- a/spec/data/samples/basic.rb.txt +++ b/spec/data/samples/basic.rb.txt @@ -104,9 +104,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -120,9 +120,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Grifter"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -136,9 +136,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Mastermind"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -153,9 +153,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["1"]) pango: width=([131072]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -170,9 +170,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["2"]) pango: width=([131072]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -187,9 +187,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["3"]) pango: width=([131072]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -228,7 +228,7 @@ cairo: scale([1.0, 1.0]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([620, 218]) @@ -238,7 +238,7 @@ cairo: scale([1.0, 1.0]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) surface: write_to_png(["_output/basic_00.png"]) surface: write_to_png(["_output/basic_01.png"]) diff --git a/spec/data/samples/colors/_gradients.rb.txt b/spec/data/samples/colors/_gradients.rb.txt index 2026786..cebd751 100644 --- a/spec/data/samples/colors/_gradients.rb.txt +++ b/spec/data/samples/colors/_gradients.rb.txt @@ -70,9 +70,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Hello, world!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/data/samples/config/config_text_markup.rb.txt b/spec/data/samples/config/config_text_markup.rb.txt index 1ee5258..406ce32 100644 --- a/spec/data/samples/config/config_text_markup.rb.txt +++ b/spec/data/samples/config/config_text_markup.rb.txt @@ -13,9 +13,9 @@ pango: text=(["\"'Yaml ain't markup', he says\""]) pango: markup=(["foo"]) pango: width=([307200]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -35,9 +35,9 @@ pango: font_description=([MockDouble]) pango: text=(["Notice also the antialiasing method."]) pango: width=([307200]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -57,9 +57,9 @@ pango: text=(["This has typographic sugar --- and ``explicit'' quotes --- but th pango: markup=(["foo"]) pango: width=([307200]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/data/samples/config/custom_config.rb.txt b/spec/data/samples/config/custom_config.rb.txt index 1009147..ce03661 100644 --- a/spec/data/samples/config/custom_config.rb.txt +++ b/spec/data/samples/config/custom_config.rb.txt @@ -11,9 +11,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["The Title"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -44,7 +44,7 @@ cairo: scale([1.0, 1.0]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) surface: write_to_png(["_output/custom-config_00.png"]) cairo: scale([0.24, 0.24]) diff --git a/spec/data/samples/data/_csv.rb.txt b/spec/data/samples/data/_csv.rb.txt index e7ec4ec..d53862b 100644 --- a/spec/data/samples/data/_csv.rb.txt +++ b/spec/data/samples/data/_csv.rb.txt @@ -15,9 +15,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -31,9 +31,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Mastermind"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -47,9 +47,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["1"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -63,9 +63,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["2"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -159,9 +159,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Basilisk"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -175,9 +175,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Basilisk"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -191,9 +191,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Basilisk"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -207,9 +207,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["High Templar"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/data/samples/data/_excel.rb.txt b/spec/data/samples/data/_excel.rb.txt index 0b220b2..3606f0f 100644 --- a/spec/data/samples/data/_excel.rb.txt +++ b/spec/data/samples/data/_excel.rb.txt @@ -20,9 +20,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -36,9 +36,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Grifter"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -52,9 +52,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Mastermind"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -68,9 +68,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["1"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -84,9 +84,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["2"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -100,9 +100,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["3"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -116,9 +116,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["A clever pickpocket on the street."]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -132,9 +132,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["A sophisticated con artist who makes you run home for your wallet"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -148,9 +148,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["A brilliant mind devoted to a life of crime."]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -246,9 +246,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Zergling"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -262,9 +262,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Zergling"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -278,9 +278,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Zergling"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -294,9 +294,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["High Templar"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -438,9 +438,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Wood"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -459,9 +459,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Wood"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -480,9 +480,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Wood"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -501,9 +501,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Metal"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -522,9 +522,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Metal"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -543,9 +543,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Stone"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -564,9 +564,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["$2k"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -585,9 +585,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["$2k"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -606,9 +606,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["$2k"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -627,9 +627,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["$3k"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -648,9 +648,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["$3k"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -669,9 +669,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["$5k"]) pango: width=([844800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/data/samples/hello_world.rb.txt b/spec/data/samples/hello_world.rb.txt index e5f2e1b..32f2d4c 100644 --- a/spec/data/samples/hello_world.rb.txt +++ b/spec/data/samples/hello_world.rb.txt @@ -7,9 +7,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Hello"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -23,9 +23,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["World!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/data/samples/images/_more_load_images.rb.txt b/spec/data/samples/images/_more_load_images.rb.txt index f753db2..64ca322 100644 --- a/spec/data/samples/images/_more_load_images.rb.txt +++ b/spec/data/samples/images/_more_load_images.rb.txt @@ -37,7 +37,7 @@ cairo: scale([1.0, 1.0]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([50, 50]) @@ -47,7 +47,7 @@ cairo: scale([1.953125, 1.953125]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([305, 50]) @@ -69,7 +69,7 @@ cairo: scale([0.2734375, 0.2734375]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([200, 390]) @@ -79,7 +79,7 @@ cairo: scale([0.2734375, 0.2734375]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([240, 350]) @@ -161,7 +161,7 @@ cairo: scale([0.5, 0.5]) cairo: rounded_rectangle([0, 0, 64.0, 64.0, 0, 0]) cairo: clip([]) cairo: translate([-32, -32]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([300, 535]) @@ -183,7 +183,7 @@ cairo: scale([0.5, 0.5]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([50, 350]) @@ -193,7 +193,7 @@ cairo: scale([0.5859375, 0.5859375]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, "#backdrop"]) +cairo: render_rsvg_handle([Rsvg::Handle"#backdrop"}]) cairo: restore([]) cairo: save([]) cairo: translate([50, 450]) @@ -203,7 +203,7 @@ cairo: scale([0.9765625, 0.9765625]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, "#backdrop"]) +cairo: render_rsvg_handle([Rsvg::Handle"#backdrop"}]) cairo: restore([]) cairo: save([]) cairo: translate([50, 600]) @@ -213,7 +213,7 @@ cairo: scale([0.5859375, 0.5859375]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([0, 0]) @@ -223,7 +223,7 @@ cairo: scale([6.0, 6.0]) cairo: rounded_rectangle([0, 0, 100.0, 100.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, "#thing"]) +cairo: render_rsvg_handle([Rsvg::Handle"#thing"}]) cairo: restore([]) cairo: save([]) cairo: translate([50, 700]) @@ -282,7 +282,7 @@ cairo: scale([1.0, 1.0]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([500, 600]) @@ -292,7 +292,7 @@ cairo: scale([0.390625, 0.390625]) cairo: rounded_rectangle([0, 0, 512.0, 512.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: set_source_color(["#00ff00"]) cairo: mask([MockDouble, 0, 0]) cairo: restore([]) @@ -304,7 +304,7 @@ cairo: scale([0.390625, 0.390625]) cairo: rounded_rectangle([0, 0, 512.0, 512.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: set_source([LinearPattern]) cairo: mask([MockDouble, 0, 0]) cairo: restore([]) @@ -329,7 +329,7 @@ cairo: scale([6.4453125, 8.7890625]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, "#"]) +cairo: render_rsvg_handle([Rsvg::Handle"#"}]) cairo: restore([]) surface: write_to_png(["_output/load_images_00.png"]) surface: finish([]) diff --git a/spec/data/samples/proofs/_tgc_proofs.rb.txt b/spec/data/samples/proofs/_tgc_proofs.rb.txt index ff72597..68c4b9a 100644 --- a/spec/data/samples/proofs/_tgc_proofs.rb.txt +++ b/spec/data/samples/proofs/_tgc_proofs.rb.txt @@ -38,9 +38,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Mastermind"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -55,9 +55,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["3"]) pango: width=([131072]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/data/samples/ranges/_ranges.rb.txt b/spec/data/samples/ranges/_ranges.rb.txt index 055af27..e1cc391 100644 --- a/spec/data/samples/ranges/_ranges.rb.txt +++ b/spec/data/samples/ranges/_ranges.rb.txt @@ -20,9 +20,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -36,9 +36,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Grifter"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -52,9 +52,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Mastermind"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -68,9 +68,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["1"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -84,9 +84,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["2"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -100,9 +100,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["3"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -117,9 +117,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thug"]) pango: width=([102400]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -134,9 +134,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thinker"]) pango: width=([102400]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -151,9 +151,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thinker"]) pango: width=([102400]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -167,9 +167,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief and Grifter only!!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -183,9 +183,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief and Grifter only!!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -199,9 +199,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief only!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -215,9 +215,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Mastermind only!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -231,9 +231,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Grifter and Mastermind only!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -247,9 +247,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Grifter and Mastermind only!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -263,9 +263,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief and Mastermind only!!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -279,9 +279,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief and Mastermind only!!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -295,9 +295,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["red"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -311,9 +311,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["green"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -327,9 +327,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["blue"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -343,9 +343,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief through Grifter with id lookup!!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -359,9 +359,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief through Grifter with id lookup!!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -375,9 +375,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Only for Thinkers!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -391,9 +391,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Only for Thinkers!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -408,7 +408,7 @@ cairo: scale([0.078125, 0.078125]) cairo: rounded_rectangle([0, 0, 512.0, 512.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([150, 55]) @@ -418,7 +418,7 @@ cairo: scale([0.078125, 0.078125]) cairo: rounded_rectangle([0, 0, 512.0, 512.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([150, 97]) @@ -428,7 +428,7 @@ cairo: scale([0.078125, 0.078125]) cairo: rounded_rectangle([0, 0, 512.0, 512.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([0, 0]) diff --git a/spec/data/samples/saves/_hand.rb.txt b/spec/data/samples/saves/_hand.rb.txt index 882ad6e..5fc8e97 100644 --- a/spec/data/samples/saves/_hand.rb.txt +++ b/spec/data/samples/saves/_hand.rb.txt @@ -271,9 +271,9 @@ pango: font_description=([MockDouble]) pango: text=(["A"]) pango: width=([204800]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -289,9 +289,9 @@ pango: font_description=([MockDouble]) pango: text=(["B"]) pango: width=([204800]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -307,9 +307,9 @@ pango: font_description=([MockDouble]) pango: text=(["C"]) pango: width=([204800]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -325,9 +325,9 @@ pango: font_description=([MockDouble]) pango: text=(["D"]) pango: width=([204800]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -343,9 +343,9 @@ pango: font_description=([MockDouble]) pango: text=(["E"]) pango: width=([204800]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -361,9 +361,9 @@ pango: font_description=([MockDouble]) pango: text=(["F"]) pango: width=([204800]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -379,9 +379,9 @@ pango: font_description=([MockDouble]) pango: text=(["G"]) pango: width=([204800]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -397,9 +397,9 @@ pango: font_description=([MockDouble]) pango: text=(["H"]) pango: width=([204800]) pango: height=([204800]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/data/samples/saves/_portrait_landscape.rb.txt b/spec/data/samples/saves/_portrait_landscape.rb.txt index 7bf045c..5597bcf 100644 --- a/spec/data/samples/saves/_portrait_landscape.rb.txt +++ b/spec/data/samples/saves/_portrait_landscape.rb.txt @@ -10,9 +10,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["This is portrait and trimmed"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -37,9 +37,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["This is landscape and trimmed"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/data/samples/saves/_saves.rb.txt b/spec/data/samples/saves/_saves.rb.txt index c9a6400..2d4c159 100644 --- a/spec/data/samples/saves/_saves.rb.txt +++ b/spec/data/samples/saves/_saves.rb.txt @@ -309,9 +309,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["1"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -325,9 +325,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["2"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -341,9 +341,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["3"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -357,9 +357,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["4"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -373,9 +373,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["5"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -389,9 +389,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["6"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -405,9 +405,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["7"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -421,9 +421,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["8"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -437,9 +437,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["9"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -453,9 +453,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["10"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -469,9 +469,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["11"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -485,9 +485,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["12"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -501,9 +501,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["13"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -517,9 +517,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["14"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -533,9 +533,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["15"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -549,9 +549,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["16"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/data/samples/saves/_showcase.rb.txt b/spec/data/samples/saves/_showcase.rb.txt index 7b99265..895e72a 100644 --- a/spec/data/samples/saves/_showcase.rb.txt +++ b/spec/data/samples/saves/_showcase.rb.txt @@ -82,9 +82,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Grifter"]) pango: width=([691200.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -99,9 +99,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief"]) pango: width=([691200.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -116,9 +116,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thug"]) pango: width=([691200.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -133,9 +133,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Kingpin"]) pango: width=([691200.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -150,7 +150,7 @@ cairo: scale([3.90625, 3.90625]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([162, 500]) @@ -160,7 +160,7 @@ cairo: scale([3.90625, 3.90625]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([162, 500]) @@ -170,7 +170,7 @@ cairo: scale([3.90625, 3.90625]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: save([]) cairo: translate([162, 500]) @@ -180,7 +180,7 @@ cairo: scale([3.90625, 3.90625]) cairo: rounded_rectangle([0, 0, 128.0, 128.0, 0, 0]) cairo: clip([]) cairo: translate([0, 0]) -cairo: render_rsvg_handle([RSVG::Handle, nil]) +cairo: render_rsvg_handle([Rsvg::Handlenil}]) cairo: restore([]) cairo: set_source_color(["white"]) cairo: paint([]) diff --git a/spec/data/samples/text/_embed_text.rb.txt b/spec/data/samples/text/_embed_text.rb.txt index e340d1a..b21eddf 100644 --- a/spec/data/samples/text/_embed_text.rb.txt +++ b/spec/data/samples/text/_embed_text.rb.txt @@ -25,9 +25,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Take 11 :tool: and gain 2 :health:. Take 2 :tool: and gain 3 :purse: if level 2."]) pango: width=([184320]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Take 11 :tool: and gain 2 :health:. Take 2 :tool: and gain 3 :purse: if level 2."]) pango: attributes=([Pango::AttrList]) @@ -48,9 +48,9 @@ pango: font_description=([MockDouble]) pango: text=(["Middle align: Take 1 :tool: and gain 2 :health:. Take 2 :tool: and gain 3 :purse:"]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Middle align: Take 1 :tool: and gain 2 :health:. Take 2 :tool: and gain 3 :purse:"]) pango: attributes=([Pango::AttrList]) @@ -71,9 +71,9 @@ pango: font_description=([MockDouble]) pango: text=(["This :tool: aligns on the bottom properly. :purse:"]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["This :tool: aligns on the bottom properly. :purse:"]) pango: attributes=([Pango::AttrList]) @@ -94,9 +94,9 @@ pango: font_description=([MockDouble]) pango: text=(["Yes, this wraps strangely. We are trying to determine the cause. These are 1 :tool::tool::tool: and these are multiple :tool::tool: :tool::tool:"]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Yes, this wraps strangely. We are trying to determine the cause. These are 1 :tool::tool::tool: and these are multiple :tool::tool: :tool::tool:"]) pango: attributes=([Pango::AttrList]) @@ -117,9 +117,9 @@ pango: font_description=([MockDouble]) pango: text=([":tool:Justify will :tool: work too, and :purse: with more words just for fun"]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([true]) pango: markup=([":tool:Justify will :tool: work too, and :purse: with more words just for fun"]) pango: attributes=([Pango::AttrList]) @@ -140,9 +140,9 @@ pango: font_description=([MockDouble]) pango: text=(["Right-aligned works :tool: with :health: and :purse:"]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Right-aligned works :tool: with :health: and :purse:"]) pango: attributes=([Pango::AttrList]) @@ -163,9 +163,9 @@ pango: font_description=([MockDouble]) pango: text=([":tool:Center-aligned works :tool: with :health: and :purse:"]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=([":tool:Center-aligned works :tool: with :health: and :purse:"]) pango: attributes=([Pango::AttrList]) @@ -187,9 +187,9 @@ pango: text=(["Markup --- and typography replacements --- with \":tool:\" icons pango: markup=(["foo"]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["foo"]) pango: attributes=([Pango::AttrList]) @@ -211,9 +211,9 @@ pango: text=([":tool:"]) pango: markup=(["foo"]) pango: width=([184320]) pango: height=([51200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["foo"]) pango: attributes=([Pango::AttrList]) @@ -235,9 +235,9 @@ pango: text=([":purse:"]) pango: markup=(["foo"]) pango: width=([184320]) pango: height=([51200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["foo"]) pango: attributes=([Pango::AttrList]) @@ -258,9 +258,9 @@ pango: font_description=([MockDouble]) pango: text=([":tool: Death to Nemesis bug 103!! :purse:"]) pango: width=([389120]) pango: height=([153600]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=([":tool: Death to Nemesis bug 103!! :purse:"]) pango: attributes=([Pango::AttrList]) @@ -289,9 +289,9 @@ pango: font_description=([MockDouble]) pango: text=(["You can adjust the icon with dx and dy. Normal: :tool: Adjusted: :heart:"]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["You can adjust the icon with dx and dy. Normal: :tool: Adjusted: :heart:"]) pango: attributes=([Pango::AttrList]) @@ -312,9 +312,9 @@ pango: font_description=([MockDouble]) pango: text=(["Native sizes work too\n:tool:\n\n\n\n\n\n:shiny-purse:\n\n\n\n\n\n:tool2:"]) pango: width=([184320]) pango: height=([486400]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Native sizes work too\n:tool:\n\n\n\n\n\n:shiny-purse:\n\n\n\n\n\n:tool2:"]) pango: attributes=([Pango::AttrList]) @@ -353,9 +353,9 @@ pango: font_description=([MockDouble]) pango: text=(["Take 1 :tool: and gain 2 :health:."]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Take 1 :tool: and gain 2 :health:."]) pango: attributes=([Pango::AttrList]) @@ -377,9 +377,9 @@ pango: font_description=([MockDouble]) pango: text=(["Take 1 :tool: and gain 2 :health:."]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Take 1 :tool: and gain 2 :health:."]) pango: attributes=([Pango::AttrList]) @@ -401,9 +401,9 @@ pango: font_description=([MockDouble]) pango: text=(["Take 1 :tool: and gain 2 :health:."]) pango: width=([184320]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Take 1 :tool: and gain 2 :health:."]) pango: attributes=([Pango::AttrList]) diff --git a/spec/data/samples/text/_text_options.rb.txt b/spec/data/samples/text/_text_options.rb.txt index 12ca0c3..c245de1 100644 --- a/spec/data/samples/text/_text_options.rb.txt +++ b/spec/data/samples/text/_text_options.rb.txt @@ -104,9 +104,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Thief"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -119,9 +119,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Grifter"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -134,9 +134,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Mastermind"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -149,9 +149,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["1"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -164,9 +164,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["2"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -179,9 +179,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["3"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -194,9 +194,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Font strings are expressive!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -209,9 +209,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Font strings are expressive!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -224,9 +224,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Font strings are expressive!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -239,9 +239,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Font strings are expressive!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -254,9 +254,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Font strings are expressive!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -269,9 +269,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Font strings are expressive!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -285,9 +285,9 @@ cairo: move_to([0, 0]) pango font: size=([16384]) pango: font_description=([MockDouble]) pango: text=(["Font string sizes can be overridden per card."]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -301,9 +301,9 @@ cairo: move_to([0, 0]) pango font: size=([20480]) pango: font_description=([MockDouble]) pango: text=(["Font string sizes can be overridden per card."]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -317,9 +317,9 @@ cairo: move_to([0, 0]) pango font: size=([24576]) pango: font_description=([MockDouble]) pango: text=(["Font string sizes can be overridden per card."]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -334,9 +334,9 @@ pango: font_description=([MockDouble]) pango: text=(["This text has fixed width, fixed height, center-aligned, middle-valigned, and has a red hint"]) pango: width=([307200]) pango: height=([128000]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0.0]) cairo: move_to([0, 0.0]) @@ -355,9 +355,9 @@ pango: font_description=([MockDouble]) pango: text=(["This text has fixed width, fixed height, center-aligned, middle-valigned, and has a red hint"]) pango: width=([307200]) pango: height=([128000]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0.0]) cairo: move_to([0, 0.0]) @@ -376,9 +376,9 @@ pango: font_description=([MockDouble]) pango: text=(["This text has fixed width, fixed height, center-aligned, middle-valigned, and has a red hint"]) pango: width=([307200]) pango: height=([128000]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0.0]) cairo: move_to([0, 0.0]) @@ -396,9 +396,9 @@ cairo: move_to([0, 0]) pango font: size=([16384]) pango: font_description=([MockDouble]) pango: text=(["Ink extent return value"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -412,9 +412,9 @@ cairo: move_to([0, 0]) pango font: size=([20480]) pango: font_description=([MockDouble]) pango: text=(["Ink extent return value"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -428,9 +428,9 @@ cairo: move_to([0, 0]) pango font: size=([24576]) pango: font_description=([MockDouble]) pango: text=(["Ink extent return value"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -487,9 +487,9 @@ pango: font_description=([MockDouble]) pango: text=(["Ellipsization!\nThe ultimate question of life, the universe, and everything to life and everything is 42"]) pango: width=([286720]) pango: height=([184320]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -508,9 +508,9 @@ pango: font_description=([MockDouble]) pango: text=(["Ellipsization!\nThe ultimate question of life, the universe, and everything to life and everything is 42"]) pango: width=([286720]) pango: height=([184320]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -529,9 +529,9 @@ pango: font_description=([MockDouble]) pango: text=(["Ellipsization!\nThe ultimate question of life, the universe, and everything to life and everything is 42"]) pango: width=([286720]) pango: height=([184320]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -548,9 +548,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Text hints & fonts are globally togglable!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -567,9 +567,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Text hints & fonts are globally togglable!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -586,9 +586,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Text hints & fonts are globally togglable!"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -605,9 +605,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["See? No hint here."]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -620,9 +620,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["See? No hint here."]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -635,9 +635,9 @@ cairo: rotate([0]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["See? No hint here."]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -650,9 +650,9 @@ cairo: rotate([0.2]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Rotated"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -669,9 +669,9 @@ cairo: rotate([0.2]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Rotated"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -688,9 +688,9 @@ cairo: rotate([0.2]) cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Rotated"]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -709,9 +709,9 @@ pango: font_description=([MockDouble]) pango: text=(["This is left-justified text, with newlines.\nWhat do you know about tweetle beetles? well... When tweetle beetles fight, it's called a tweetle beetle battle. And when they battle in a puddle, it's a tweetle beetle puddle battle. AND when tweetle beetles battle with paddles in a puddle, they call it a tweetle beetle puddle paddle battle. AND... When beetles battle beetles in a puddle paddle battle and the beetle battle puddle is a puddle in a bottle... ..they call this a tweetle beetle bottle puddle paddle battle muddle."]) pango: width=([460800.0]) pango: height=([307200.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([true]) pango: spacing=([-6144.0]) cairo: move_to([0, 0]) @@ -727,9 +727,9 @@ pango: font_description=([MockDouble]) pango: text=(["This is left-justified text, with newlines.\nWhat do you know about tweetle beetles? well... When tweetle beetles fight, it's called a tweetle beetle battle. And when they battle in a puddle, it's a tweetle beetle puddle battle. AND when tweetle beetles battle with paddles in a puddle, they call it a tweetle beetle puddle paddle battle. AND... When beetles battle beetles in a puddle paddle battle and the beetle battle puddle is a puddle in a bottle... ..they call this a tweetle beetle bottle puddle paddle battle muddle."]) pango: width=([460800.0]) pango: height=([307200.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([true]) pango: spacing=([-6144.0]) cairo: move_to([0, 0]) @@ -745,9 +745,9 @@ pango: font_description=([MockDouble]) pango: text=(["This is left-justified text, with newlines.\nWhat do you know about tweetle beetles? well... When tweetle beetles fight, it's called a tweetle beetle battle. And when they battle in a puddle, it's a tweetle beetle puddle battle. AND when tweetle beetles battle with paddles in a puddle, they call it a tweetle beetle puddle paddle battle. AND... When beetles battle beetles in a puddle paddle battle and the beetle battle puddle is a puddle in a bottle... ..they call this a tweetle beetle bottle puddle paddle battle muddle."]) pango: width=([460800.0]) pango: height=([307200.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([true]) pango: spacing=([-6144.0]) cairo: move_to([0, 0]) @@ -762,9 +762,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Embedded icons! Take 1 :tool: and gain 2:health:. If Level 2, take 2 :tool:"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Embedded icons! Take 1 :tool: and gain 2:health:. If Level 2, take 2 :tool:"]) pango: attributes=([Pango::AttrList]) @@ -780,9 +780,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Embedded icons! Take 1 :tool: and gain 2:health:. If Level 2, take 2 :tool:"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Embedded icons! Take 1 :tool: and gain 2:health:. If Level 2, take 2 :tool:"]) pango: attributes=([Pango::AttrList]) @@ -798,9 +798,9 @@ cairo: move_to([0, 0]) pango: font_description=([MockDouble]) pango: text=(["Embedded icons! Take 1 :tool: and gain 2:health:. If Level 2, take 2 :tool:"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) pango: markup=(["Embedded icons! Take 1 :tool: and gain 2:health:. If Level 2, take 2 :tool:"]) pango: attributes=([Pango::AttrList]) @@ -817,9 +817,9 @@ pango: font_description=([MockDouble]) pango: text=(["Fill n stroke"]) pango: markup=(["foo"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -842,9 +842,9 @@ pango: font_description=([MockDouble]) pango: text=(["Fill n stroke"]) pango: markup=(["foo"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -867,9 +867,9 @@ pango: font_description=([MockDouble]) pango: text=(["Fill n stroke"]) pango: markup=(["foo"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -892,9 +892,9 @@ pango: font_description=([MockDouble]) pango: text=(["Stroke n fill"]) pango: markup=(["foo"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: pango_layout_path([MockDouble]) @@ -917,9 +917,9 @@ pango: font_description=([MockDouble]) pango: text=(["Stroke n fill"]) pango: markup=(["foo"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: pango_layout_path([MockDouble]) @@ -942,9 +942,9 @@ pango: font_description=([MockDouble]) pango: text=(["Stroke n fill"]) pango: markup=(["foo"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: pango_layout_path([MockDouble]) @@ -967,9 +967,9 @@ pango: font_description=([MockDouble]) pango: text=(["Dotted"]) pango: markup=(["foo"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -992,9 +992,9 @@ pango: font_description=([MockDouble]) pango: text=(["Dotted"]) pango: markup=(["foo"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -1017,9 +1017,9 @@ pango: font_description=([MockDouble]) pango: text=(["Dotted"]) pango: markup=(["foo"]) pango: width=([261120.0]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) @@ -1043,9 +1043,9 @@ pango: text=(["Markup is quite 'easy' ]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0.0]) cairo: move_to([0, 0.0]) @@ -1065,9 +1065,9 @@ pango: text=(["Markup is quite 'easy' ]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0.0]) cairo: move_to([0, 0.0]) @@ -1087,9 +1087,9 @@ pango: text=(["Markup is quite 'easy' ]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0.0]) cairo: move_to([0, 0.0]) diff --git a/spec/data/samples/units/_units.rb.txt b/spec/data/samples/units/_units.rb.txt index d280864..273a903 100644 --- a/spec/data/samples/units/_units.rb.txt +++ b/spec/data/samples/units/_units.rb.txt @@ -40,9 +40,9 @@ pango: font_description=([MockDouble]) pango: text=(["Hello."]) pango: width=([384000.0]) pango: height=([307200]) -pango: wrap=([#]) -pango: ellipsize=([#]) -pango: alignment=([#]) +pango: wrap=([#]) +pango: ellipsize=([#]) +pango: alignment=([#]) pango: justify=([false]) cairo: move_to([0, 0]) cairo: move_to([0, 0]) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cd9e39b..33d3679 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -74,7 +74,7 @@ def scrub_hex(str) .gsub(/#/, 'LinearPattern') .gsub(/#/, 'RadialPattern') .gsub(/#/, 'Matrix') - .gsub(/#/, 'RSVG::Handle') + .gsub(/#/, 'Rsvg::Handle') .gsub(/#/, 'MockDouble') .gsub(/#/, 'MockDouble') .gsub(/RGB:\w{1,8}/, 'RGB:') @@ -105,7 +105,7 @@ def mock_cairo(strio) allow(pango).to receive(:index_to_pos).and_return(Pango::Rectangle.new(0, 0, 0, 0)) allow(pango).to receive(:extents).and_return([Pango::Rectangle.new(0, 0, 0, 0)] * 2) allow(pango).to receive(:iter).and_return(iter) - allow(pango).to receive(:alignment).and_return(Pango::Layout::Alignment::LEFT) + allow(pango).to receive(:alignment).and_return(Pango::Alignment::LEFT) allow(pango).to receive(:text).and_return('foo') allow(pango).to receive(:context).and_return(pango_cxt) allow(pango).to receive(:attributes).and_return(nil) diff --git a/squib.gemspec b/squib.gemspec index 29f429d..b184d76 100644 --- a/squib.gemspec +++ b/squib.gemspec @@ -29,22 +29,22 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(/^(spec|samples|docs|benchmarks)\//) spec.require_paths = ['lib'] - spec.add_runtime_dependency 'cairo', '1.15.8' - spec.add_runtime_dependency 'gio2', '3.1.4' - spec.add_runtime_dependency 'gobject-introspection', '3.1.4' - spec.add_runtime_dependency 'mercenary', '~> 0.3.4' - spec.add_runtime_dependency 'nokogiri', '~> 1.7.2' - spec.add_runtime_dependency 'pango', '3.1.4' - spec.add_runtime_dependency 'roo', '~> 2.7.1' - spec.add_runtime_dependency 'rsvg2', '3.1.4' - spec.add_runtime_dependency 'ruby-progressbar', '~> 1.8.1' - - spec.add_development_dependency 'bundler', '~> 1.13' - spec.add_development_dependency 'rake' - spec.add_development_dependency 'rspec', '~> 3.3' - spec.add_development_dependency 'coveralls' - # spec.add_development_dependency 'byebug' - spec.add_development_dependency 'launchy' - spec.add_development_dependency 'game_icons' + spec.add_runtime_dependency 'cairo', '1.15.9' + spec.add_runtime_dependency 'gio2', '3.1.8' + spec.add_runtime_dependency 'gobject-introspection', '3.1.8' + spec.add_runtime_dependency 'mercenary', '0.3.6' + spec.add_runtime_dependency 'nokogiri', '1.8.0' + spec.add_runtime_dependency 'pango', '3.1.8' + spec.add_runtime_dependency 'rsvg2', '3.1.8' + spec.add_runtime_dependency 'roo', '2.7.1' + spec.add_runtime_dependency 'ruby-progressbar', '1.8.1' + + spec.add_development_dependency 'bundler' + spec.add_development_dependency 'rake' + spec.add_development_dependency 'rspec', '~> 3.3' + spec.add_development_dependency 'coveralls' + # spec.add_development_dependency 'byebug' + spec.add_development_dependency 'launchy' + spec.add_development_dependency 'game_icons' end