Pithub

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Exporter" : "0",
            "ExtUtils::MakeMaker" : "0",
            "File::Spec" : "0",
            "FindBin" : "0",
            "HTTP::Response" : "0",
            "Import::Into" : "0",
            "MIME::Base64" : "0",
            "Path::Tiny" : "0",
            "Scalar::Util" : "0",
            "Test::Builder" : "0",
            "Test::Differences" : "0",
            "Test::Exception" : "0",
            "Test::More" : "0",
            "Test::Most" : "0",
            "Test::Needs" : "0",
            "lib" : "0",
            "perl" : "5.013010"
         }
      }
   },
   "release_status" : "stable",

META.yml  view on Meta::CPAN

  Exporter: '0'
  ExtUtils::MakeMaker: '0'
  File::Spec: '0'
  FindBin: '0'
  HTTP::Response: '0'
  Import::Into: '0'
  MIME::Base64: '0'
  Path::Tiny: '0'
  Scalar::Util: '0'
  Test::Builder: '0'
  Test::Differences: '0'
  Test::Exception: '0'
  Test::More: '0'
  Test::Most: '0'
  Test::Needs: '0'
  lib: '0'
  perl: '5.013010'
configure_requires:
  ExtUtils::MakeMaker: '0'
  perl: '5.006'
dynamic_config: 0

Makefile.PL  view on Meta::CPAN

    "Exporter" => 0,
    "ExtUtils::MakeMaker" => 0,
    "File::Spec" => 0,
    "FindBin" => 0,
    "HTTP::Response" => 0,
    "Import::Into" => 0,
    "MIME::Base64" => 0,
    "Path::Tiny" => 0,
    "Scalar::Util" => 0,
    "Test::Builder" => 0,
    "Test::Differences" => 0,
    "Test::Exception" => 0,
    "Test::More" => 0,
    "Test::Most" => 0,
    "Test::Needs" => 0,
    "lib" => 0
  },
  "VERSION" => "0.01043",
  "test" => {
    "TESTS" => "t/*.t t/live/*.t t/live/repos/actions/*.t"
  }

Makefile.PL  view on Meta::CPAN

  "HTTP::Response" => 0,
  "Import::Into" => 0,
  "JSON::MaybeXS" => 0,
  "LWP::UserAgent" => 0,
  "MIME::Base64" => 0,
  "Moo" => 0,
  "Moo::Role" => 0,
  "Path::Tiny" => 0,
  "Scalar::Util" => 0,
  "Test::Builder" => 0,
  "Test::Differences" => 0,
  "Test::Exception" => 0,
  "Test::More" => 0,
  "Test::Most" => 0,
  "Test::Needs" => 0,
  "URI" => 0,
  "lib" => 0,
  "strict" => 0,
  "warnings" => 0
);

cpanfile  view on Meta::CPAN

  requires "Exporter" => "0";
  requires "ExtUtils::MakeMaker" => "0";
  requires "File::Spec" => "0";
  requires "FindBin" => "0";
  requires "HTTP::Response" => "0";
  requires "Import::Into" => "0";
  requires "MIME::Base64" => "0";
  requires "Path::Tiny" => "0";
  requires "Scalar::Util" => "0";
  requires "Test::Builder" => "0";
  requires "Test::Differences" => "0";
  requires "Test::Exception" => "0";
  requires "Test::More" => "0";
  requires "Test::Most" => "0";
  requires "Test::Needs" => "0";
  requires "lib" => "0";
  requires "perl" => "5.013010";
};

on 'test' => sub {
  recommends "CPAN::Meta" => "2.120900";

t/00-report-prereqs.dd  view on Meta::CPAN

                                   'Exporter' => '0',
                                   'ExtUtils::MakeMaker' => '0',
                                   'File::Spec' => '0',
                                   'FindBin' => '0',
                                   'HTTP::Response' => '0',
                                   'Import::Into' => '0',
                                   'MIME::Base64' => '0',
                                   'Path::Tiny' => '0',
                                   'Scalar::Util' => '0',
                                   'Test::Builder' => '0',
                                   'Test::Differences' => '0',
                                   'Test::Exception' => '0',
                                   'Test::More' => '0',
                                   'Test::Most' => '0',
                                   'Test::Needs' => '0',
                                   'lib' => '0',
                                   'perl' => '5.013010'
                                 }
                 }
     };
  $x;

t/encoding.t  view on Meta::CPAN

#!/usr/bin/env perl

use strict;
use warnings;

use JSON::MaybeXS     qw( JSON );
use Pithub            ();
use Pithub::Users     ();
use Test::Differences qw( eq_or_diff );
use Test::More import => [qw( done_testing is isa_ok like ok )];

use lib 't/lib';
use Pithub::Test::Factory ();

{
    my $obj = Pithub::Test::Factory->create('Pithub::Users');
    ok $obj->utf8, 'enabled en/decoding json';
    $obj->ua->add_response('users/rwstauner.GET');

t/lib/Pithub/Test.pm  view on Meta::CPAN

package Pithub::Test;

use strict;
use warnings;

use Import::Into;
use Test::Builder     ();
use Test::Differences qw( eq_or_diff );
use Test::More import => [qw( diag is )];

BEGIN {
    ## no critic (ClassHierarchies::ProhibitExplicitISA, Modules::ProhibitAutomaticExportation)
    require Exporter;
    our @ISA    = qw(Exporter);
    our @EXPORT = qw(uri_is);
}

sub import {

t/live/basic.t  view on Meta::CPAN

#!perl

use strict;
use warnings;

use Pithub            ();
use Test::Differences qw( eq_or_diff );
use Test::More import => [qw( done_testing is like ok skip $TODO )];

SKIP: {
    skip 'Set PITHUB_TEST_LIVE to true to run these tests', 1
        unless $ENV{PITHUB_TEST_LIVE};

    my $p      = Pithub->new;
    my $result = $p->request(
        method => 'GET',
        path   => '/'

t/live/repos.t  view on Meta::CPAN

#!perl

use strict;
use warnings;

use Pithub            ();
use Test::Differences qw( eq_or_diff );
use Test::More import => [qw( done_testing is isnt like ok skip subtest )];

use lib 't/lib';
use Pithub::Test::Factory ();

# These tests may break very easily because data on Github can and will change, of course.
# And they also might fail once the ratelimit has been reached.
SKIP: {
    skip 'Set PITHUB_TEST_LIVE_DATA to true to run these tests', 1
        unless $ENV{PITHUB_TEST_LIVE_DATA};

t/orgs.t  view on Meta::CPAN

#!perl

use strict;
use warnings;

use JSON::MaybeXS     qw( JSON );
use MIME::Base64      ();
use Pithub::Orgs      ();
use Test::Differences qw( eq_or_diff );
use Test::Exception;    # throws_ok
use Test::More import => [qw( done_testing fail is isa_ok ok )];

use lib 't/lib';
use Pithub::Test::Factory ();

# Pithub::Orgs->get
{
    my $obj = Pithub::Test::Factory->create(
        'Pithub::Orgs', user => 'foo',

t/pull_requests.t  view on Meta::CPAN

#!perl

use strict;
use warnings;

use JSON::MaybeXS        qw( JSON );
use Pithub::PullRequests ();
use Test::Differences    qw( eq_or_diff );
use Test::Exception;    # throws_ok
use Test::More import => [qw( done_testing is isa_ok ok )];

use lib 't/lib';
use Pithub::Test::Factory ();

# Pithub::PullRequests->commits
{
    my $obj = Pithub::Test::Factory->create(
        'Pithub::PullRequests',

t/search.t  view on Meta::CPAN

#!perl

use strict;
use warnings;

use Test::Differences qw( eq_or_diff );
use Test::Exception;    # throws_ok
use Test::More import => [qw( done_testing is isa_ok )];

use lib 't/lib';
use Pithub::Search        ();
use Pithub::Test::Factory ();

# Pithub::Search->email
{
    my $obj = Pithub::Test::Factory->create('Pithub::Search');

t/users.t  view on Meta::CPAN

#!perl

use strict;
use warnings;

use JSON::MaybeXS     qw( JSON );
use Pithub::Users     ();
use Test::Differences qw( eq_or_diff );
use Test::Exception;    # throws_ok
use Test::More import => [qw( done_testing is isa_ok ok )];

use lib 't/lib';
use Pithub::Test::Factory ();

# Pithub::Users->get
{
    my $obj = Pithub::Test::Factory->create('Pithub::Users');
    $obj->ua->add_response('users/plu.GET');



( run in 1.149 second using v1.01-cache-2.11-cpan-131fc08a04b )