Skip to content

Commit 27d2c3a

Browse files
authored
Merge pull request #386 from libvips/fix-ci
Fix CI
2 parents f61f7a7 + b735f3e commit 27d2c3a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2424

2525
- name: Set up Ruby
2626
uses: ruby/setup-ruby@v1
@@ -38,7 +38,6 @@ jobs:
3838
matrix:
3939
os-version: [ 'ubuntu-20.04' ]
4040
ruby-version:
41-
- '2.0'
4241
- '2.1'
4342
- '2.2'
4443
- '2.3'
@@ -56,7 +55,7 @@ jobs:
5655

5756
steps:
5857
- name: Checkout code
59-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
6059

6160
- name: Set up Ruby
6261
uses: ruby/setup-ruby@v1

lib/vips/image.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,14 @@ def self.new_from_source source, option_string, **opts
458458
loader = Vips.vips_foreign_find_load_source source
459459
raise Vips::Error if loader.nil?
460460

461-
image = Vips::Operation.call loader, [source], opts, option_string
461+
result = Vips::Operation.call loader, [source], opts, option_string
462462

463463
# keep a secret ref to the source object ... the libvips loader will
464464
# keep a ref to the C source object, but we need the ruby wrapper object
465465
# to stay alive too
466-
image.references << source
466+
result.references << source
467467

468-
image
468+
result
469469
end
470470

471471
def self.matrix_from_array width, height, array

0 commit comments

Comments
 (0)