File tree 5 files changed +10
-80
lines changed
5 files changed +10
-80
lines changed Original file line number Diff line number Diff line change 21
21
# - windows-latest
22
22
23
23
perl :
24
- - ' 5.34'
25
24
- ' 5.36'
26
25
- ' 5.38'
26
+ - ' 5.40'
27
27
# exclude:
28
28
# - os: ubuntu-16.04
29
29
# perl: '5.26'
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ sub getVersions {
17
17
18
18
$name = $self -> extractName($name );
19
19
20
- return [ map { $_ -> {name } =~ / ^v?([\d .]+)$ / } @{$res -> json // []} ];
20
+ my $attr = $name eq ' libxslt' ? ' tag_name' : ' name' ;
21
+
22
+ return [ map { $_ -> {$attr } =~ / ^v?([\d .]+)$ / } @{$res -> json // []} ];
21
23
}
22
24
23
25
1;
@@ -26,7 +28,7 @@ __END__
26
28
27
29
=head1 COPYRIGHT
28
30
29
- Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
31
+ Copyright 2025 OmniOS Community Edition (OmniOSce) Association.
30
32
31
33
=head1 LICENSE
32
34
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
package OOCEapps::PkgUpd::PyMod ;
2
2
use Mojo::Base ' OOCEapps::PkgUpd::base' ;
3
- use Mojo::Util ' trim' ;
4
3
5
4
# public methods
6
5
sub canParse {
7
6
my $self = shift ;
8
7
my $name = shift ;
9
8
my $url = shift ;
10
9
11
- return $url =~ m | ^https://pypi\. org/project/| ;
10
+ return $url =~ m | ^https://pypi\. org/rss/ project/| ;
12
11
}
13
12
14
13
sub getVersions {
15
14
my $self = shift ;
16
15
my $name = shift ;
17
16
my $res = shift ;
18
17
19
- # remove version suffix
20
- $name =~ s / -\d {2}$// ;
21
-
22
- $name = $self -> extractName($name );
23
-
24
- # Version 0.7 is mistakenly shown as 7 on the prettytable project page
25
- # we expect at least a version of the pattern x.y
26
- my $FILTER = $name eq ' prettytable' ? qr /\d +\. / : qr / ./ ;
27
-
28
18
return [
29
- grep { / ^$FILTER / }
30
19
grep { !/(?:rc|a(?:lpha)?|b(?:eta)?)\d+$/ }
31
- map { $_ -> text ? trim($_ -> text) : () }
32
- $res -> dom-> find(' p.release__version' )-> each
20
+ $res -> dom-> find(' rss > channel > item > title' )-> map (' text' )-> each
33
21
];
34
22
}
35
23
@@ -39,7 +27,7 @@ __END__
39
27
40
28
=head1 COPYRIGHT
41
29
42
- Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
30
+ Copyright 2025 OmniOS Community Edition (OmniOSce) Association.
43
31
44
32
=head1 LICENSE
45
33
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use Mojo::Base -base;
4
4
use Mojo::JSON qw( encode_json decode_json) ;
5
5
use Mojo::Util qw( b64_encode b64_decode) ;
6
6
use Crypt::Ed25519;
7
- use File::Spec qw( catdir splitpath ) ;
7
+ use File::Spec;
8
8
use Email::MIME;
9
9
use Email::Sender::Simple;
10
10
use File::Temp;
@@ -269,7 +269,7 @@ __END__
269
269
270
270
=head1 COPYRIGHT
271
271
272
- Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
272
+ Copyright 2025 OmniOS Community Edition (OmniOSce) Association.
273
273
274
274
=head1 LICENSE
275
275
You can’t perform that action at this time.
0 commit comments