Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 79 lines (65 sloc) 2.189 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
use inc::Module::Install;

version_from 'lib/Net/Twitter/Core.pm';
perl_version_from 'lib/Net/Twitter/Core.pm';

if ( $Module::Install::AUTHOR ) {
    system $^X, "src/build.pl", version, 'src/net-twitter-pod.tt2', 'lib/Net/Twitter.pod';
    system 'pod2text lib/Net/Twitter.pod > README';
}

name 'Net-Twitter';
all_from 'lib/Net/Twitter.pod';

# core
requires 'Carp';
requires 'Digest::SHA';
requires 'File::Spec';
requires 'List::Util';
requires 'Net::Netrc';
requires 'Scalar::Util';

# CPAN
requires 'Crypt::SSLeay' => 0.50;

requires 'Data::Visitor::Callback';
requires 'DateTime' => 0.51;
requires 'DateTime::Format::Strptime'=> 1.09;
requires 'Devel::StackTrace';
requires 'Encode';
requires 'HTML::Entities';
requires 'HTTP::Request::Common';
requires 'JSON::Any' => 1.21;
requires 'LWP::UserAgent' => 2.032;
requires 'Moose' => 0.90;
requires 'Moose::Exporter';
requires 'Moose::Role';
requires 'MooseX::MultiInitArg';
requires 'namespace::autoclean' => 0.09;
requires 'Net::OAuth' => 0.25;
requires 'Scalar::Util';
requires 'Time::HiRes';
requires 'URI' => 1.40;
requires 'URI::Escape';
requires 'Try::Tiny' => 0.03;

test_requires 'Test::More' => 0.88; # for done_testing

# Don't rely on the JSON::Any requirement to pull in a suitable JSON backend.
# The user may already have JSON::Any installed, but since removed all valid
# providers. (Yes, this seems to have happened in the wild.)
sub has_json_xs () {
    my @order = qw/JSON::XS/;
    for my $provider ( @order ) {
        eval "require $provider";
        return 1 unless $@;
    }
    return;
}

if (has_json_xs()) {
  requires 'JSON::XS' => 0;
} else {
  requires 'JSON' => '2.02';
}

no_index directory => 'src';
no_index directory => 'examples';

# resources
homepage 'http://github.com/semifor/Net-Twitter';
bugtracker 'http://rt.cpan.org/Public/Dist/Display.html?Name=Net-Twitter';

install_script 'script/*';

auto_set_repository;
auto_manifest;
auto_install;

WriteAll;
Something went wrong with that request. Please try again.