Skip to content

Commit 0fad716

Browse files
committed
0.5.24
1 parent b8250c5 commit 0fad716

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{{$NEXT}}
22

3+
0.5.24 2025-07-27T11:20:57+12:00
4+
- Fix a PDF::API6 regression in t/00-basic.t; version()
5+
setter from a Version object.
6+
37
0.5.23 2025-07-27T10:47:58+12:00
48
- Fix PDF::Mask /SMask coercement; failing test in
59
t/pdf-resources.t

META6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,5 @@
163163
],
164164
"test-depends": [
165165
],
166-
"version": "0.5.23"
166+
"version": "0.5.24"
167167
}

lib/PDF/Class.rakumod

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22

33
#| PDF entry-point. either a trailer dict or an XRef stream
4-
unit class PDF::Class:ver<0.5.23>;
4+
unit class PDF::Class:ver<0.5.24>;
55

66
use PDF;
77
also is PDF;
@@ -38,14 +38,14 @@ has PDF::COS::Type::XRef $.XRefStm is entry; #= Only applicable to Hybrid cross
3838

3939
method type { 'PDF' }
4040
method version is rw {
41-
Proxy.new(
42-
FETCH => {
43-
Version.new: $.catalog<Version> // self.?reader.?version // '1.4'
44-
},
45-
STORE => -> $, Version $_ {
46-
$.catalog<Version> = name($_);
47-
},
48-
);
41+
sub FETCH($) {
42+
Version.new: $.catalog<Version> // self.?reader.?version // '1.4'
43+
}
44+
sub STORE ($, Version $_) {
45+
$.catalog<Version> = name(.Str);
46+
}
47+
48+
Proxy.new: :&FETCH, :&STORE;
4949
}
5050

5151
# make sure it really is a PDF, not an FDF file etc

0 commit comments

Comments
 (0)