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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d39585235460ffabf43c0d60b950993a1ec79c225cd484ea6c2cea6707f47c1
4
- data.tar.gz: bed8c1c73ed274a961321dfa235cdf2e46014c17243054af77b09e719211f17d
3
+ metadata.gz: 83a026af37d96fe618a9b31a7a050153226a42e543307dc991452527bf7bb446
4
+ data.tar.gz: 19a26d1fa309d9d7e25b4c22f6c710447e2b5f384f908586a9cf58feda66f66f
5
5
  SHA512:
6
- metadata.gz: eb35fcef0944a1f6237d15f1db796c551cf259e6e3e0c009de3f37a6b737703b2bf90df3659e47285f3b09b20a01a31ebb9460b63e8a5df745b3760427616106
7
- data.tar.gz: 198212f792cb6856fb6a10d72fae8981f127afb7cf2815d95c71cb24892f7143bd0cf182bdad8ca96dd11c574918c55d7b9cd9dd1941d3242d58f6709ae7e3ea
6
+ metadata.gz: ebd0bf816ccfd3870a67d0e13b83522e5b80a22ebbc4430747fb569f9b7cfc9b5ee30f50411ee49bde9bce34d28f0609a70cd98a65e3bc370ea423ed2c6be058
7
+ data.tar.gz: 48ad86f85fd7d6839160d2ec543504d68aa695a97e1ca7b8d9f702bf5317f40b024f175d7c7b4e8381c953f1f59f22521b42ce1644b635583098bbb518f93e6a
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2015-2021 Ruby-GNOME Project Team
1
+ # Copyright (C) 2015-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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2016 Ruby-GNOME2 Project Team
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
- assert do
27
- not @iter.on_currently_loading_frame?
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
- jpeg = pixbuf.save("jpeg")
331
- assert_equal(["image/jpeg", false],
332
- Gio::ContentType.guess(nil, jpeg))
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", ".jpg"])
339
- pixbuf.save(output)
340
- assert_equal(["image/jpeg", false],
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", ".jpeg"])
348
- pixbuf.save(output.path, "jpeg")
349
- assert_equal(["image/jpeg", false],
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
- jpeg = suppress_warning do
358
- pixbuf.save_to_buffer("jpeg")
361
+ tiff = suppress_warning do
362
+ pixbuf.save_to_buffer("tiff")
359
363
  end
360
- assert_equal(["image/jpeg", false],
361
- Gio::ContentType.guess(nil, jpeg))
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.0
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.0
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.0
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.7
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: []