cairo 1.15.9 → 1.15.10
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 +20 -0
- data/Rakefile +9 -7
- data/ext/cairo/rb_cairo.h +1 -1
- data/lib/cairo.rb +3 -3
- data/test/cairo-test-utils.rb +8 -4
- data/test/test_context.rb +1 -1
- data/test/test_font_face.rb +1 -1
- data/test/test_recording_surface.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e98d253ecf1026eae9b0e632d7da4e96eb8c1b56
|
|
4
|
+
data.tar.gz: 168a50409bfc3cca15329ea0352652b3bbbc9b32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b59c0c32c42824aad114dc98078e99079d1919607d708e3435e4397a063199be01d2a10e0d734635724e6cc8688f478a877338d7b76895adf04fa73d9c638632
|
|
7
|
+
data.tar.gz: eee06bf5b91c207838c2ba8c2c285a3f523275d75afbc2c9cc7c16f11a139938c4f7354a324c43ab3eb65d8a238681ab62c76eb8c15b820e44f90a3f094a7c52
|
data/NEWS
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
Release 1.15.10 (2017-10-15) Kouhei Sutou <kou@cozmixng.org>
|
|
2
|
+
============================================================
|
|
3
|
+
|
|
4
|
+
Improvements
|
|
5
|
+
------------
|
|
6
|
+
|
|
7
|
+
* Windows: Ensure setting PATH environment variable.
|
|
8
|
+
|
|
9
|
+
* Added cairo 1.15.8 support.
|
|
10
|
+
|
|
11
|
+
* Windows: Updated bundled libraries:
|
|
12
|
+
|
|
13
|
+
* libpng: 1.6.29 -> 1.6.32
|
|
14
|
+
|
|
15
|
+
* freetype: 2.9.4 -> 2.9.6
|
|
16
|
+
|
|
17
|
+
* fontconfig: 2.12.1 -> 2.12.4
|
|
18
|
+
|
|
19
|
+
* cairo: 1.15.4 -> 1.15.8
|
|
20
|
+
|
|
1
21
|
Release 1.15.9 (2017-06-03) Kouhei Sutou <kou@cozmixng.org>
|
|
2
22
|
===========================================================
|
|
3
23
|
|
data/Rakefile
CHANGED
|
@@ -444,6 +444,8 @@ end
|
|
|
444
444
|
|
|
445
445
|
windows_task = WindowsTask.new(spec) do |task|
|
|
446
446
|
zlib_version = "1.2.11"
|
|
447
|
+
libpng_version = "1.6.32"
|
|
448
|
+
freetype_version = "2.8.1"
|
|
447
449
|
task.packages = [
|
|
448
450
|
{
|
|
449
451
|
# We should use the same version as Ruby Installer.
|
|
@@ -458,16 +460,16 @@ windows_task = WindowsTask.new(spec) do |task|
|
|
|
458
460
|
},
|
|
459
461
|
{
|
|
460
462
|
:name => "libpng",
|
|
461
|
-
:version =>
|
|
462
|
-
:download_base_url => "https://downloads.sourceforge.net/project/libpng/libpng16
|
|
463
|
+
:version => libpng_version,
|
|
464
|
+
:download_base_url => "https://downloads.sourceforge.net/project/libpng/libpng16/#{libpng_version}",
|
|
463
465
|
:windows => {
|
|
464
466
|
:built_file => "bin/libpng16-16.dll",
|
|
465
467
|
},
|
|
466
468
|
},
|
|
467
469
|
{
|
|
468
470
|
:name => "freetype",
|
|
469
|
-
:version =>
|
|
470
|
-
:download_base_url => "https://downloads.sourceforge.net/project/freetype/freetype2
|
|
471
|
+
:version => freetype_version,
|
|
472
|
+
:download_base_url => "https://downloads.sourceforge.net/project/freetype/freetype2/#{freetype_version}",
|
|
471
473
|
:compression_method => "bz2",
|
|
472
474
|
:windows => {
|
|
473
475
|
:built_file => "bin/libfreetype-7.dll",
|
|
@@ -475,7 +477,7 @@ windows_task = WindowsTask.new(spec) do |task|
|
|
|
475
477
|
},
|
|
476
478
|
{
|
|
477
479
|
:name => "libxml2",
|
|
478
|
-
:version => "2.9.
|
|
480
|
+
:version => "2.9.6",
|
|
479
481
|
:download_base_url => "ftp://xmlsoft.org/libxml2",
|
|
480
482
|
:compression_method => "gz",
|
|
481
483
|
:windows => {
|
|
@@ -487,7 +489,7 @@ windows_task = WindowsTask.new(spec) do |task|
|
|
|
487
489
|
},
|
|
488
490
|
{
|
|
489
491
|
:name => "fontconfig",
|
|
490
|
-
:version => "2.12.
|
|
492
|
+
:version => "2.12.4",
|
|
491
493
|
:download_base_url => "https://www.freedesktop.org/software/fontconfig/release",
|
|
492
494
|
:compression_method => "bz2",
|
|
493
495
|
:windows => {
|
|
@@ -509,7 +511,7 @@ windows_task = WindowsTask.new(spec) do |task|
|
|
|
509
511
|
},
|
|
510
512
|
{
|
|
511
513
|
:name => "cairo",
|
|
512
|
-
:version => "1.15.
|
|
514
|
+
:version => "1.15.8",
|
|
513
515
|
:download_site => :cairo_snapshots,
|
|
514
516
|
:windows => {
|
|
515
517
|
:built_file => "bin/libcairo-2.dll",
|
data/ext/cairo/rb_cairo.h
CHANGED
data/lib/cairo.rb
CHANGED
|
@@ -9,12 +9,12 @@ if /mingw|mswin|mswin32/ =~ RUBY_PLATFORM
|
|
|
9
9
|
begin
|
|
10
10
|
require "ruby_installer/runtime"
|
|
11
11
|
rescue LoadError
|
|
12
|
-
ENV["PATH"] = %w(bin lib).collect do |dir|
|
|
13
|
-
"#{base_dir}\\#{dir};"
|
|
14
|
-
end.join("") + ENV["PATH"]
|
|
15
12
|
else
|
|
16
13
|
RubyInstaller::Runtime.add_dll_directory("#{base_dir}\\bin")
|
|
17
14
|
end
|
|
15
|
+
ENV["PATH"] = %w(bin lib).collect do |dir|
|
|
16
|
+
"#{base_dir}\\#{dir};"
|
|
17
|
+
end.join("") + ENV["PATH"]
|
|
18
18
|
else
|
|
19
19
|
require "rbconfig"
|
|
20
20
|
ENV["PATH"] = %w(bin lib).collect do |dir|
|
data/test/cairo-test-utils.rb
CHANGED
|
@@ -11,12 +11,16 @@ module CairoTestUtils
|
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def
|
|
15
|
-
omit("Only for
|
|
14
|
+
def only_windows
|
|
15
|
+
omit("Only for Windows platform") unless windows?
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
def
|
|
19
|
-
|
|
18
|
+
def only_not_windows
|
|
19
|
+
omit("Only for not Windows platform") if windows?
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def windows?
|
|
23
|
+
/cygwin|mingw|mswin|bccwin/ === RUBY_PLATFORM
|
|
20
24
|
end
|
|
21
25
|
|
|
22
26
|
def quartz?
|
data/test/test_context.rb
CHANGED
|
@@ -74,7 +74,7 @@ class ContextTest < Test::Unit::TestCase
|
|
|
74
74
|
face = context.font_face
|
|
75
75
|
default_font_family = ""
|
|
76
76
|
default_font_family = "Helvetica" if quartz?
|
|
77
|
-
default_font_family = "Arial" if
|
|
77
|
+
default_font_family = "Arial" if windows?
|
|
78
78
|
assert_equal([default_font_family,
|
|
79
79
|
Cairo::FONT_SLANT_NORMAL,
|
|
80
80
|
Cairo::FONT_WEIGHT_NORMAL],
|
data/test/test_font_face.rb
CHANGED
|
@@ -55,7 +55,7 @@ class FontFaceTest < Test::Unit::TestCase
|
|
|
55
55
|
face = Cairo::ToyFontFace.new
|
|
56
56
|
default_font_family = ""
|
|
57
57
|
default_font_family = "Helvetica" if quartz?
|
|
58
|
-
default_font_family = "Arial" if
|
|
58
|
+
default_font_family = "Arial" if windows?
|
|
59
59
|
assert_equal([default_font_family,
|
|
60
60
|
Cairo::FONT_SLANT_NORMAL,
|
|
61
61
|
Cairo::FONT_WEIGHT_NORMAL],
|
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.15.
|
|
4
|
+
version: 1.15.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kouhei Sutou
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pkg-config
|
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
213
213
|
version: '0'
|
|
214
214
|
requirements: []
|
|
215
215
|
rubyforge_project:
|
|
216
|
-
rubygems_version: 2.5.2
|
|
216
|
+
rubygems_version: 2.5.2.1
|
|
217
217
|
signing_key:
|
|
218
218
|
specification_version: 4
|
|
219
219
|
summary: Ruby bindings for cairo
|