cairo 1.16.0 → 1.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS +8 -0
- data/Rakefile +2 -2
- data/ext/cairo/rb_cairo.h +1 -1
- data/ext/cairo/rb_cairo_context.c +7 -0
- data/test/test_context.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c0295dcbda17d35f093e4b3f701e7b01adc508e6fc423474064e732dadc496c
|
4
|
+
data.tar.gz: f616e14bac09b9603fcdca5a4f3e495a37e63f7950db7dae5ff13a4f3f71621e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 925042cfc8150d35aa49a495c92cae180748a286d96a78f5b9341921a6404eea61b3f8a2be5ac9142b70d00d87a501c0ae6a871a01ccf7c75f9c3cc20433b6fb
|
7
|
+
data.tar.gz: 4d58be5e2c897efe578a4ccd10206b3fd0441d79c0fee4e9878a5d8387f2852a08137438b94e61c886538f99fdb9e1f97425b0643c87ce1160d165daf20cd420
|
data/NEWS
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
Release 1.16.1 (2018-10-31) Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
============================================================
|
3
|
+
|
4
|
+
Improvements
|
5
|
+
------------
|
6
|
+
|
7
|
+
* Added Cairo::Context#destroyed?.
|
8
|
+
|
1
9
|
Release 1.16.0 (2018-10-28) Kouhei Sutou <kou@cozmixng.org>
|
2
10
|
============================================================
|
3
11
|
|
data/Rakefile
CHANGED
@@ -487,7 +487,7 @@ windows_task = WindowsTask.new(spec) do |task|
|
|
487
487
|
},
|
488
488
|
{
|
489
489
|
:name => "fontconfig",
|
490
|
-
:version => "2.13.
|
490
|
+
:version => "2.13.0",
|
491
491
|
:download_base_url => "https://www.freedesktop.org/software/fontconfig/release",
|
492
492
|
:compression_method => "bz2",
|
493
493
|
:windows => {
|
@@ -510,7 +510,7 @@ windows_task = WindowsTask.new(spec) do |task|
|
|
510
510
|
{
|
511
511
|
:name => "cairo",
|
512
512
|
:version => "1.16.0",
|
513
|
-
:download_site => :
|
513
|
+
:download_site => :cairo,
|
514
514
|
:windows => {
|
515
515
|
:built_file => "bin/libcairo-2.dll",
|
516
516
|
:configure_args => [
|
data/ext/cairo/rb_cairo.h
CHANGED
@@ -122,6 +122,12 @@ cr_destroy (VALUE self)
|
|
122
122
|
return Qnil;
|
123
123
|
}
|
124
124
|
|
125
|
+
static VALUE
|
126
|
+
cr_destroyed (VALUE self)
|
127
|
+
{
|
128
|
+
return CBOOL2RVAL (DATA_PTR (self) == NULL);
|
129
|
+
}
|
130
|
+
|
125
131
|
static VALUE
|
126
132
|
cr_destroy_with_destroy_check (VALUE self)
|
127
133
|
{
|
@@ -1717,6 +1723,7 @@ Init_cairo_context (void)
|
|
1717
1723
|
/* Functions for manipulating state objects */
|
1718
1724
|
rb_define_method (rb_cCairo_Context, "initialize", cr_initialize, 1);
|
1719
1725
|
rb_define_method (rb_cCairo_Context, "destroy", cr_destroy, 0);
|
1726
|
+
rb_define_method (rb_cCairo_Context, "destroyed?", cr_destroyed, 0);
|
1720
1727
|
rb_define_method (rb_cCairo_Context, "reference_count",
|
1721
1728
|
cr_get_reference_count, 0);
|
1722
1729
|
|
data/test/test_context.rb
CHANGED
@@ -10,7 +10,9 @@ class ContextTest < Test::Unit::TestCase
|
|
10
10
|
context = Cairo::Context.new(@surface)
|
11
11
|
@surface.destroy
|
12
12
|
assert_not_equal("%%EOF\n", @output.string[-6..-1])
|
13
|
+
assert {not context.destroyed?}
|
13
14
|
context.destroy
|
15
|
+
assert {context.destroyed?}
|
14
16
|
assert_equal("%%EOF\n", @output.string[-6..-1])
|
15
17
|
end
|
16
18
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|