Math-BSpline-Basis
view release on metacpan or search on metacpan
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.015, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: Math-BSpline-Basis
requires:
List::Util: '1.26'
Moo: '2.002005'
Ref::Util: '0.010'
perl: '5.014'
warnings: '0'
version: '0.002'
x_generated_by_perl: v5.28.1
x_serialization_backend: 'YAML::Tiny version 1.73'
x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
Makefile.PL view on Meta::CPAN
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "Math-BSpline-Basis",
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.014",
"NAME" => "Math::BSpline::Basis",
"PREREQ_PM" => {
"List::Util" => "1.26",
"Moo" => "2.002005",
"Ref::Util" => "0.010",
"warnings" => 0
},
"TEST_REQUIRES" => {
"Test::More" => "0.98"
},
"VERSION" => "0.002",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"List::Util" => "1.26",
"Moo" => "2.002005",
"Ref::Util" => "0.010",
"Test::More" => "0.98",
"warnings" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
lib/Math/BSpline/Basis.pm view on Meta::CPAN
package Math::BSpline::Basis;
$Math::BSpline::Basis::VERSION = '0.002';
use 5.014;
use warnings;
# ABSTRACT: B-spline basis functions
use Moo 2.002005;
use List::Util 1.26 ('min');
use Ref::Util 0.010 (
'is_ref',
'is_plain_hashref',
'is_blessed_hashref',
'is_plain_arrayref',
);
around BUILDARGS => sub {
my ($orig, $class, @args) = @_;
my $munged_args;
lib/Math/BSpline/Basis.pm view on Meta::CPAN
or
is_blessed_hashref($args[0])
) {
# I am trying to stay as close to Moo's default behavior
# as I can, this is the only reason why I am supporing
# hashrefs at all. And since Moo apparently accepts
# blessed references, I do the same. However, I make a
# copy, blessed or not.
#
# The ugly test is due to an announced change in the
# behavior of Ref::Util. is_hashref is going to behave
# like is_plain_hashref does now. However, the planned
# replacement called is_any_hashref is not there. So the
# only future-safe implementation seems to be to use
# both explicit functions.
$munged_args = {%{$args[0]}};
}
else {
# We do not understand this and dispatch to Moo (if this
# is what $orig does, the docu is very sparse).
return $class->$orig(@args);
( run in 0.390 second using v1.01-cache-2.11-cpan-4d50c553e7e )