ruby-vips 2.2.2 → 2.2.4
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/.github/workflows/test.yml +5 -20
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/vips/image.rb +5 -5
- data/lib/vips/methods.rb +209 -114
- data/lib/vips/operation.rb +1 -1
- data/lib/vips/version.rb +1 -1
- data/lib/vips.rb +6 -6
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4bfc7ec785c930f9f11566a241b0b811c20ada01d38ef9dda7761f0daeb1efd
|
4
|
+
data.tar.gz: 618efc35ab3e798be637da9cead6aff9c8654162054a4104d71ff339348116c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49b7080c073a31214510bf56ed3cac7d18f5a1aa336b8f517867bab65bfc11b255f6184fddad564e363ae2f9f9bf17deecee6dffcb31af93b64f3a9162801575
|
7
|
+
data.tar.gz: c1253b94ac98fe8d9617d66dc4c47b41021c0f51497b6577dfad020a5e6898b36fee0baa8762e4b3b80ce697e4062fd71c258beb050ec81fb94a767954481040
|
data/.github/workflows/test.yml
CHANGED
@@ -1,13 +1,6 @@
|
|
1
1
|
name: Test
|
2
2
|
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- master
|
7
|
-
pull_request:
|
8
|
-
pull_request_target:
|
9
|
-
branches:
|
10
|
-
- master
|
3
|
+
on: [push, pull_request]
|
11
4
|
|
12
5
|
env:
|
13
6
|
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
|
@@ -36,7 +29,7 @@ jobs:
|
|
36
29
|
|
37
30
|
strategy:
|
38
31
|
matrix:
|
39
|
-
os-version: [ 'ubuntu-
|
32
|
+
os-version: [ 'ubuntu-24.04' ]
|
40
33
|
ruby-version:
|
41
34
|
- '2.3'
|
42
35
|
- '2.4'
|
@@ -62,19 +55,11 @@ jobs:
|
|
62
55
|
ruby-version: ${{ matrix.ruby-version }}
|
63
56
|
bundler-cache: true
|
64
57
|
|
65
|
-
- name: Update apt
|
66
|
-
env:
|
67
|
-
DEBIAN_FRONTEND: noninteractive
|
68
|
-
run:
|
69
|
-
sudo apt-get update -qq -o Acquire::Retries=3
|
70
|
-
|
71
58
|
- name: Install libvips
|
72
|
-
|
73
|
-
|
74
|
-
run:
|
59
|
+
run: |
|
60
|
+
sudo apt-get update
|
75
61
|
# we only need the library
|
76
|
-
sudo apt-get install --no-install-recommends
|
77
|
-
libvips
|
62
|
+
sudo apt-get install --no-install-recommends libvips
|
78
63
|
|
79
64
|
- name: Run Tests
|
80
65
|
run: bundle exec rake spec
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## Version 2.2.4 (2025-06-05)
|
6
|
+
|
7
|
+
* fix write to target test with libvips 8.17 [jcupitt]
|
8
|
+
* update docs for libvips 8.17 [jcupitt]
|
9
|
+
|
10
|
+
## Version 2.2.3 (2025-02-06)
|
11
|
+
|
12
|
+
* fix `Image#add_alpha()` with libvips 8.16 [kleisauke]
|
13
|
+
* fix FFI function definitions for `gboolean` parameters [kleisauke]
|
14
|
+
|
5
15
|
## Version 2.2.2 (2024-07-17)
|
6
16
|
|
7
17
|
* fix compat with unified (semistatic) libvips binaries [kleisauke]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.4
|
data/lib/vips/image.rb
CHANGED
@@ -14,8 +14,8 @@ module Vips
|
|
14
14
|
|
15
15
|
attach_function :vips_image_copy_memory, [:pointer], :pointer
|
16
16
|
|
17
|
-
attach_function :vips_image_set_progress, [:pointer, :
|
18
|
-
attach_function :vips_image_set_kill, [:pointer, :
|
17
|
+
attach_function :vips_image_set_progress, [:pointer, :int], :void
|
18
|
+
attach_function :vips_image_set_kill, [:pointer, :int], :void
|
19
19
|
|
20
20
|
attach_function :vips_filename_get_filename, [:string], :pointer
|
21
21
|
attach_function :vips_filename_get_options, [:string], :pointer
|
@@ -716,7 +716,7 @@ module Vips
|
|
716
716
|
# @see Object#signal_connect
|
717
717
|
# @param state [Boolean] progress signalling state
|
718
718
|
def set_progress state
|
719
|
-
Vips.vips_image_set_progress
|
719
|
+
Vips.vips_image_set_progress(self, state ? 1 : 0)
|
720
720
|
end
|
721
721
|
|
722
722
|
# Kill computation of this time.
|
@@ -727,7 +727,7 @@ module Vips
|
|
727
727
|
# @see Object#signal_connect
|
728
728
|
# @param kill [Boolean] stop computation
|
729
729
|
def set_kill kill
|
730
|
-
Vips.vips_image_set_kill
|
730
|
+
Vips.vips_image_set_kill(self, kill ? 1 : 0)
|
731
731
|
end
|
732
732
|
|
733
733
|
# Get the `GType` of a metadata field. The result is 0 if no such field
|
@@ -973,7 +973,7 @@ module Vips
|
|
973
973
|
# @return [Image] new image
|
974
974
|
def add_alpha
|
975
975
|
ptr = GenericPtr.new
|
976
|
-
result = Vips.vips_addalpha self, ptr
|
976
|
+
result = Vips.vips_addalpha self, ptr, :pointer, nil
|
977
977
|
raise Vips::Error if result != 0
|
978
978
|
|
979
979
|
Vips::Image.new ptr[:value]
|