Acme-Free-API-ChuckNorris
view release on metacpan or search on metacpan
"prereqs" : {
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
"Dispatch::Fu" : "1.06",
"HTTP::Tiny" : "0",
"JSON" : "0",
"Util::H2O::More" : "v0.4.2",
"perl" : "5.010"
}
},
"test" : {
"requires" : {
"Dispatch::Fu" : "1.06",
"HTTP::Tiny" : "0",
"JSON" : "0",
"Test::More" : "0",
"Util::H2O::More" : "v0.4.2"
}
}
},
"release_status" : "stable",
"resources" : {
"homepage" : "https://github.com/oodler577/p5-Acme-Free-API-ChuckNorris",
"repository" : {
"type" : "git",
"url" : "https://github.com/oodler577/p5-Acme-Free-API-ChuckNorris.git",
"web" : "https://github.com/oodler577/p5-Acme-Free-API-ChuckNorris"
}
},
"version" : "1.0.1",
"x_generated_by_perl" : "v5.40.0",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.38",
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
}
---
abstract: 'Perl API client for the Chuck Norris Quote API service, https://api.chucknorris.io.'
author:
- 'oodler <oodler@cpan.org>'
build_requires:
Dispatch::Fu: '1.06'
HTTP::Tiny: '0'
JSON: '0'
Test::More: '0'
Util::H2O::More: v0.4.2
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.032, 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: Acme-Free-API-ChuckNorris
requires:
Dispatch::Fu: '1.06'
HTTP::Tiny: '0'
JSON: '0'
Util::H2O::More: v0.4.2
perl: '5.010'
resources:
homepage: https://github.com/oodler577/p5-Acme-Free-API-ChuckNorris
repository: https://github.com/oodler577/p5-Acme-Free-API-ChuckNorris.git
version: 1.0.1
x_generated_by_perl: v5.40.0
x_serialization_backend: 'YAML::Tiny version 1.74'
x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
Makefile.PL view on Meta::CPAN
"DISTNAME" => "Acme-Free-API-ChuckNorris",
"EXE_FILES" => [
"bin/cnq"
],
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.010",
"NAME" => "Acme::Free::API::ChuckNorris",
"PREREQ_PM" => {
"Dispatch::Fu" => "1.06",
"HTTP::Tiny" => 0,
"JSON" => 0,
"Util::H2O::More" => "0.4.2"
},
"TEST_REQUIRES" => {
"Dispatch::Fu" => "1.06",
"HTTP::Tiny" => 0,
"JSON" => 0,
"Test::More" => 0,
"Util::H2O::More" => "0.4.2"
},
"VERSION" => "1.0.1",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Dispatch::Fu" => "1.06",
"HTTP::Tiny" => 0,
"JSON" => 0,
"Test::More" => 0,
"Util::H2O::More" => "0.4.2"
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
name = Acme-Free-API-ChuckNorris
license = Perl_5
author = oodler <oodler@cpan.org>
copyright_holder = oodler
copyright_year = 2024
[@Basic]
[VersionFromModule]
[MetaJSON]
[GithubMeta]
homesite = https://github.com/oodler577/p5-Acme-Free-API-ChuckNorris.git
[KwaliteeTests]
[CheckChangeLog]
[Prereqs]
perl = >= 5.010
Util::H2O::More = >= 0.4.2
Dispatch::Fu = >= 1.06
HTTP::Tiny = 0
JSON = 0
[Prereqs / TestPrereqs]
-phase = test
Test::More = 0
Util::H2O::More = >= 0.4.2
Dispatch::Fu = >= 1.06
HTTP::Tiny = 0
JSON = 0
[PruneCruft]
[PruneFiles]
filename = .git
filename = releases
[ExecDir]
dir = bin
lib/Acme/Free/API/ChuckNorris.pm view on Meta::CPAN
package Acme::Free::API::ChuckNorris;
use v5.10;
use strict;
our $VERSION = '1.0.1';
use HTTP::Tiny;
use JSON qw/decode_json/;
use Util::H2O::More qw/baptise d2o h2o/;
use constant {
BASEURL => "https://api.chucknorris.io/jokes",
};
sub new {
my $pkg = shift;
my $self = baptise { ua => HTTP::Tiny->new }, $pkg;
return $self;
( run in 1.401 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )