API-Assembla
view release on metacpan or search on metacpan
Revision history for Perl extension API::Assembla
0.03
- Fix tests, which are useless unless you are me.
0.01
- First release
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively convey
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
"runtime" : {
"requires" : {
"DateTime::Format::ISO8601" : 0,
"LWP::Protocol::https" : 0,
"LWP::UserAgent" : 0,
"Moose" : 0,
"URI" : 0,
"XML::XPath" : 0
}
},
"test" : {
"requires" : {
"Test::More" : 0
}
}
},
"release_status" : "stable",
"resources" : {
"repository" : {
"type" : "git",
"url" : "https://github.com/gphat/api-assembla"
Makefile.PL view on Meta::CPAN
'NAME' => 'API::Assembla',
'PREREQ_PM' => {
'DateTime::Format::ISO8601' => '0',
'LWP::Protocol::https' => '0',
'LWP::UserAgent' => '0',
'Moose' => '0',
'URI' => '0',
'XML::XPath' => '0'
},
'VERSION' => '0.03',
'test' => {
'TESTS' => 't/*.t'
}
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
my $pp = $WriteMakefileArgs{PREREQ_PM};
for my $mod ( keys %$br ) {
if ( exists $pp->{$mod} ) {
t/release-pod-syntax.t view on Meta::CPAN
#!perl
BEGIN {
unless ($ENV{RELEASE_TESTING}) {
require Test::More;
Test::More::plan(skip_all => 'these tests are for release candidate testing');
}
}
use Test::More;
eval "use Test::Pod 1.41";
plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
all_pod_files_ok();
t/release-synopsis.t view on Meta::CPAN
#!perl
BEGIN {
unless ($ENV{RELEASE_TESTING}) {
require Test::More;
Test::More::plan(skip_all => 'these tests are for release candidate testing');
}
}
use Test::More;
eval "use Test::Synopsis";
plan skip_all => "Test::Synopsis required for testing synopses"
if $@;
all_synopsis_ok('lib');
use Test::More;
use strict;
if(!$ENV{'TEST_ASSEMBLA_PASS'}) {
plan skip_all => 'This test is useless unless you are the author';
}
use API::Assembla;
my $api = API::Assembla->new(
username => 'iirobot',
password => $ENV{'TEST_ASSEMBLA_PASS'}
);
my $data = $api->get_spaces;
cmp_ok($space->created_at->ymd, 'eq', '2011-06-22', 'space created_at');
}
{
my $space = $api->get_space('dhHT8ENtKr4k_1eJe4gwI3');
cmp_ok($space->name, 'eq', 'PRG', 'space name');
cmp_ok($space->id, 'eq', 'dhHT8ENtKr4k_1eJe4gwI3', 'space id');
cmp_ok($space->created_at->ymd, 'eq', '2011-06-22', 'space created_at');
}
done_testing;
t/tickets.t view on Meta::CPAN
use Test::More;
use strict;
if(!$ENV{'TEST_ASSEMBLA_PASS'}) {
plan skip_all => 'This test is useless unless you are the author';
}
use API::Assembla;
my $api = API::Assembla->new(
username => 'iirobot',
password => $ENV{'TEST_ASSEMBLA_PASS'}
);
my $tickets = $api->get_tickets('dhHT8ENtKr4k_1eJe4gwI3');
cmp_ok(scalar(keys($tickets)), '==', 3, '3 tickets');
{
my $ticket = $tickets->{4317338};
ok($ticket->description =~ /make it/, 'description');
cmp_ok($ticket->number, '==', 3, 'number');
cmp_ok($ticket->priority, '==', 3, 'priority');
cmp_ok($ticket->status_name, 'eq', 'New', 'status_name');
cmp_ok($ticket->summary, 'eq', 'test ticketing', 'summary');
}
{
my $ticket = $api->get_ticket('dhHT8ENtKr4k_1eJe4gwI3', 3);
ok($ticket->description =~ /make it/, 'description');
cmp_ok($ticket->number, '==', 3, 'number');
cmp_ok($ticket->priority, '==', 3, 'priority');
cmp_ok($ticket->status_name, 'eq', 'New', 'status_name');
cmp_ok($ticket->summary, 'eq', 'test ticketing', 'summary');
}
done_testing;
( run in 1.087 second using v1.01-cache-2.11-cpan-87723dcf8b7 )