diff -Nru libtickit-widget-entry-plugin-completion-perl-0.01/Build.PL libtickit-widget-entry-plugin-completion-perl-0.02/Build.PL --- libtickit-widget-entry-plugin-completion-perl-0.01/Build.PL 2021-08-27 23:15:15.000000000 +0000 +++ libtickit-widget-entry-plugin-completion-perl-0.02/Build.PL 2022-12-15 00:04:29.000000000 +0000 @@ -7,7 +7,7 @@ module_name => 'Tickit::Widget::Entry::Plugin::Completion', requires => { 'perl' => '5.026', - 'Object::Pad' => '0.51', + 'Object::Pad' => '0.75', }, configure_requires => { 'Module::Build' => '0.4004', # test_requires diff -Nru libtickit-widget-entry-plugin-completion-perl-0.01/Changes libtickit-widget-entry-plugin-completion-perl-0.02/Changes --- libtickit-widget-entry-plugin-completion-perl-0.01/Changes 2021-08-27 23:15:15.000000000 +0000 +++ libtickit-widget-entry-plugin-completion-perl-0.02/Changes 2022-12-15 00:04:29.000000000 +0000 @@ -1,5 +1,11 @@ Revision history for Tickit-Widget-Entry-Plugin-Completion +0.02 2022-12-14 + [CHANGES] + * Updated for Object::Pad v0.75 + + Use `field NAME :param //= EXPR` syntax + + Use `ADJUST :params` + 0.01 2021-08-28 First version, released on an unsuspecting world. diff -Nru libtickit-widget-entry-plugin-completion-perl-0.01/debian/changelog libtickit-widget-entry-plugin-completion-perl-0.02/debian/changelog --- libtickit-widget-entry-plugin-completion-perl-0.01/debian/changelog 2022-08-11 15:51:46.000000000 +0000 +++ libtickit-widget-entry-plugin-completion-perl-0.02/debian/changelog 2022-12-17 17:34:10.000000000 +0000 @@ -1,3 +1,12 @@ +libtickit-widget-entry-plugin-completion-perl (0.02-1) unstable; urgency=medium + + * Import upstream version 0.02. + * Update years of upstream copyright. + * Bump test and runtime dependency on libobject-pad-perl to >= 0.75. + * Declare compliance with Debian Policy 4.6.2. + + -- gregor herrmann Sat, 17 Dec 2022 18:34:10 +0100 + libtickit-widget-entry-plugin-completion-perl (0.01-2) unstable; urgency=medium * No-change source-only re-upload. diff -Nru libtickit-widget-entry-plugin-completion-perl-0.01/debian/control libtickit-widget-entry-plugin-completion-perl-0.02/debian/control --- libtickit-widget-entry-plugin-completion-perl-0.01/debian/control 2022-08-11 15:51:46.000000000 +0000 +++ libtickit-widget-entry-plugin-completion-perl-0.02/debian/control 2022-12-17 17:34:10.000000000 +0000 @@ -7,11 +7,11 @@ Build-Depends: debhelper-compat (= 13), libmodule-build-perl, perl -Build-Depends-Indep: libobject-pad-perl (>= 0.51) , +Build-Depends-Indep: libobject-pad-perl (>= 0.75) , libtest-simple-perl , libtickit-perl , libtickit-widgets-perl (>= 0.35) -Standards-Version: 4.6.1 +Standards-Version: 4.6.2 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtickit-widget-entry-plugin-completion-perl Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtickit-widget-entry-plugin-completion-perl.git Homepage: https://metacpan.org/release/Tickit-Widget-Entry-Plugin-Completion @@ -21,7 +21,7 @@ Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, - libobject-pad-perl (>= 0.51), + libobject-pad-perl (>= 0.75), libtickit-widgets-perl (>= 0.35) Description: word-completion plugin for Tickit::Widget::Entry Tickit::Widget::Entry::Plugin::Completion applies code to a diff -Nru libtickit-widget-entry-plugin-completion-perl-0.01/debian/copyright libtickit-widget-entry-plugin-completion-perl-0.02/debian/copyright --- libtickit-widget-entry-plugin-completion-perl-0.01/debian/copyright 2022-08-11 15:51:46.000000000 +0000 +++ libtickit-widget-entry-plugin-completion-perl-0.02/debian/copyright 2022-12-17 17:34:10.000000000 +0000 @@ -4,7 +4,7 @@ Upstream-Name: Tickit-Widget-Entry-Plugin-Completion Files: * -Copyright: 2021, Paul Evans +Copyright: 2021-2022, Paul Evans License: Artistic or GPL-1+ Files: debian/* diff -Nru libtickit-widget-entry-plugin-completion-perl-0.01/lib/Tickit/Widget/Entry/Plugin/Completion.pm libtickit-widget-entry-plugin-completion-perl-0.02/lib/Tickit/Widget/Entry/Plugin/Completion.pm --- libtickit-widget-entry-plugin-completion-perl-0.01/lib/Tickit/Widget/Entry/Plugin/Completion.pm 2021-08-27 23:15:15.000000000 +0000 +++ libtickit-widget-entry-plugin-completion-perl-0.02/lib/Tickit/Widget/Entry/Plugin/Completion.pm 2022-12-15 00:04:29.000000000 +0000 @@ -1,13 +1,14 @@ # You may distribute under the terms of either the GNU General Public License # or the Artistic License (the same terms as Perl itself) # -# (C) Paul Evans, 2021 -- leonerd@leonerd.org.uk +# (C) Paul Evans, 2021-2022 -- leonerd@leonerd.org.uk use v5.26; -use Object::Pad 0.51; # ADJUSTPARAMS +use Object::Pad 0.75 ':experimental(init_expr adjust_params)'; -package Tickit::Widget::Entry::Plugin::Completion 0.01; -class Tickit::Widget::Entry::Plugin::Completion; +package Tickit::Widget::Entry::Plugin::Completion 0.02; +class Tickit::Widget::Entry::Plugin::Completion + :strict(params); use feature 'fc'; @@ -135,16 +136,16 @@ $entry->set_style( '' => "" ); } -has $_ignore_case :param = 0; -has $_use_popup :param = 1; -has $_append_after_word :param = " "; - -has $_gen_words :param = undef; - -ADJUSTPARAMS ( $params ) -{ - if( $params->{words} and !$_gen_words ) { - my $words = delete $params->{words}; +field $_ignore_case :param //= 0; +field $_use_popup :param //= 1; +field $_append_after_word :param //= " "; + +field $_gen_words :param = undef; + +ADJUST :params ( + :$words = undef, +) { + if( $words and !$_gen_words ) { $_gen_words = sub { return $words->@* }; } @@ -152,9 +153,9 @@ croak "Require either 'gen_words' or 'words'"; } -has $_entry :param; +field $_entry :param; -has $_popup_window; +field $_popup_window; method key_complete { diff -Nru libtickit-widget-entry-plugin-completion-perl-0.01/LICENSE libtickit-widget-entry-plugin-completion-perl-0.02/LICENSE --- libtickit-widget-entry-plugin-completion-perl-0.01/LICENSE 2021-08-27 23:15:15.000000000 +0000 +++ libtickit-widget-entry-plugin-completion-perl-0.02/LICENSE 2022-12-15 00:04:29.000000000 +0000 @@ -1,4 +1,4 @@ -This software is copyright (c) 2021 by Paul Evans . +This software is copyright (c) 2022 by Paul Evans . This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -12,7 +12,7 @@ --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2021 by Paul Evans . +This software is Copyright (c) 2022 by Paul Evans . This is free software, licensed under: @@ -272,7 +272,7 @@ --- The Artistic License 1.0 --- -This software is Copyright (c) 2021 by Paul Evans . +This software is Copyright (c) 2022 by Paul Evans . This is free software, licensed under: @@ -292,21 +292,21 @@ - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through - textual modification. + textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright - Holder. + Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for - the package. + the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the - computing community at large as a market that must bear the fee.) + computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they - received it. + received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you @@ -373,7 +373,7 @@ 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF -MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End diff -Nru libtickit-widget-entry-plugin-completion-perl-0.01/META.json libtickit-widget-entry-plugin-completion-perl-0.02/META.json --- libtickit-widget-entry-plugin-completion-perl-0.01/META.json 2021-08-27 23:15:15.000000000 +0000 +++ libtickit-widget-entry-plugin-completion-perl-0.02/META.json 2022-12-15 00:04:29.000000000 +0000 @@ -21,7 +21,7 @@ }, "runtime" : { "requires" : { - "Object::Pad" : "0.51", + "Object::Pad" : "0.75", "perl" : "5.026" } }, @@ -37,7 +37,7 @@ "provides" : { "Tickit::Widget::Entry::Plugin::Completion" : { "file" : "lib/Tickit/Widget/Entry/Plugin/Completion.pm", - "version" : "0.01" + "version" : "0.02" } }, "release_status" : "stable", @@ -46,6 +46,6 @@ "http://dev.perl.org/licenses/" ] }, - "version" : "0.01", - "x_serialization_backend" : "JSON::PP version 4.05" + "version" : "0.02", + "x_serialization_backend" : "JSON::PP version 4.07" } diff -Nru libtickit-widget-entry-plugin-completion-perl-0.01/META.yml libtickit-widget-entry-plugin-completion-perl-0.02/META.yml --- libtickit-widget-entry-plugin-completion-perl-0.01/META.yml 2021-08-27 23:15:15.000000000 +0000 +++ libtickit-widget-entry-plugin-completion-perl-0.02/META.yml 2022-12-15 00:04:29.000000000 +0000 @@ -19,11 +19,11 @@ provides: Tickit::Widget::Entry::Plugin::Completion: file: lib/Tickit/Widget/Entry/Plugin/Completion.pm - version: '0.01' + version: '0.02' requires: - Object::Pad: '0.51' + Object::Pad: '0.75' perl: '5.026' resources: license: http://dev.perl.org/licenses/ -version: '0.01' +version: '0.02' x_serialization_backend: 'CPAN::Meta::YAML version 0.018'