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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ffa39d31431ba3ee54ee7bafb7fb61399881771eb596246a137ac49b7ca6b42
4
- data.tar.gz: 6bebbebddb6206d53006111471ef453fff41fe31bed9777b3390e29936f12ad1
3
+ metadata.gz: 1c0295dcbda17d35f093e4b3f701e7b01adc508e6fc423474064e732dadc496c
4
+ data.tar.gz: f616e14bac09b9603fcdca5a4f3e495a37e63f7950db7dae5ff13a4f3f71621e
5
5
  SHA512:
6
- metadata.gz: 1d0e397b736c70bc3755d0cf37ec0c1d5a5d9e57ac2ea1958634c3a1cd8fcb2437a77e0d76c357a512ec829c2fe5f67ca0fc6cf066c0d899b6213ea888d579f9
7
- data.tar.gz: 48338ce5930ec33a1416999caee1fe33a838ca46a8d0003a70389c1e0524048923f0bde88483198dce901c86a25b381f9ffa8b136d4e6bfd5ed56fc145716d6d
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.1",
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 => :cairo_snapshots,
513
+ :download_site => :cairo,
514
514
  :windows => {
515
515
  :built_file => "bin/libcairo-2.dll",
516
516
  :configure_args => [
@@ -73,7 +73,7 @@ RB_CAIRO_BEGIN_DECLS
73
73
 
74
74
  #define RB_CAIRO_VERSION_MAJOR 1
75
75
  #define RB_CAIRO_VERSION_MINOR 16
76
- #define RB_CAIRO_VERSION_MICRO 0
76
+ #define RB_CAIRO_VERSION_MICRO 1
77
77
 
78
78
  RB_CAIRO_VAR VALUE rb_mCairo;
79
79
  RB_CAIRO_VAR VALUE rb_cCairo_Context;
@@ -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
 
@@ -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.0
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-28 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: pkg-config