cairo 1.16.4 → 1.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/NEWS +29 -0
 - data/ext/cairo/extconf.rb +3 -2
 - data/ext/cairo/rb_cairo.h +1 -1
 - data/ext/cairo/rb_cairo_constants.c +10 -2
 - data/ext/cairo/rb_cairo_context.c +8 -0
 - data/ext/cairo/rb_cairo_font_face.c +6 -1
 - data/ext/cairo/rb_cairo_io.c +2 -2
 - data/ext/cairo/rb_cairo_surface.c +3 -3
 - data/lib/cairo/colors.rb +6 -6
 - data/test/run-test.rb +3 -1
 - data/test/test_colors.rb +10 -10
 - data/test/test_context.rb +7 -0
 - metadata +22 -22
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: f8697772a6b5b607085779a06a8d9f419cd015fa247a282eb9f68d3f885a33dc
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: ae49fe2f767c18a5f5af428d869daf67bf74a6e559d2327d28a5d097c7cf5841
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 7e52b47179fe0492eec020b6458f43309c1da04f003905ee64ebf8734de7d49eba241ef8343ed18c85d187c0b42d93b1bee91274b441e690f090818bbd3e65a8
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: bccb35d0e78ae2c8d6e4a3d7753fd9a5b3ab791cfd533c7a2fbb2294cf2eb6032004d638b9287eccf4fb689ad26b1a7bebe95b37a48f4661224e47844252092e
         
     | 
    
        data/NEWS
    CHANGED
    
    | 
         @@ -1,3 +1,32 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            Release 1.16.5 (2020-02-03) Sutou Kouhei <kou@cozmixng.org>
         
     | 
| 
      
 2 
     | 
    
         
            +
            ============================================================
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            Improvements
         
     | 
| 
      
 5 
     | 
    
         
            +
            ------------
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
              * Added Cairo::Context#raw_address for integration with other
         
     | 
| 
      
 8 
     | 
    
         
            +
                libraries.
         
     | 
| 
      
 9 
     | 
    
         
            +
                [GitHub#59][Reported by kojix2]
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            Fixes
         
     | 
| 
      
 12 
     | 
    
         
            +
            -----
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
              * Changed to use only ASCII for color name.
         
     | 
| 
      
 15 
     | 
    
         
            +
                [GitHub#57][Reported by spoolkitamura]
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
              * Fixed the number of arguments of the following methods:
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
                * Cairo::Surface#copy_page
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                * Cairo::Surface#show_page
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
            Thanks
         
     | 
| 
      
 24 
     | 
    
         
            +
            ------
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
              * spoolkitamura
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
              * kojix2
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
       1 
30 
     | 
    
         
             
            Release 1.16.4 (2019-03-09) Kouhei Sutou <kou@cozmixng.org>
         
     | 
| 
       2 
31 
     | 
    
         
             
            ============================================================
         
     | 
| 
       3 
32 
     | 
    
         | 
    
        data/ext/cairo/extconf.rb
    CHANGED
    
    | 
         @@ -48,11 +48,12 @@ def required_pkg_config_package(package_info, native_package_info=nil) 
     | 
|
| 
       48 
48 
     | 
    
         
             
            end
         
     | 
| 
       49 
49 
     | 
    
         | 
| 
       50 
50 
     | 
    
         
             
            unless required_pkg_config_package([package, major, minor, micro],
         
     | 
| 
      
 51 
     | 
    
         
            +
                                               :arch_linux => "cairo",
         
     | 
| 
       51 
52 
     | 
    
         
             
                                               :debian => "libcairo2-dev",
         
     | 
| 
       52 
     | 
    
         
            -
                                               :redhat => "cairo-devel",
         
     | 
| 
       53 
53 
     | 
    
         
             
                                               :homebrew => "cairo",
         
     | 
| 
       54 
54 
     | 
    
         
             
                                               :macports => "cairo",
         
     | 
| 
       55 
     | 
    
         
            -
                                               :msys2 => "cairo" 
     | 
| 
      
 55 
     | 
    
         
            +
                                               :msys2 => "cairo",
         
     | 
| 
      
 56 
     | 
    
         
            +
                                               :redhat => "cairo-devel")
         
     | 
| 
       56 
57 
     | 
    
         
             
              exit(false)
         
     | 
| 
       57 
58 
     | 
    
         
             
            end
         
     | 
| 
       58 
59 
     | 
    
         | 
    
        data/ext/cairo/rb_cairo.h
    CHANGED
    
    
| 
         @@ -5,7 +5,7 @@ 
     | 
|
| 
       5 
5 
     | 
    
         
             
             * $Author: kou $
         
     | 
| 
       6 
6 
     | 
    
         
             
             * $Date: 2008-09-19 12:56:27 $
         
     | 
| 
       7 
7 
     | 
    
         
             
             *
         
     | 
| 
       8 
     | 
    
         
            -
             * Copyright 2005- 
     | 
| 
      
 8 
     | 
    
         
            +
             * Copyright 2005-2019 Kouhei Sutou <kou@cozmixng.org>
         
     | 
| 
       9 
9 
     | 
    
         
             
             * Copyright 2005 Øyvind Kolås <pippin@freedesktop.org>
         
     | 
| 
       10 
10 
     | 
    
         
             
             * Copyright 2004-2005 MenTaLguY <mental@rydia.com>
         
     | 
| 
       11 
11 
     | 
    
         
             
             *
         
     | 
| 
         @@ -92,7 +92,9 @@ VALUE rb_mCairo_SVGUnit = Qnil; 
     | 
|
| 
       92 
92 
     | 
    
         
             
            #else
         
     | 
| 
       93 
93 
     | 
    
         
             
            #  define CAIRO_FORMAT_MIN CAIRO_FORMAT_ARGB32
         
     | 
| 
       94 
94 
     | 
    
         
             
            #endif
         
     | 
| 
       95 
     | 
    
         
            -
            #if CAIRO_CHECK_VERSION(1,  
     | 
| 
      
 95 
     | 
    
         
            +
            #if CAIRO_CHECK_VERSION(1, 17, 2)
         
     | 
| 
      
 96 
     | 
    
         
            +
            #  define CAIRO_FORMAT_MAX CAIRO_FORMAT_RGBA128F
         
     | 
| 
      
 97 
     | 
    
         
            +
            #elif CAIRO_CHECK_VERSION(1, 11, 4)
         
     | 
| 
       96 
98 
     | 
    
         
             
            #  define CAIRO_FORMAT_MAX CAIRO_FORMAT_RGB30
         
     | 
| 
       97 
99 
     | 
    
         
             
            #else
         
     | 
| 
       98 
100 
     | 
    
         
             
            #  define CAIRO_FORMAT_MAX CAIRO_FORMAT_RGB16_565
         
     | 
| 
         @@ -566,6 +568,12 @@ Init_cairo_constants (void) 
     | 
|
| 
       566 
568 
     | 
    
         
             
              rb_define_const (rb_mCairo_Format,    "RGB30",
         
     | 
| 
       567 
569 
     | 
    
         
             
                               INT2FIX (CAIRO_FORMAT_RGB30));
         
     | 
| 
       568 
570 
     | 
    
         
             
            #endif
         
     | 
| 
      
 571 
     | 
    
         
            +
            #if CAIRO_CHECK_VERSION(1, 17, 2)
         
     | 
| 
      
 572 
     | 
    
         
            +
              rb_define_const (rb_mCairo_Format,    "RGB96F",
         
     | 
| 
      
 573 
     | 
    
         
            +
                               INT2FIX (CAIRO_FORMAT_RGB96F));
         
     | 
| 
      
 574 
     | 
    
         
            +
              rb_define_const (rb_mCairo_Format,    "RGBA128F",
         
     | 
| 
      
 575 
     | 
    
         
            +
                               INT2FIX (CAIRO_FORMAT_RGBA128F));
         
     | 
| 
      
 576 
     | 
    
         
            +
            #endif
         
     | 
| 
       569 
577 
     | 
    
         | 
| 
       570 
578 
     | 
    
         
             
            #if CAIRO_CHECK_VERSION(1, 5, 8)
         
     | 
| 
       571 
579 
     | 
    
         
             
              rb_define_singleton_method (rb_mCairo_Format, "stride_for_width",
         
     | 
| 
         @@ -240,6 +240,12 @@ cr_to_ptr (VALUE self) 
     | 
|
| 
       240 
240 
     | 
    
         
             
                                 1, PTR2NUM (_SELF));
         
     | 
| 
       241 
241 
     | 
    
         
             
            }
         
     | 
| 
       242 
242 
     | 
    
         | 
| 
      
 243 
     | 
    
         
            +
            static VALUE
         
     | 
| 
      
 244 
     | 
    
         
            +
            cr_raw_address (VALUE self)
         
     | 
| 
      
 245 
     | 
    
         
            +
            {
         
     | 
| 
      
 246 
     | 
    
         
            +
              return PTR2NUM (_SELF);
         
     | 
| 
      
 247 
     | 
    
         
            +
            }
         
     | 
| 
      
 248 
     | 
    
         
            +
             
     | 
| 
       243 
249 
     | 
    
         | 
| 
       244 
250 
     | 
    
         
             
            static VALUE
         
     | 
| 
       245 
251 
     | 
    
         
             
            cr_restore (VALUE self)
         
     | 
| 
         @@ -1874,6 +1880,8 @@ Init_cairo_context (void) 
     | 
|
| 
       1874 
1880 
     | 
    
         | 
| 
       1875 
1881 
     | 
    
         
             
              rb_define_method (rb_cCairo_Context, "to_ptr", cr_to_ptr, 0);
         
     | 
| 
       1876 
1882 
     | 
    
         | 
| 
      
 1883 
     | 
    
         
            +
              rb_define_method (rb_cCairo_Context, "raw_address", cr_raw_address, 0);
         
     | 
| 
      
 1884 
     | 
    
         
            +
             
     | 
| 
       1877 
1885 
     | 
    
         
             
            #if CAIRO_CHECK_VERSION(1, 15, 4)
         
     | 
| 
       1878 
1886 
     | 
    
         
             
              /* Logical structure tagging functions */
         
     | 
| 
       1879 
1887 
     | 
    
         
             
              {
         
     | 
| 
         @@ -5,6 +5,7 @@ 
     | 
|
| 
       5 
5 
     | 
    
         
             
             * $Author: kou $
         
     | 
| 
       6 
6 
     | 
    
         
             
             * $Date: 2008-09-26 14:13:58 $
         
     | 
| 
       7 
7 
     | 
    
         
             
             *
         
     | 
| 
      
 8 
     | 
    
         
            +
             * Copyright 2003-2019 Sutou Kouhei <kou@cozmixng.org>
         
     | 
| 
       8 
9 
     | 
    
         
             
             * Copyright 2005 Øyvind Kolås <pippin@freedesktop.org>
         
     | 
| 
       9 
10 
     | 
    
         
             
             * Copyright 2004-2005 MenTaLguY <mental@rydia.com>
         
     | 
| 
       10 
11 
     | 
    
         
             
             *
         
     | 
| 
         @@ -148,7 +149,11 @@ cr_font_face_freetype_supported_p (VALUE klass) 
     | 
|
| 
       148 
149 
     | 
    
         | 
| 
       149 
150 
     | 
    
         
             
            #ifdef CAIRO_HAS_FT_FONT
         
     | 
| 
       150 
151 
     | 
    
         
             
            static VALUE
         
     | 
| 
       151 
     | 
    
         
            -
            cr_freetype_done_library (VALUE  
     | 
| 
      
 152 
     | 
    
         
            +
            cr_freetype_done_library (VALUE yielded_arg,
         
     | 
| 
      
 153 
     | 
    
         
            +
                                      VALUE callback_arg,
         
     | 
| 
      
 154 
     | 
    
         
            +
                                      int argc,
         
     | 
| 
      
 155 
     | 
    
         
            +
                                      const VALUE *argv,
         
     | 
| 
      
 156 
     | 
    
         
            +
                                      VALUE block_arg)
         
     | 
| 
       152 
157 
     | 
    
         
             
            {
         
     | 
| 
       153 
158 
     | 
    
         
             
              cr_freetype_finishing = CR_TRUE;
         
     | 
| 
       154 
159 
     | 
    
         
             
              if (cr_freetype_n_faces == 0)
         
     | 
    
        data/ext/cairo/rb_cairo_io.c
    CHANGED
    
    | 
         @@ -44,11 +44,11 @@ rb_cairo__io_closure_free (void *closure) 
     | 
|
| 
       44 
44 
     | 
    
         
             
            }
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
46 
     | 
    
         
             
            static VALUE
         
     | 
| 
       47 
     | 
    
         
            -
            rb_cairo__io_func_rescue (VALUE io_closure)
         
     | 
| 
      
 47 
     | 
    
         
            +
            rb_cairo__io_func_rescue (VALUE io_closure, VALUE error)
         
     | 
| 
       48 
48 
     | 
    
         
             
            {
         
     | 
| 
       49 
49 
     | 
    
         
             
              rb_cairo__io_callback_closure_t *closure;
         
     | 
| 
       50 
50 
     | 
    
         
             
              closure = (rb_cairo__io_callback_closure_t *)io_closure;
         
     | 
| 
       51 
     | 
    
         
            -
              closure->error =  
     | 
| 
      
 51 
     | 
    
         
            +
              closure->error = error;
         
     | 
| 
       52 
52 
     | 
    
         
             
              return Qnil;
         
     | 
| 
       53 
53 
     | 
    
         
             
            }
         
     | 
| 
       54 
54 
     | 
    
         | 
| 
         @@ -2,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         
             
            /*
         
     | 
| 
       3 
3 
     | 
    
         
             
             * Ruby Cairo Binding
         
     | 
| 
       4 
4 
     | 
    
         
             
             *
         
     | 
| 
       5 
     | 
    
         
            -
             * Copyright 2005- 
     | 
| 
      
 5 
     | 
    
         
            +
             * Copyright 2005-2019 Kouhei Sutou <kou@cozmixng.org>
         
     | 
| 
       6 
6 
     | 
    
         
             
             * Copyright 2014 Patrick Hanevold <patrick.hanevold@gmail.com>
         
     | 
| 
       7 
7 
     | 
    
         
             
             * Copyright 2005 Øyvind Kolås <pippin@freedesktop.org>
         
     | 
| 
       8 
8 
     | 
    
         
             
             * Copyright 2004-2005 MenTaLguY <mental@rydia.com>
         
     | 
| 
         @@ -2107,9 +2107,9 @@ Init_cairo_surface (void) 
     | 
|
| 
       2107 
2107 
     | 
    
         
             
            #endif
         
     | 
| 
       2108 
2108 
     | 
    
         
             
            #if CAIRO_CHECK_VERSION(1, 5, 2)
         
     | 
| 
       2109 
2109 
     | 
    
         
             
              rb_define_method (rb_cCairo_Surface, "copy_page",
         
     | 
| 
       2110 
     | 
    
         
            -
                                cr_surface_copy_page,  
     | 
| 
      
 2110 
     | 
    
         
            +
                                cr_surface_copy_page, 0);
         
     | 
| 
       2111 
2111 
     | 
    
         
             
              rb_define_method (rb_cCairo_Surface, "show_page",
         
     | 
| 
       2112 
     | 
    
         
            -
                                cr_surface_show_page,  
     | 
| 
      
 2112 
     | 
    
         
            +
                                cr_surface_show_page, 0);
         
     | 
| 
       2113 
2113 
     | 
    
         
             
            #endif
         
     | 
| 
       2114 
2114 
     | 
    
         | 
| 
       2115 
2115 
     | 
    
         
             
            #ifdef CAIRO_HAS_PNG_FUNCTIONS
         
     | 
    
        data/lib/cairo/colors.rb
    CHANGED
    
    | 
         @@ -90,8 +90,6 @@ module Cairo 
     | 
|
| 
       90 
90 
     | 
    
         
             
                AUROMETALSAURUS = RGB.new(0.43137254901960786, 0.4980392156862745, 0.5019607843137255)
         
     | 
| 
       91 
91 
     | 
    
         
             
                # Avocado: #568203: (86, 130, 3)
         
     | 
| 
       92 
92 
     | 
    
         
             
                AVOCADO = RGB.new(0.33725490196078434, 0.5098039215686274, 0.011764705882352941)
         
     | 
| 
       93 
     | 
    
         
            -
                # Awesome: #FF2052: (255, 32, 82)
         
     | 
| 
       94 
     | 
    
         
            -
                AWESOME = RGB.new(1.0, 0.12549019607843137, 0.3215686274509804)
         
     | 
| 
       95 
93 
     | 
    
         
             
                # Axolotl: #63775B: (99, 119, 91)
         
     | 
| 
       96 
94 
     | 
    
         
             
                AXOLOTL = RGB.new(0.38823529411764707, 0.4666666666666667, 0.3568627450980392)
         
     | 
| 
       97 
95 
     | 
    
         
             
                # Azure: #007FFF: (0, 127, 255)
         
     | 
| 
         @@ -141,7 +139,7 @@ module Cairo 
     | 
|
| 
       141 
139 
     | 
    
         
             
                # Beige: #F5F5DC: (245, 245, 220)
         
     | 
| 
       142 
140 
     | 
    
         
             
                BEIGE = RGB.new(0.9607843137254902, 0.9607843137254902, 0.8627450980392157)
         
     | 
| 
       143 
141 
     | 
    
         
             
                # Big dip o’ruby: #9C2542: (156, 37, 66)
         
     | 
| 
       144 
     | 
    
         
            -
                 
     | 
| 
      
 142 
     | 
    
         
            +
                BIG_DIP_ORUBY = RGB.new(0.611764705882353, 0.1450980392156863, 0.25882352941176473)
         
     | 
| 
       145 
143 
     | 
    
         
             
                # Big Foot Feet: #E88E5A: (232, 142, 90)
         
     | 
| 
       146 
144 
     | 
    
         
             
                BIG_FOOT_FEET = RGB.new(0.9098039215686274, 0.5568627450980392, 0.35294117647058826)
         
     | 
| 
       147 
145 
     | 
    
         
             
                # Bisque: #FFE4C4: (255, 228, 196)
         
     | 
| 
         @@ -373,9 +371,9 @@ module Cairo 
     | 
|
| 
       373 
371 
     | 
    
         
             
                # Cadmium violet: #7F3E98: (127, 62, 152)
         
     | 
| 
       374 
372 
     | 
    
         
             
                CADMIUM_VIOLET = RGB.new(0.4980392156862745, 0.24313725490196078, 0.596078431372549)
         
     | 
| 
       375 
373 
     | 
    
         
             
                # Café au lait: #A67B5B: (166, 123, 91)
         
     | 
| 
       376 
     | 
    
         
            -
                 
     | 
| 
      
 374 
     | 
    
         
            +
                CAFE_AU_LAIT = RGB.new(0.6509803921568628, 0.4823529411764706, 0.3568627450980392)
         
     | 
| 
       377 
375 
     | 
    
         
             
                # Café noir: #4B3621: (75, 54, 33)
         
     | 
| 
       378 
     | 
    
         
            -
                 
     | 
| 
      
 376 
     | 
    
         
            +
                CAFE_NOIR = RGB.new(0.29411764705882354, 0.21176470588235294, 0.12941176470588237)
         
     | 
| 
       379 
377 
     | 
    
         
             
                # Cal Poly Pomona green: #1E4D2B: (30, 77, 43)
         
     | 
| 
       380 
378 
     | 
    
         
             
                CAL_POLY_POMONA_GREEN = RGB.new(0.11764705882352941, 0.30196078431372547, 0.16862745098039217)
         
     | 
| 
       381 
379 
     | 
    
         
             
                # Calamansi: #FCFFA4: (252, 255, 164)
         
     | 
| 
         @@ -1215,7 +1213,7 @@ module Cairo 
     | 
|
| 
       1215 
1213 
     | 
    
         
             
                # Guyabano: #F8F8F8: (248, 248, 248)
         
     | 
| 
       1216 
1214 
     | 
    
         
             
                GUYABANO = RGB.new(0.9725490196078431, 0.9725490196078431, 0.9725490196078431)
         
     | 
| 
       1217 
1215 
     | 
    
         
             
                # Halayà úbe: #663854: (102, 55, 84)
         
     | 
| 
       1218 
     | 
    
         
            -
                 
     | 
| 
      
 1216 
     | 
    
         
            +
                HALAYA_UBE = RGB.new(0.4, 0.21568627450980393, 0.32941176470588235)
         
     | 
| 
       1219 
1217 
     | 
    
         
             
                # Halloween orange: #EB6123: (235, 97, 35)
         
     | 
| 
       1220 
1218 
     | 
    
         
             
                HALLOWEEN_ORANGE = RGB.new(0.9215686274509803, 0.3803921568627451, 0.13725490196078433)
         
     | 
| 
       1221 
1219 
     | 
    
         
             
                # Han blue: #446CCF: (68, 108, 207)
         
     | 
| 
         @@ -2118,6 +2116,8 @@ module Cairo 
     | 
|
| 
       2118 
2116 
     | 
    
         
             
                PAYNES_GREY = RGB.new(0.3254901960784314, 0.40784313725490196, 0.47058823529411764)
         
     | 
| 
       2119 
2117 
     | 
    
         
             
                # Peach: #FFE5B4: (255, 229, 180)
         
     | 
| 
       2120 
2118 
     | 
    
         
             
                PEACH = RGB.new(1.0, 0.8980392156862745, 0.7058823529411765)
         
     | 
| 
      
 2119 
     | 
    
         
            +
                # Peach (Crayola): #FFCBA4: (255, 203, 164)
         
     | 
| 
      
 2120 
     | 
    
         
            +
                PEACH_CRAYOLA = RGB.new(1.0, 0.796078431372549, 0.6431372549019608)
         
     | 
| 
       2121 
2121 
     | 
    
         
             
                # Peach-orange: #FFCC99: (255, 204, 153)
         
     | 
| 
       2122 
2122 
     | 
    
         
             
                PEACH_ORANGE = RGB.new(1.0, 0.8, 0.6)
         
     | 
| 
       2123 
2123 
     | 
    
         
             
                # Peach puff: #FFDAB9: (255, 218, 185)
         
     | 
    
        data/test/run-test.rb
    CHANGED
    
    
    
        data/test/test_colors.rb
    CHANGED
    
    | 
         @@ -263,12 +263,6 @@ class ColorsTest < Test::Unit::TestCase 
     | 
|
| 
       263 
263 
     | 
    
         
             
                             Cairo::Color::AVOCADO.to_s)
         
     | 
| 
       264 
264 
     | 
    
         
             
              end
         
     | 
| 
       265 
265 
     | 
    
         | 
| 
       266 
     | 
    
         
            -
              # Awesome: #FF2052: (255, 32, 82)
         
     | 
| 
       267 
     | 
    
         
            -
              test("Awesome") do
         
     | 
| 
       268 
     | 
    
         
            -
                assert_equal("\#%02X%02X%02XFF" % [255, 32, 82],
         
     | 
| 
       269 
     | 
    
         
            -
                             Cairo::Color::AWESOME.to_s)
         
     | 
| 
       270 
     | 
    
         
            -
              end
         
     | 
| 
       271 
     | 
    
         
            -
             
     | 
| 
       272 
266 
     | 
    
         
             
              # Axolotl: #63775B: (99, 119, 91)
         
     | 
| 
       273 
267 
     | 
    
         
             
              test("Axolotl") do
         
     | 
| 
       274 
268 
     | 
    
         
             
                assert_equal("\#%02X%02X%02XFF" % [99, 119, 91],
         
     | 
| 
         @@ -416,7 +410,7 @@ class ColorsTest < Test::Unit::TestCase 
     | 
|
| 
       416 
410 
     | 
    
         
             
              # Big dip o’ruby: #9C2542: (156, 37, 66)
         
     | 
| 
       417 
411 
     | 
    
         
             
              test("Big dip o\u2019ruby") do
         
     | 
| 
       418 
412 
     | 
    
         
             
                assert_equal("\#%02X%02X%02XFF" % [156, 37, 66],
         
     | 
| 
       419 
     | 
    
         
            -
                             Cairo::Color:: 
     | 
| 
      
 413 
     | 
    
         
            +
                             Cairo::Color::BIG_DIP_ORUBY.to_s)
         
     | 
| 
       420 
414 
     | 
    
         
             
              end
         
     | 
| 
       421 
415 
     | 
    
         | 
| 
       422 
416 
     | 
    
         
             
              # Big Foot Feet: #E88E5A: (232, 142, 90)
         
     | 
| 
         @@ -1112,13 +1106,13 @@ class ColorsTest < Test::Unit::TestCase 
     | 
|
| 
       1112 
1106 
     | 
    
         
             
              # Café au lait: #A67B5B: (166, 123, 91)
         
     | 
| 
       1113 
1107 
     | 
    
         
             
              test("Caf\u00E9 au lait") do
         
     | 
| 
       1114 
1108 
     | 
    
         
             
                assert_equal("\#%02X%02X%02XFF" % [166, 123, 91],
         
     | 
| 
       1115 
     | 
    
         
            -
                             Cairo::Color:: 
     | 
| 
      
 1109 
     | 
    
         
            +
                             Cairo::Color::CAFE_AU_LAIT.to_s)
         
     | 
| 
       1116 
1110 
     | 
    
         
             
              end
         
     | 
| 
       1117 
1111 
     | 
    
         | 
| 
       1118 
1112 
     | 
    
         
             
              # Café noir: #4B3621: (75, 54, 33)
         
     | 
| 
       1119 
1113 
     | 
    
         
             
              test("Caf\u00E9 noir") do
         
     | 
| 
       1120 
1114 
     | 
    
         
             
                assert_equal("\#%02X%02X%02XFF" % [75, 54, 33],
         
     | 
| 
       1121 
     | 
    
         
            -
                             Cairo::Color:: 
     | 
| 
      
 1115 
     | 
    
         
            +
                             Cairo::Color::CAFE_NOIR.to_s)
         
     | 
| 
       1122 
1116 
     | 
    
         
             
              end
         
     | 
| 
       1123 
1117 
     | 
    
         | 
| 
       1124 
1118 
     | 
    
         
             
              # Cal Poly Pomona green: #1E4D2B: (30, 77, 43)
         
     | 
| 
         @@ -3638,7 +3632,7 @@ class ColorsTest < Test::Unit::TestCase 
     | 
|
| 
       3638 
3632 
     | 
    
         
             
              # Halayà úbe: #663854: (102, 55, 84)
         
     | 
| 
       3639 
3633 
     | 
    
         
             
              test("Halay\u00E0 \u00FAbe") do
         
     | 
| 
       3640 
3634 
     | 
    
         
             
                assert_equal("\#%02X%02X%02XFF" % [102, 55, 84],
         
     | 
| 
       3641 
     | 
    
         
            -
                             Cairo::Color:: 
     | 
| 
      
 3635 
     | 
    
         
            +
                             Cairo::Color::HALAYA_UBE.to_s)
         
     | 
| 
       3642 
3636 
     | 
    
         
             
              end
         
     | 
| 
       3643 
3637 
     | 
    
         | 
| 
       3644 
3638 
     | 
    
         
             
              # Halloween orange: #EB6123: (235, 97, 35)
         
     | 
| 
         @@ -6347,6 +6341,12 @@ class ColorsTest < Test::Unit::TestCase 
     | 
|
| 
       6347 
6341 
     | 
    
         
             
                             Cairo::Color::PEACH.to_s)
         
     | 
| 
       6348 
6342 
     | 
    
         
             
              end
         
     | 
| 
       6349 
6343 
     | 
    
         | 
| 
      
 6344 
     | 
    
         
            +
              # Peach (Crayola): #FFCBA4: (255, 203, 164)
         
     | 
| 
      
 6345 
     | 
    
         
            +
              test("Peach (Crayola)") do
         
     | 
| 
      
 6346 
     | 
    
         
            +
                assert_equal("\#%02X%02X%02XFF" % [255, 203, 164],
         
     | 
| 
      
 6347 
     | 
    
         
            +
                             Cairo::Color::PEACH_CRAYOLA.to_s)
         
     | 
| 
      
 6348 
     | 
    
         
            +
              end
         
     | 
| 
      
 6349 
     | 
    
         
            +
             
     | 
| 
       6350 
6350 
     | 
    
         
             
              # Peach-orange: #FFCC99: (255, 204, 153)
         
     | 
| 
       6351 
6351 
     | 
    
         
             
              test("Peach-orange") do
         
     | 
| 
       6352 
6352 
     | 
    
         
             
                assert_equal("\#%02X%02X%02XFF" % [255, 204, 153],
         
     | 
    
        data/test/test_context.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: cairo
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.16. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.16.5
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Kouhei Sutou
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2020-02-02 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: pkg-config
         
     | 
| 
         @@ -215,36 +215,36 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       215 
215 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       216 
216 
     | 
    
         
             
            requirements: []
         
     | 
| 
       217 
217 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       218 
     | 
    
         
            -
            rubygems_version: 2.7.6
         
     | 
| 
      
 218 
     | 
    
         
            +
            rubygems_version: 2.7.6.2
         
     | 
| 
       219 
219 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       220 
220 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       221 
221 
     | 
    
         
             
            summary: Ruby bindings for cairo
         
     | 
| 
       222 
222 
     | 
    
         
             
            test_files:
         
     | 
| 
       223 
     | 
    
         
            -
            - test/ 
     | 
| 
      
 223 
     | 
    
         
            +
            - test/test_xml_surface.rb
         
     | 
| 
      
 224 
     | 
    
         
            +
            - test/test_tee_surface.rb
         
     | 
| 
      
 225 
     | 
    
         
            +
            - test/test_pdf_surface.rb
         
     | 
| 
      
 226 
     | 
    
         
            +
            - test/test_text_to_glyphs_data.rb
         
     | 
| 
       224 
227 
     | 
    
         
             
            - test/test_text_extents.rb
         
     | 
| 
       225 
     | 
    
         
            -
            - test/ 
     | 
| 
       226 
     | 
    
         
            -
            - test/ 
     | 
| 
       227 
     | 
    
         
            -
            - test/ 
     | 
| 
      
 228 
     | 
    
         
            +
            - test/test_context.rb
         
     | 
| 
      
 229 
     | 
    
         
            +
            - test/test_recording_surface.rb
         
     | 
| 
      
 230 
     | 
    
         
            +
            - test/helper.rb
         
     | 
| 
      
 231 
     | 
    
         
            +
            - test/run-test.rb
         
     | 
| 
       228 
232 
     | 
    
         
             
            - test/test_paper.rb
         
     | 
| 
      
 233 
     | 
    
         
            +
            - test/test_exception.rb
         
     | 
| 
       229 
234 
     | 
    
         
             
            - test/test_svg_surface.rb
         
     | 
| 
       230 
235 
     | 
    
         
             
            - test/test_script_device.rb
         
     | 
| 
       231 
     | 
    
         
            -
            - test/ 
     | 
| 
       232 
     | 
    
         
            -
            - test/ 
     | 
| 
       233 
     | 
    
         
            -
            - test/ 
     | 
| 
       234 
     | 
    
         
            -
            - test/ 
     | 
| 
      
 236 
     | 
    
         
            +
            - test/test_font_extents.rb
         
     | 
| 
      
 237 
     | 
    
         
            +
            - test/test_color.rb
         
     | 
| 
      
 238 
     | 
    
         
            +
            - test/test_text_cluster.rb
         
     | 
| 
      
 239 
     | 
    
         
            +
            - test/test_colors.rb
         
     | 
| 
       235 
240 
     | 
    
         
             
            - test/test_font_face.rb
         
     | 
| 
      
 241 
     | 
    
         
            +
            - test/test_surface.rb
         
     | 
| 
      
 242 
     | 
    
         
            +
            - test/test_region.rb
         
     | 
| 
       236 
243 
     | 
    
         
             
            - test/test_raster_source_pattern.rb
         
     | 
| 
       237 
244 
     | 
    
         
             
            - test/test_image_surface.rb
         
     | 
| 
       238 
245 
     | 
    
         
             
            - test/test_quartz_image_surface.rb
         
     | 
| 
       239 
     | 
    
         
            -
            - test/run-test.rb
         
     | 
| 
       240 
     | 
    
         
            -
            - test/test_recording_surface.rb
         
     | 
| 
       241 
     | 
    
         
            -
            - test/test_tee_surface.rb
         
     | 
| 
       242 
     | 
    
         
            -
            - test/test_font_options.rb
         
     | 
| 
       243 
     | 
    
         
            -
            - test/test_color.rb
         
     | 
| 
       244 
246 
     | 
    
         
             
            - test/test_constants.rb
         
     | 
| 
       245 
     | 
    
         
            -
            - test/ 
     | 
| 
       246 
     | 
    
         
            -
            - test/ 
     | 
| 
       247 
     | 
    
         
            -
            - test/ 
     | 
| 
       248 
     | 
    
         
            -
            - test/ 
     | 
| 
       249 
     | 
    
         
            -
            - test/test_xml_surface.rb
         
     | 
| 
       250 
     | 
    
         
            -
            - test/test_region.rb
         
     | 
| 
      
 247 
     | 
    
         
            +
            - test/test_xml_device.rb
         
     | 
| 
      
 248 
     | 
    
         
            +
            - test/test_script_surface.rb
         
     | 
| 
      
 249 
     | 
    
         
            +
            - test/test_scaled_font.rb
         
     | 
| 
      
 250 
     | 
    
         
            +
            - test/test_font_options.rb
         
     |