cairo 1.17.12 → 1.17.13
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 +8 -0
- data/ext/cairo/extconf.rb +1 -0
- data/ext/cairo/rb_cairo.h +1 -1
- data/test/test_tee_surface.rb +17 -15
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d92fe9f3f501e0697b28a0333ffd7fb0092bdba01bb05b769c73832f7cce7e68
|
|
4
|
+
data.tar.gz: 847ac62409088512f6081ff870462e13ad461ae9123633932ae7cee5b396104a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8362e6879ae182d2c30ffc3eaca7c9ac5338ffeea2b819aec5d73717d1784de12c4a3bb009e19993d939f3e1b6caf5932c04bf8f524fa854b27965f7533805a0
|
|
7
|
+
data.tar.gz: 4d1705b59fc4d56917a34d1a7c1ce1eabac8f0d17ff0e9f8439d0321b4c4b71358da457e6427aaa4e30a7d2821b600bbef0901dc088b79bf9044a46280dd858e
|
data/NEWS
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
Release 1.17.13 (2023-12-18) Sutou Kouhei <kou@cozmixng.org>
|
|
2
|
+
============================================================
|
|
3
|
+
|
|
4
|
+
Improvements
|
|
5
|
+
------------
|
|
6
|
+
|
|
7
|
+
* Added support for Alpine Linux.
|
|
8
|
+
|
|
1
9
|
Release 1.17.12 (2023-06-17) Sutou Kouhei <kou@cozmixng.org>
|
|
2
10
|
============================================================
|
|
3
11
|
|
data/ext/cairo/extconf.rb
CHANGED
data/ext/cairo/rb_cairo.h
CHANGED
data/test/test_tee_surface.rb
CHANGED
|
@@ -9,24 +9,26 @@ class TeeSurfaceTest < Test::Unit::TestCase
|
|
|
9
9
|
def test_new
|
|
10
10
|
output1 = StringIO.new
|
|
11
11
|
device1 = Cairo::ScriptDevice.new(output1)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
assert_equal(<<-EOS, output1.string)
|
|
12
|
+
Cairo::ScriptSurface.create(device1, 100, 200) do |surface1|
|
|
13
|
+
output2 = StringIO.new
|
|
14
|
+
device2 = Cairo::ScriptDevice.new(output2)
|
|
15
|
+
Cairo::ScriptSurface.create(device2, 100, 200) do |surface2|
|
|
16
|
+
Cairo::TeeSurface.create(surface1) do |surface|
|
|
17
|
+
surface << surface2
|
|
18
|
+
Cairo::Context.create(surface) do |context|
|
|
19
|
+
context.move_to(15, 30)
|
|
20
|
+
context.line_to(80, 100)
|
|
21
|
+
context.stroke
|
|
22
|
+
end
|
|
23
|
+
assert_equal(<<-SCRIPT, output1.string)
|
|
25
24
|
%!CairoScript
|
|
26
25
|
<< /content //COLOR_ALPHA /width 100 /height 200 >> surface context
|
|
27
26
|
n 15 30 m 80 100 l
|
|
28
27
|
stroke+
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
SCRIPT
|
|
29
|
+
assert_equal(output1.string, output2.string)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
31
33
|
end
|
|
32
34
|
end
|
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.17.
|
|
4
|
+
version: 1.17.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kouhei Sutou
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: native-package-installer
|
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
235
235
|
version: '0'
|
|
236
236
|
requirements:
|
|
237
237
|
- cairo >= 1.2.0
|
|
238
|
-
rubygems_version: 3.5.
|
|
238
|
+
rubygems_version: 3.5.1
|
|
239
239
|
signing_key:
|
|
240
240
|
specification_version: 4
|
|
241
241
|
summary: Ruby bindings for cairo
|