File tree Expand file tree Collapse file tree 3 files changed +47
-10
lines changed Expand file tree Collapse file tree 3 files changed +47
-10
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,17 @@ jobs:
38
38
matrix :
39
39
os-version : [ 'ubuntu-20.04' ]
40
40
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'
49
49
- ' 3.0'
50
- - 3.1
51
- - 3.2
50
+ - ' 3.1'
51
+ - ' 3.2'
52
52
- jruby
53
53
fail-fast : true
54
54
Original file line number Diff line number Diff line change 9
9
* add ` Vips.concurrency ` to get/set threadpool size [ jeremy]
10
10
* add ` Vips.concurrency_default ` to get the default threadpool size [ jeremy]
11
11
* fix targetcustom spec test with libvips 8.13 [ lucaskanashiro]
12
+ * add ruby 3.2 to CI [ petergoldstein]
12
13
13
14
## Version 2.1.4 (2021-10-28)
14
15
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments