gdk_pixbuf2 4.3.0 → 4.3.1
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/test/gdk_pixbuf2-test-utils.rb +1 -1
- data/test/test-animation.rb +11 -3
- data/test/test-pixbuf.rb +17 -13
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83a026af37d96fe618a9b31a7a050153226a42e543307dc991452527bf7bb446
|
4
|
+
data.tar.gz: 19a26d1fa309d9d7e25b4c22f6c710447e2b5f384f908586a9cf58feda66f66f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebd0bf816ccfd3870a67d0e13b83522e5b80a22ebbc4430747fb569f9b7cfc9b5ee30f50411ee49bde9bce34d28f0609a70cd98a65e3bc370ea423ed2c6be058
|
7
|
+
data.tar.gz: 48ad86f85fd7d6839160d2ec543504d68aa695a97e1ca7b8d9f702bf5317f40b024f175d7c7b4e8381c953f1f59f22521b42ce1644b635583098bbb518f93e6a
|
data/test/test-animation.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2016 Ruby-
|
1
|
+
# Copyright (C) 2016-2025 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -23,8 +23,16 @@ class TestAnimationIter < Test::Unit::TestCase
|
|
23
23
|
end
|
24
24
|
|
25
25
|
test("#on_currently_loading_frame?") do
|
26
|
-
|
27
|
-
|
26
|
+
if GdkPixbuf::Version.or_later?(2, 43, 0)
|
27
|
+
# Glycin based loaders load animation at once because Glycin based
|
28
|
+
# loaders don't provide "load_animation".
|
29
|
+
assert do
|
30
|
+
@iter.on_currently_loading_frame?
|
31
|
+
end
|
32
|
+
else
|
33
|
+
assert do
|
34
|
+
not @iter.on_currently_loading_frame?
|
35
|
+
end
|
28
36
|
end
|
29
37
|
end
|
30
38
|
end
|
data/test/test-pixbuf.rb
CHANGED
@@ -327,26 +327,30 @@ class TestPixbuf < Test::Unit::TestCase
|
|
327
327
|
test("no options") do
|
328
328
|
png_filename = fixture_path("gnome-logo-icon.png")
|
329
329
|
pixbuf = GdkPixbuf::Pixbuf.new(:file => png_filename)
|
330
|
-
|
331
|
-
assert_equal(["image/
|
332
|
-
Gio::ContentType.guess(nil,
|
330
|
+
tiff = pixbuf.save("tiff")
|
331
|
+
assert_equal(["image/tiff", false],
|
332
|
+
Gio::ContentType.guess(nil, tiff))
|
333
333
|
end
|
334
334
|
|
335
335
|
test("filename") do
|
336
336
|
png_filename = fixture_path("gnome-logo-icon.png")
|
337
337
|
pixbuf = GdkPixbuf::Pixbuf.new(:file => png_filename)
|
338
|
-
output = Tempfile.new(["pixbuf", ".
|
339
|
-
|
340
|
-
|
338
|
+
output = Tempfile.new(["pixbuf", ".tiff"])
|
339
|
+
output.close
|
340
|
+
pixbuf.save(output.path)
|
341
|
+
output.open
|
342
|
+
assert_equal(["image/tiff", false],
|
341
343
|
Gio::ContentType.guess(nil, output.read))
|
342
344
|
end
|
343
345
|
|
344
346
|
test(":filename") do
|
345
347
|
png_filename = fixture_path("gnome-logo-icon.png")
|
346
348
|
pixbuf = GdkPixbuf::Pixbuf.new(:file => png_filename)
|
347
|
-
output = Tempfile.new(["pixbuf", ".
|
348
|
-
|
349
|
-
|
349
|
+
output = Tempfile.new(["pixbuf", ".tiff"])
|
350
|
+
output.close
|
351
|
+
pixbuf.save(output.path, "tiff")
|
352
|
+
output.open
|
353
|
+
assert_equal(["image/tiff", false],
|
350
354
|
Gio::ContentType.guess(nil, output.read))
|
351
355
|
end
|
352
356
|
end
|
@@ -354,11 +358,11 @@ class TestPixbuf < Test::Unit::TestCase
|
|
354
358
|
test("#save_to_buffer") do
|
355
359
|
png_filename = fixture_path("gnome-logo-icon.png")
|
356
360
|
pixbuf = GdkPixbuf::Pixbuf.new(:file => png_filename)
|
357
|
-
|
358
|
-
pixbuf.save_to_buffer("
|
361
|
+
tiff = suppress_warning do
|
362
|
+
pixbuf.save_to_buffer("tiff")
|
359
363
|
end
|
360
|
-
assert_equal(["image/
|
361
|
-
Gio::ContentType.guess(nil,
|
364
|
+
assert_equal(["image/tiff", false],
|
365
|
+
Gio::ContentType.guess(nil, tiff))
|
362
366
|
end
|
363
367
|
|
364
368
|
test("#read_pixel_bytes") do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gdk_pixbuf2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
@@ -15,14 +15,14 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - '='
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 4.3.
|
18
|
+
version: 4.3.1
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - '='
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: 4.3.
|
25
|
+
version: 4.3.1
|
26
26
|
description: Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
|
27
27
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
28
28
|
executables: []
|
@@ -91,7 +91,7 @@ requirements:
|
|
91
91
|
- 'system: gdk-pixbuf-2.0: homebrew: gdk-pixbuf'
|
92
92
|
- 'system: gdk-pixbuf-2.0: macports: gdk-pixbuf2'
|
93
93
|
- 'system: gdk-pixbuf-2.0: rhel: pkgconfig(gdk-pixbuf-2.0)'
|
94
|
-
rubygems_version: 3.6.
|
94
|
+
rubygems_version: 3.6.9
|
95
95
|
specification_version: 4
|
96
96
|
summary: Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
|
97
97
|
test_files: []
|