BZ-Client
view release on metacpan or search on metacpan
"license" => "perl",
"module_name" => "BZ::Client",
"recursive_test_files" => 1,
"requires" => {
"DateTime::Format::ISO8601" => 0,
"DateTime::Format::Strptime" => 0,
"DateTime::TimeZone" => 0,
"Encode" => 0,
"File::Basename" => 0,
"File::Spec" => 0,
"HTTP::CookieJar" => 0,
"HTTP::Tiny" => 0,
"MIME::Base64" => 0,
"URI" => 0,
"XML::Parser" => 0,
"XML::Writer" => 0,
"parent" => 0,
"perl" => "v5.8.0",
"strict" => 0,
"warnings" => 0
},
2.0_001 Thursday Sep 17 10:42:00 2015
- let's make this thing sane....
- lots and lots of pod improvements
- wantarray sensitivity all around the place
- Bug.pm: add fields() function
- XMLRPC.pm: dispatch table used rather than by if/elsif/else
- XMLRPC.pm: replace 'use constants' and make singleton-ish
- XMLRPC.pm: 'use' rather than 'require'
- XMLRPC.pm: use HTTP::Tiny instead of LWP
- Client.pm: use HTTP::CookieJar instead of HTTP::Cookies
- Client.pm: make logout() work better
- Bug.pm: add update_see_also() and update_tags() functions
1.072 Wednesday Sep 09 23:44:00 2015
- Add Users.pm
- Pod in various places
1.071 Monday Sep 07 13:21:00 2015
- Improve/fix logout() and login() functions
- t/write-config.pl will help you write a config file to run tests against a real bugzilla server
}
},
"runtime" : {
"requires" : {
"DateTime::Format::ISO8601" : "0",
"DateTime::Format::Strptime" : "0",
"DateTime::TimeZone" : "0",
"Encode" : "0",
"File::Basename" : "0",
"File::Spec" : "0",
"HTTP::CookieJar" : "0",
"HTTP::Tiny" : "0",
"MIME::Base64" : "0",
"URI" : "0",
"XML::Parser" : "0",
"XML::Writer" : "0",
"parent" : "0",
"perl" : "v5.8.0",
"strict" : "0",
"warnings" : "0"
}
directory:
- eg
- t
requires:
DateTime::Format::ISO8601: '0'
DateTime::Format::Strptime: '0'
DateTime::TimeZone: '0'
Encode: '0'
File::Basename: '0'
File::Spec: '0'
HTTP::CookieJar: '0'
HTTP::Tiny: '0'
MIME::Base64: '0'
URI: '0'
XML::Parser: '0'
XML::Writer: '0'
parent: '0'
perl: v5.8.0
strict: '0'
warnings: '0'
resources:
Makefile.PL view on Meta::CPAN
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.008000",
"NAME" => "BZ::Client",
"PREREQ_PM" => {
"DateTime::Format::ISO8601" => 0,
"DateTime::Format::Strptime" => 0,
"DateTime::TimeZone" => 0,
"Encode" => 0,
"File::Basename" => 0,
"File::Spec" => 0,
"HTTP::CookieJar" => 0,
"HTTP::Tiny" => 0,
"MIME::Base64" => 0,
"URI" => 0,
"XML::Parser" => 0,
"XML::Writer" => 0,
"parent" => 0,
"strict" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
Makefile.PL view on Meta::CPAN
"Clone" => 0,
"Data::Dumper" => 0,
"DateTime" => 0,
"DateTime::Format::ISO8601" => 0,
"DateTime::Format::Strptime" => 0,
"DateTime::TimeZone" => 0,
"Encode" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Basename" => 0,
"File::Spec" => 0,
"HTTP::CookieJar" => 0,
"HTTP::Tiny" => 0,
"IO::Socket::SSL" => 0,
"MIME::Base64" => 0,
"Module::Build" => "0.28",
"Test::More" => 0,
"Test::RequiresInternet" => 0,
"Text::Password::Pronounceable" => 0,
"URI" => 0,
"XML::Parser" => 0,
"XML::Writer" => 0,
requires "perl", "5.8.0";
requires "strict";
requires "warnings";
requires "parent";
requires "XML::Parser";
requires "XML::Writer";
requires "HTTP::CookieJar";
requires "HTTP::Tiny";
requires "File::Basename";
requires "File::Spec";
requires "Encode";
requires "URI";
requires "DateTime::TimeZone";
requires "DateTime::Format::Strptime";
requires "DateTime::Format::ISO8601";
requires "MIME::Base64";
lib/BZ/Client.pm view on Meta::CPAN
# PODNAME: BZ::Client
use strict;
use warnings 'all';
package BZ::Client;
$BZ::Client::VERSION = '4.4004';
use BZ::Client::XMLRPC;
use BZ::Client::Exception;
use HTTP::CookieJar;
sub new {
my $class = shift;
my $self = {@_};
bless( $self, ref($class) || $class );
return $self
}
sub url {
my $self = shift;
lib/BZ/Client.pm view on Meta::CPAN
# FIXME username and password can be provided to any function and it will be ok
my $user = $self->user()
or $self->error('The Bugzilla servers user name is not set.');
my $password = $self->password()
or $self->error('The Bugzilla servers password is not set.');
$params{login} = $user;
$params{password} = $password;
$self->log( 'debug', 'BZ::Client::login, going to log in with username and password' );
my $cookies = HTTP::CookieJar->new();
my $response = $self->_api_call( 'User.login', \%params, { cookies => $cookies } );
if ( not defined( $response->{'id'} )
or $response->{'id'} !~ m/^\d+$/s )
{
$self->error('Server did not return a valid user ID.');
}
$self->log( 'debug', 'BZ::Client::login, got ID ' . $response->{'id'} );
if ( my $token = $response->{'token'} ) { # for 4.4.3 onward
$self->{'token'} = $token;
$self->log( 'debug', 'BZ::Client::login, got token ' . $token );
t/00-report-prereqs.dd view on Meta::CPAN
}
},
'runtime' => {
'requires' => {
'DateTime::Format::ISO8601' => '0',
'DateTime::Format::Strptime' => '0',
'DateTime::TimeZone' => '0',
'Encode' => '0',
'File::Basename' => '0',
'File::Spec' => '0',
'HTTP::CookieJar' => '0',
'HTTP::Tiny' => '0',
'MIME::Base64' => '0',
'URI' => '0',
'XML::Parser' => '0',
'XML::Writer' => '0',
'parent' => '0',
'perl' => 'v5.8.0',
'strict' => '0',
'warnings' => '0'
}
( run in 0.870 second using v1.01-cache-2.11-cpan-e9199f4ba4c )