Skip to content

Commit b32b244

Browse files
committed
quote all ruby versions in yaml
1 parent f81894c commit b32b244

File tree

3 files changed

+47
-10
lines changed

3 files changed

+47
-10
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ jobs:
3838
matrix:
3939
os-version: [ 'ubuntu-20.04' ]
4040
ruby-version:
41-
- 2.0
42-
- 2.1
43-
- 2.2
44-
- 2.3
45-
- 2.4
46-
- 2.5
47-
- 2.6
48-
- 2.7
41+
- '2.0'
42+
- '2.1'
43+
- '2.2'
44+
- '2.3'
45+
- '2.4'
46+
- '2.5'
47+
- '2.6'
48+
- '2.7'
4949
- '3.0'
50-
- 3.1
51-
- 3.2
50+
- '3.1'
51+
- '3.2'
5252
- jruby
5353
fail-fast: true
5454

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* add `Vips.concurrency` to get/set threadpool size [jeremy]
1010
* add `Vips.concurrency_default` to get the default threadpool size [jeremy]
1111
* fix targetcustom spec test with libvips 8.13 [lucaskanashiro]
12+
* add ruby 3.2 to CI [petergoldstein]
1213

1314
## Version 2.1.4 (2021-10-28)
1415

example/revalidate.rb

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/ruby
2+
3+
# demo the "revalidate" feature in libvips 8.15
4+
5+
require "fileutils"
6+
require "vips"
7+
8+
if ARGV.length != 2
9+
puts "usage: ./revalidate.rb IMAGE-FILE-1 IMAGE-FILE-2"
10+
exit 1
11+
end
12+
13+
if File.exists?("fred")
14+
puts "file 'fred' exists, delete it first"
15+
exit 1
16+
end
17+
18+
puts "copying #{ARGV[0]} to fred ..."
19+
FileUtils.cp(ARGV[0], "fred")
20+
21+
image1 = Vips::Image.new_from_file("fred")
22+
puts "fred.width = #{image1.width}"
23+
24+
puts "copying #{ARGV[1]} to fred ..."
25+
FileUtils.cp(ARGV[1], "fred")
26+
27+
puts "plain image open ..."
28+
image2 = Vips::Image.new_from_file("fred")
29+
puts "fred.width = #{image2.width}"
30+
31+
puts "opening with revalidate ..."
32+
image2 = Vips::Image.new_from_file("fred", revalidate: true)
33+
puts "fred.width = #{image2.width}"
34+
35+
File.delete("fred")
36+

0 commit comments

Comments
 (0)