$result_object->path
}
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Path::IsDev::Role::HeuristicSet",
"interface":"role"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <kentnl@cpan.o
cludes>
Returns an exclusion if any of C<excludes_files> exists, and are files.
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Path::IsDev::NegativeHeuristic::IsDev::IgnoreFile",
"interface":"s
euristic",
"Path::IsDev::Role::Matcher::Child::Exists::Any::File"
]
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is co
tches>
Matches if any of the files in C<files> exist as children of the C<path>
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Path::IsDev::Heuristic::Tool::MakeMaker",
"interface":"single_clas
euristic",
"Path::IsDev::Role::Matcher::Child::Exists::Any::File"
]
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is co
tches>
Matches if any of the files in C<files> exist as children of the C<path>
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Path::IsDev::Heuristic::Tool::Dzil",
"interface":"single_class",
euristic",
"Path::IsDev::Role::Matcher::Child::Exists::Any::File"
]
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is co
ha1> internals.
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Git::Wrapper::Plus::Ref",
"interface":"class",
"inherits":"Moo::Object"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <ke
C<git>
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Git::Wrapper::Plus::Ref::Tag",
"interface":"class",
"inherits":"Git::Wrapper::Plus::Ref"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fr
, so you'll only get the "default".
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Path::IsDev",
"interface":"exporter"
}
=end MetaPOD::JSON
=head1 UNDERSTANDING AND DEBUGGING THIS MODULE
Un
=0] + ::Tool::ModuleBuild => 0 : Build.PL does not exist
[Path::IsDev=0] + ::META => 0 : META.json does not exist
[Path::IsDev=0] + ::META => 1 : META.yml exists
[Path::IsDev=0] + ::META =
|Path::IsDev::Heuristic::META >> - C<META.yml>/C<META.json>
=item * L<< C<MYMETA>|Path::IsDev::Heuristic::MYMETA >> - C<MYMETA.yml>/C<MYMETA.json>
=item * L<< C<Makefile>|Path::IsDev::Heuristic::Mak
N
version 0.002001
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Net::Travis::API",
"interface":"class",
"inherits":"Moo::Object"
}
=end MetaPOD::JSON
=head1 DEVELOPMENT
This code is h
ife::Cmd::Search;
use Chef::Knife::Cmd::DataBag;
use Shell::Carapace;
use String::ShellQuote;
use JSON::MaybeXS;
our $VERSION = "0.15";
=head1 NAME
Chef::Knife::Cmd - A small wrapper around the Che
hods return the output of the cmd as a hashref when '--format json' is used
my $hashref = $knife->node->show('mynode', format => 'json');
# =>
# {
# name => "mynode",
w', default => sub { 0 });
has shell => (is => 'lazy');
has format => (is => 'rw');
has _json_flag => (is => 'rw');
has callback => (is => 'rw');
has output => (is => 'rw');
has clien
thor::KENTNL');
$bundle->configure;
my @stopwords = (
qw(
ci api travis api API GitHub URI JSON URIs
)
);
for my $var (@stopwords) {
$bundle->add_or_append_policy_field( 'Documentation::P
path that matches a C<realpath> of a L<< C<File::HomeDir> path|File::HomeDir >>
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Path::IsDev::NegativeHeuristic::HomeDir",
"interface":"single_clas
gativeHeuristic",
"Path::IsDev::Role::Matcher::FullPath::Is::Any"
]
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is co
nds 'HTTP::Tiny::UA::Response';
has 'json' => (
is => ro =>,
lazy => 1,
builder => sub {
require JSON::MaybeXS;
return JSON::MaybeXS->new();
},
);
sub con
e::FB_CROAK );
}
sub content_json {
my ( $self, $force ) = @_;
my ($has_force) = ( @_ > 1 );
my %whitelist = ( 'application/json' => 1 );
return unless $has_force or exists
next unless $param =~ /\Acharset=(.+)\z/msx;
$charset = $1;
}
}
return $self->json->utf8(0)->decode( $self->decoded_content($charset) );
}
no Moo;
1;
__END__
=pod
=encoding UT
Y = 'cpan:KONOBI'; # AUTHORITY
use Moose qw( has );
use LWP::UserAgent;
use URI;
use JSON::MaybeXS qw( decode_json );
use Net::API::RPX::Exception::Usage;
use Net::API::RPX::Exception::Network;
use N
= $self->ua->post(
$uri => {
%{$opts},
apiKey => $self->api_key,
format => 'json',
},
);
if ( !$res->is_success ) {
Net::API::RPX::Exception::Network->throw(
i
ua_result => $res,
status_line => $res->status_line,
);
}
my $result = decode_json( $res->content );
if ( $result->{'stat'} ne 'ok' ) {
my $err = $result->{'err'};
Net::A
{ return 'application/vnd.travis-ci.2+json' },
);
has 'authtokens' => (
is => rw =>,
predicate => 'has_authtokens',
);
has 'json' => (
is => ro =>,
lazy
=> 1,
builder => sub {
require JSON::MaybeXS;
return JSON::MaybeXS->new();
},
);
sub _add_auth_tokens {
my ( $self, $options ) = @_;
$options = {} if not defined $options;
if ( exis
require Net::Travis::API::UA::Response;
return Net::Travis::API::UA::Response->new(
json => $self->json,
%{$result},
);
}
no Moo;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Ne
$result->status;
return if not length $result->content;
return unless my $json = $result->content_json;
return $json->{access_token};
}
sub get_authorised_ua_for {
my ( $self, $gh_
et_authorized_ua_for( <githubtoken> ) ) {
pp ( $ua->get('/users')->content_json );
}
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Net::Travis::API::Auth::GitHub",
"inherits":"Moo::
Object",
"does":"Net::Travis::API::Role::Client",
"interface":"class"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copy
) = $role->_supported_versions;
=begin MetaPOD::JSON v1.1.0
{
"namespace": "MetaPOD::Role::Format",
"interface": "role"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
ll real code.
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Path::IsDev::Object",
"interface":"class",
"inherits":"Class::Tiny::Object"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <
d2 C<reasons>
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Path::IsDev::Result",
"interface":"class",
"inherits":"Class::Tiny::Object"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <
pecify an alternative set in code.
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Path::FindDev",
"interface":"exporter"
}
=end MetaPOD::JSON
=head1 EXAMPLE USE-CASES
Have you ever found you
e::Client;
our $VERSION = '0.002001';
# ABSTRACT: Anything that fetches from Travis and returns JSON data
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
use Moo::Role qw( has );
has
TF-8
=head1 NAME
Net::Travis::API::Role::Client - Anything that fetches from Travis and returns JSON data
=head1 VERSION
version 0.002001
=head1 ATTRIBUTES
=head2 C<http_engine>
A L<< C<Net::Tr
1.0
{
"namespace":"Net::Travis::API::Role::Client",
"interface":"role"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is co