Organised by Kıvanç Yazan.
Thank you 🙏
This was missing in the file:
"resources" : { "bugtracker" : { "web" : "https://github.com/davorg/calendar-simple/issues" }, "license" : [ "http://dev.perl.org/licenses/" ], "repository" : { "type" : "git", "url" : "https://github.com/davorg/calendar-simple.git", "web" : "https://github.com/davorg/calendar-simple" }
The file created by
perl Build.PL && ./Build dist
contained the missing lines.
I let Dave Cross know. He reran the command and uploaded the fixed tarball to CPAN.
🙁 But no pull request to close my assignment.
As of version 2.0.0, the defaultstart_day
has changed. Previously, it was Sunday; now, it is Monday. This is so the default behaviour matches that of the standard Unixcal
command.
But
As of version 2.0.0, the defaultstart_day
has changed. Previously, it was Sunday; now, it is Monday. This is so the default behaviour matches that of the standard Unixcal
command.
In fact, the behaviour depends on the locale (LC_TIME
).
I added an option to specify the week should start on Sunday (already supported by the library).
# No tests run! # Failed test 'No tests run for subtest "with version"' # at t/never-exports.t line 33. Undef did not pass type constraint (not isa PPI::Statement::Include) (in $args->{"include"}) at t/lib/TestHelper.pm line 106 Not a blessed reference # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 1. t/never-exports.t ................ Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/1 subtests
my $doc = App::perlimports::Document->new( filename => $filename, logger => $logger, $source_text ? ( selection => $source_text ) : (), ); return App::perlimports::Include->new( document => $doc, include => $doc->includes->[0], logger => $logger, %{$pi_args}, );
has includes => ( is => 'ro', isa => ArrayRef [Object], handles_via => 'Array', handles => { all_includes => 'elements', }, lazy => 1, builder => '_build_includes', );
sub _build_includes { my $self = shift; return $self->_ppi_selection->find( sub { $_[1]->isa('PPI::Statement::Include') && !$_[1]->pragma # no pragmas && !$_[1]->version # Perl version requirement && $_[1]->type && ( $_[1]->type eq 'use' || $_[1]->type eq 'require' ) && !$self->_is_ignored( $_[1] ) && !$self->_has_import_switches( $_[1]->module ) && !App::perlimports::Sandbox::eval_pkg( $_[1]->module, "$_[1]" ); } ) || []; }
sub eval_pkg { my $module_name = shift; my $content = shift; my $pkg = pkg_for($module_name); my $to_eval = <<"EOF"; package $pkg; $content; 1; EOF local $@; eval $to_eval; my $e = $@; return $e; }
LWP::UserAgent version 6.49 required--this is only version 6.31 at (eval 401) line 2.
use Test::Needs { 'Cpanel::JSON::XS' => 4.19, 'Getopt::Long' => 2.40, 'LWP::UserAgent' => 5.00, 'Test::Script' => 1.27, }; ... subtest 'with version' => sub { my $pi = source2pi( 'test-data/with-version.pl', 'use LWP::UserAgent 6.49;', ); ok( !$pi->_is_ignored, '_is_ignored' ); is( $pi->formatted_ppi_statement, 'use LWP::UserAgent 6.49 ();', 'formatted_ppi_statement' );
I lowered the expected version to fit into the test requirements.
Perl & Koha, Helsinki | 2023 |