cairo-gobject 3.2.9 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81a5d3a7b99b0640f986d4601fb0a12b1eea0a2c8d475b72f3d4a4ed3bd36799
4
- data.tar.gz: b3e780c6cc8a0feefae9fc6b7a59f7abd4126953a7de1f886f26ecc5cdfedf55
3
+ metadata.gz: a98fb3d5d309fed3c8d6060958a9dae26a4550b0a05a57d5062394a817f1d43e
4
+ data.tar.gz: 1065246b11bf8d4f6b62c2aad3f8e7782b99169eddc19e15b5d34d41fc7e05e3
5
5
  SHA512:
6
- metadata.gz: 61c71cb2c38067c9c6c3fa72f8ec882de72ffd2c935a94a8b5faf78a0998b6b47b76946939b67b48ca11f23a751c31a0a1f5aa394f0d22d14945e4373a035331
7
- data.tar.gz: 4196173814c53111532912a264fbea4ff63e195a1d863e7dd41597b81200541d7ce6350a21a92b59a898b2f271108be02668fdb6f542d0e6b5340244862693a7
6
+ metadata.gz: c5ef636ad8e8e9ea07144d2e0b57af94e565f79d1f46cac8aea1fa8d6cbcde380005d5a76dfd647e62462f710daf087e64e8408c85d6ae29d4ee8ffe84a63ca6
7
+ data.tar.gz: 45daecdd545a7844cb384d9eacb83233c75b51f438d3616e6d80ebf1715afce5295abf4313303635e5e797b0f00a3620dbb41405a7c84c205830a5b27ce17f9c
@@ -40,6 +40,6 @@ Gem::Specification.new do |s|
40
40
  s.files += Dir.glob("ext/#{s.name}/*.{c,h,def,rb}")
41
41
  s.files += Dir.glob("test/**/*")
42
42
 
43
- s.add_runtime_dependency("cairo")
43
+ s.add_runtime_dependency("cairo", ">= 1.16.1")
44
44
  s.add_runtime_dependency("glib2", "= #{s.version}")
45
45
  end
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2013-2018 Ruby-GNOME2 Project Team
4
4
  *
5
5
  * This library is free software; you can redistribute it and/or
6
6
  * modify it under the terms of the GNU Lesser General Public
@@ -25,34 +25,20 @@
25
25
  #define DEFINE_CONVERSION(prefix, \
26
26
  gtype, \
27
27
  rb_klass, \
28
- cr_copy_func, \
29
28
  RVAL2CR, \
30
29
  CR2RVAL) \
31
30
  static gpointer \
32
31
  prefix ## _robj2instance(VALUE rb_object, \
33
32
  G_GNUC_UNUSED gpointer user_data) \
34
33
  { \
35
- ID id_gboxed; \
36
- VALUE rb_boxed = Qnil; \
37
- \
38
- CONST_ID(id_gboxed, "gboxed"); \
39
- if (rb_ivar_defined(rb_object, id_gboxed)) { \
40
- rb_boxed = rb_ivar_get(rb_object, id_gboxed); \
41
- } \
42
- if (NIL_P(rb_boxed)) { \
43
- gpointer cr_object = RVAL2CR(rb_object); \
44
- rb_boxed = rbgobj_make_boxed_default(cr_object, gtype); \
45
- rb_ivar_set(rb_object, id_gboxed, rb_boxed); \
46
- } \
47
- \
48
- return rbgobj_boxed_get_default(rb_boxed, gtype); \
34
+ return RVAL2CR(rb_object); \
49
35
  } \
50
36
  \
51
37
  static VALUE \
52
38
  prefix ## _instance2robj(gpointer cr_object, \
53
39
  G_GNUC_UNUSED gpointer user_data) \
54
40
  { \
55
- return CR2RVAL(cr_copy_func(cr_object)); \
41
+ return CR2RVAL(cr_object); \
56
42
  } \
57
43
  \
58
44
  static VALUE \
@@ -81,26 +67,23 @@ define_ ## prefix ## _conversion(void) \
81
67
  }
82
68
 
83
69
  DEFINE_CONVERSION(context, CAIRO_GOBJECT_TYPE_CONTEXT, rb_cCairo_Context,
84
- cairo_reference, RVAL2CRCONTEXT, CRCONTEXT2RVAL)
70
+ RVAL2CRCONTEXT, CRCONTEXT2RVAL)
85
71
  DEFINE_CONVERSION(device, CAIRO_GOBJECT_TYPE_DEVICE, rb_cCairo_Device,
86
- cairo_device_reference, RVAL2CRDEVICE, CRDEVICE2RVAL)
72
+ RVAL2CRDEVICE, CRDEVICE2RVAL)
87
73
  DEFINE_CONVERSION(pattern, CAIRO_GOBJECT_TYPE_PATTERN, rb_cCairo_Pattern,
88
- cairo_pattern_reference, RVAL2CRPATTERN, CRPATTERN2RVAL)
74
+ RVAL2CRPATTERN, CRPATTERN2RVAL)
89
75
  DEFINE_CONVERSION(surface, CAIRO_GOBJECT_TYPE_SURFACE, rb_cCairo_Surface,
90
- cairo_surface_reference, RVAL2CRSURFACE, CRSURFACE2RVAL)
76
+ RVAL2CRSURFACE, CRSURFACE2RVAL)
91
77
  DEFINE_CONVERSION(scaled_font, CAIRO_GOBJECT_TYPE_SCALED_FONT,
92
78
  rb_cCairo_ScaledFont,
93
- cairo_scaled_font_reference,
94
79
  RVAL2CRSCALEDFONT, CRSCALEDFONT2RVAL)
95
80
  DEFINE_CONVERSION(font_face, CAIRO_GOBJECT_TYPE_FONT_FACE, rb_cCairo_FontFace,
96
- cairo_font_face_reference,
97
81
  RVAL2CRFONTFACE, CRFONTFACE2RVAL)
98
82
  DEFINE_CONVERSION(font_options, CAIRO_GOBJECT_TYPE_FONT_OPTIONS,
99
83
  rb_cCairo_FontOptions,
100
- cairo_font_options_copy,
101
84
  RVAL2CRFONTOPTIONS, CRFONTOPTIONS2RVAL)
102
85
  DEFINE_CONVERSION(region, CAIRO_GOBJECT_TYPE_REGION, rb_cCairo_Region,
103
- cairo_region_reference, RVAL2CRREGION, CRREGION2RVAL)
86
+ RVAL2CRREGION, CRREGION2RVAL)
104
87
 
105
88
  void
106
89
  Init_cairo_gobject(void)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cairo-gobject
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.9
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-08 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.16.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.16.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: glib2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.2.9
33
+ version: 3.3.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.2.9
40
+ version: 3.3.0
41
41
  description: Ruby/CairoGObject is a Ruby binding of cairo-gobject.
42
42
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
43
  executables: []