[libjira-client-perl] 01/05: Imported Upstream version 0.41
Angel Abad
angel at moszumanska.debian.org
Sun Apr 20 17:12:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
angel pushed a commit to branch master
in repository libjira-client-perl.
commit d1a7278c9e2f5a1d303eadb69f9f98f2fa576048
Author: Angel Abad <angelabad at gmail.com>
Date: Sun Apr 20 18:54:06 2014 +0200
Imported Upstream version 0.41
---
Changes | 260 ++++++++++++++++++++++++++-----------------------
LICENSE | 6 +-
META.yml | 4 +-
Makefile.PL | 36 ++++---
examples/jiraclient.pl | 2 +-
lib/JIRA/Client.pm | 55 ++++++-----
t/release-kwalitee.t | 9 +-
7 files changed, 196 insertions(+), 176 deletions(-)
diff --git a/Changes b/Changes
index 019aa39..400bb9f 100644
--- a/Changes
+++ b/Changes
@@ -1,233 +1,245 @@
Revision history for JIRA-Client.
+0.41 2014-04-01 21:34:37 America/Sao_Paulo
+
+ [New features]
+
+ - New method filter_issues_unsorted.
+
0.40 2012-08-02 08:21:52 America/Sao_Paulo
- Fix constructor URL munging by applying a patch from Slaven
- Rezić. Thanks again!
+ - Fix constructor URL munging by applying a patch from Slaven
+ Rezić. Thanks again!
0.39 2012-07-31 09:25:36 America/Sao_Paulo
- Revert the constructor change of 0.38 because it broke
- invokations when JIRA server's base URL had a path component.
+ - Revert the constructor change of 0.38 because it broke
+ invokations when JIRA server's base URL had a path component.
- Implemented an alternative invokation style based on named
- arguments passed via a hash-ref. This was suggested by Slaven
- Rezić. Thanks!
+ - Implemented an alternative invokation style based on named
+ arguments passed via a hash-ref. This was suggested by Slaven
+ Rezić. Thanks!
0.38 2012-07-13 19:50:24 America/Sao_Paulo
- The constructor now admits non-base URLs to non-standard WSDL
- descriptors. This was suggested by Elena Bolshakova
- <elena at cpan.org>. Thanks!
+ - The constructor now admits non-base URLs to non-standard WSDL
+ descriptors. This was suggested by Elena Bolshakova
+ <elena at cpan.org>. Thanks!
- Add examples/jira-filter.pl.
+ - Add examples/jira-filter.pl.
- Detects some weird connection errors.
+ - Detects some weird connection errors.
0.37 2012-05-01 18:48:03 America/Sao_Paulo
- Use Data::Util to make for cleaner code.
+ - Use Data::Util to make for cleaner code.
0.36 2012-04-21 20:55:58 America/Sao_Paulo
- Moved from Google Code to GitHub.
+ - Moved from Google Code to GitHub.
0.35 2012-04-12 13:14:13 America/Sao_Paulo
- Add method filter_issues.
+ - Add method filter_issues.
0.34 2012-02-22
- Distribution converted to use Dist::Zilla.
- Online tests are now driven by a configuration file.
+ - Distribution converted to use Dist::Zilla.
+ Online tests are now driven by a configuration file.
0.33 2012-02-20
- Make create_issue correctly support sub-task issue types. This
- was suggested by Stephen Marquard via
- https://rt.cpan.org/Ticket/Display.html?id=75157.
+ - Make create_issue correctly support sub-task issue types. This
+ was suggested by Stephen Marquard via
+ https://rt.cpan.org/Ticket/Display.html?id=75157.
0.32 2011-12-05
- [rt72470] Fix create_issue and progress_workflow_action_safely parameter conversions.
- [rt72667] Pass project key to get_security_levels.
+ - [rt72470] Fix create_issue and progress_workflow_action_safely parameter conversions.
+
+ - [rt72667] Pass project key to get_security_levels.
0.31 2011-11-19
- Accept both names for JIRA fields that must be named one way
- to be set and are named otherwise when read. This is due to
- https://jira.atlassian.com/browse/JRA-12300 and was reported
- by Dan Baber via
- https://rt.cpan.org/Ticket/Display.html?id=72470.
+ - Accept both names for JIRA fields that must be named one way
+ to be set and are named otherwise when read. This is due to
+ https://jira.atlassian.com/browse/JRA-12300 and was reported
+ by Dan Baber via
+ https://rt.cpan.org/Ticket/Display.html?id=72470.
0.30 2011-09-26
- Cast duedate's field to a "date" SOAP::Data type. This is
- required by JIRA 4.4.
+ - Cast duedate's field to a "date" SOAP::Data type. This is
+ required by JIRA 4.4.
0.29 2011-09-13
- Support new methods in the JIRA 4.4 SOAP API.
+ - Support new methods in the JIRA 4.4 SOAP API.
+
+0.28 2011-05-09
-0.28 2011-05-09
+ - JIRA::Client->new passes extra arguments to the underlying
+ SOAP::Lite object. This was suggested by Nicholas J Humfrey
+ <njh AT cpan DOT org>.
- JIRA::Client->new passes extra arguments to the underlying
- SOAP::Lite object. This was suggested by Nicholas J Humfrey
- <njh AT cpan DOT org>.
+0.27 2011-03-05
-0.27 2011-03-05
+ - Properly casts RemoteProjectRole objects in several
+ methods. This was suggested by Philippe MARTIN.
- Properly casts RemoteProjectRole objects in several
- methods. This was suggested by Philippe MARTIN.
+0.26 2010-12-21
-0.26 2010-12-21
+ - Implements some magic to make it easier to specify Cascading
+ field values in the create_issue and update_issue
+ methods. This was suggested by Keith Hackworth.
- Implements some magic to make it easier to specify Cascading
- field values in the create_issue and update_issue
- methods. This was suggested by Keith Hackworth.
+0.25 2010-09-11
-0.25 2010-09-11
+ - Implements method get_statuses, courtesy of michael AT
+ riceclan.org.
- Implements method get_statuses, courtesy of michael AT
- riceclan.org.
+ - Fixes a problem in _convert_resolution, courtesy of KBeal AT
+ crosscountry-auto.com.
- Fixes a problem in _convert_resolution, courtesy of KBeal AT
- crosscountry-auto.com.
-
- Fixes a typo in examples/jiraclient.pl, courtesy of cosimo AT
- cpan.org.
+ - Fixes a typo in examples/jiraclient.pl, courtesy of cosimo AT
+ cpan.org.
0.24 2009-12-24
- Corrects one typo suggested by Andrey Belous and denies the
- attachment of empty files, as suggested by Jon Connell.
+ - Corrects one typo suggested by Andrey Belous and denies the
+ attachment of empty files, as suggested by Jon Connell.
0.23 2009-12-12
- Corrects the SOAP serialization of arrays to enable the use of
- the add*AttachmentsToIssue API methods. Thanks to Jon Connell
- who reported the problem.
+ - Corrects the SOAP serialization of arrays to enable the use of
+ the add*AttachmentsToIssue API methods. Thanks to Jon Connell
+ who reported the problem.
- Implements the methods attach_files_to_issue and
- attach_strings_to_issue to make it easier to attach things.
+ - Implements the methods attach_files_to_issue and
+ attach_strings_to_issue to make it easier to attach things.
- The method create_issue now accepts an optional Security Level
- argument. Thanks to Lance Selvidge for the suggestion.
+ - The method create_issue now accepts an optional Security Level
+ argument. Thanks to Lance Selvidge for the suggestion.
0.22 2009-11-30
- Corrects a bug
- [http://rt.cpan.org/Ticket/Display.html?id=52076] that
- affected the methods progressWorkflowAction and updateIssue.
+ - Corrects a bug
+ [http://rt.cpan.org/Ticket/Display.html?id=52076] that
+ affected the methods progressWorkflowAction and updateIssue.
0.21 2009-11-21
- Adds update_issue method.
- Adds lots of implicit conversions and document them better.
- Can set duedate field with a DateTime object.
- Adds a examples directory with a single example so far.
- Adds resolution conversion from names.
+ - Adds update_issue method.
+
+ - Adds lots of implicit conversions and document them better.
+
+ - Can set duedate field with a DateTime object.
+
+ - Adds a examples directory with a single example so far.
+
+ - Adds resolution conversion from names.
0.20 2009-11-20
- Converts the 'duedate' field from the ISO format (YYYY-MM-DD)
- into the JIRA required format (d/MMM/yy) in create_issue and
- progress_workflow_action_safely. This is necessary because
- while JIRA requires the later, it gives the former in
- getIssue. Thanks to Andrey Belous for alerting me about this.
+ - Converts the 'duedate' field from the ISO format (YYYY-MM-DD)
+ into the JIRA required format (d/MMM/yy) in create_issue and
+ progress_workflow_action_safely. This is necessary because
+ while JIRA requires the later, it gives the former in
+ getIssue. Thanks to Andrey Belous for alerting me about this.
- Adds a perlcritic test and placates some of its criticisms.
+ - Adds a perlcritic test and placates some of its criticisms.
0.19 2009-11-06
- Updates the default conversions for the new JIRA 4.0 methods.
- Thanks to Mário Moreira for alerting me about this.
+ - Updates the default conversions for the new JIRA 4.0 methods.
+ Thanks to Mário Moreira for alerting me about this.
0.18 2009-10-24
- Adding kwalitee test. (See
- http://cpants.perl.org/dist/overview/JIRA-Client)
+ - Adding kwalitee test. (See
+ http://cpants.perl.org/dist/overview/JIRA-Client)
-0.17 2009-10-18
+0.17 2009-10-18
- Implements the method get_issue_custom_field_values, to more
- easily grok the custom field values from an issue.
+ - Implements the method get_issue_custom_field_values, to more
+ easily grok the custom field values from an issue.
- Refactors some code in a bunch of helper functions.
+ - Refactors some code in a bunch of helper functions.
- Implements many more online tests. There are 39 now.
+ - Implements many more online tests. There are 39 now.
- Makes the POD tests disabled by default. They are meant to be
- used by the author only.
+ - Makes the POD tests disabled by default. They are meant to be
+ used by the author only.
-0.16 2009-10-04
+0.16 2009-10-04
- Implements the method get_favourite_filters, which caches the
- user's favourite filters.
+ - Implements the method get_favourite_filters, which caches the
+ user's favourite filters.
- Casts automatically filter names into filter id in the
- arguments for getIssueCountForFilter, getIssuesFromFilter, and
- getIssuesFromFilterWithLimit.
+ - Casts automatically filter names into filter id in the
+ arguments for getIssueCountForFilter, getIssuesFromFilter, and
+ getIssuesFromFilterWithLimit.
- These changes were inspired by Andrew Grangaard's example in
- http://www.lowlevelmanager.com/2009/09/access-jira-api-from-perl-with.html.
- Thanks!
+ - These changes were inspired by Andrew Grangaard's example in
+ http://www.lowlevelmanager.com/2009/09/access-jira-api-from-perl-with.html.
+ Thanks!
-0.15 2009-09-28
+0.15 2009-09-28
- The method progress_workflow_action_safely hash argument now
- accepts the same shortcuts as the create_issue argument does.
+ - The method progress_workflow_action_safely hash argument now
+ accepts the same shortcuts as the create_issue argument does.
- Nate Murray and Jon Connell sent me bug reports and
- suggestions. Thanks.
+ - Nate Murray and Jon Connell sent me bug reports and
+ suggestions. Thanks.
-0.14 2009-09-12
+0.14 2009-09-12
- Supporting versions of JIRA older than 3.14.4 in the method
- next_issue.
+ - Supporting versions of JIRA older than 3.14.4 in the method
+ next_issue.
- Added an optional argument to the method set_issue_iterator to
- allow for the specification of the pre-fetching cache size.
+ - Added an optional argument to the method set_issue_iterator to
+ allow for the specification of the pre-fetching cache size.
-0.13 2009-08-04
+0.13 2009-08-04
- Make it easy to set custom fields in create_issue.
+ - Make it easy to set custom fields in create_issue.
-0.12 2009-08-02
+0.12 2009-08-02
- Avoids spurious messages during destruction with a kludge.
+ - Avoids spurious messages during destruction with a kludge.
0.11 2009-07-13
- set_filter_iterator accepts filter ids or filter names.
+ - set_filter_iterator accepts filter ids or filter names.
0.10 2009-07-11
- Implements methods create_issue and
- progress_workflow_action_safelly using ideas from Jon Connel
- <jon AT figsandfudge DOT com>.
+ - Implements methods create_issue and
+ progress_workflow_action_safelly using ideas from Jon Connel
+ <jon AT figsandfudge DOT com>.
- Makes it easier to call some methods by accepting simpler
- arguments using an idea from Bjørn-Olav Strand <BOLAV AT cpan
- DOT org>.
+ - Makes it easier to call some methods by accepting simpler
+ arguments using an idea from Bjørn-Olav Strand <BOLAV AT cpan
+ DOT org>.
- Implements constructors for some helper objects.
+ - Implements constructors for some helper objects.
- Implements online tests agains a JIRA server.
+ - Implements online tests agains a JIRA server.
-0.05 2009-05-24
+0.05 2009-05-24
- Implement methods get_priorities, get_versions,
- get_custom_fields, and set_custom_fields to maintain a cache
- of this information.
+ - Implement methods get_priorities, get_versions,
+ get_custom_fields, and set_custom_fields to maintain a cache
+ of this information.
- Eliminates the method custom_field_map, which is superseeded
- by get/set_custom_fields.
+ - Eliminates the method custom_field_map, which is superseeded
+ by get/set_custom_fields.
-0.04 2009-05-05
+0.04 2009-05-05
- Implement coersions for structured arguments.
+ - Implement coersions for structured arguments.
0.03 2009-04-25
- First version, released on an unsuspecting world.
+
+ - First version, released on an unsuspecting world.
diff --git a/LICENSE b/LICENSE
index c4b51a1..08671d0 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-This software is copyright (c) 2012 by CPqD.
+This software is copyright (c) 2014 by CPqD.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@ b) the "Artistic License"
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2012 by CPqD.
+This software is Copyright (c) 2014 by CPqD.
This is free software, licensed under:
@@ -272,7 +272,7 @@ That's all there is to it!
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2012 by CPqD.
+This software is Copyright (c) 2014 by CPqD.
This is free software, licensed under:
diff --git a/META.yml b/META.yml
index 3c0eb6d..6ff6a9f 100644
--- a/META.yml
+++ b/META.yml
@@ -7,7 +7,7 @@ build_requires:
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300020, CPAN::Meta::Converter version 2.120921'
+generated_by: 'Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -25,4 +25,4 @@ resources:
bugtracker: https://github.com/gnustavo/JIRA-Client/issues
homepage: http://search.cpan.org/dist/JIRA-Client/
repository: git://github.com/gnustavo/JIRA-Client.git
-version: 0.40
+version: 0.41
diff --git a/Makefile.PL b/Makefile.PL
index 703da43..13f95ba 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -11,9 +11,7 @@ use ExtUtils::MakeMaker 6.30;
my %WriteMakefileArgs = (
"ABSTRACT" => "An extended interface to JIRA's SOAP API.",
"AUTHOR" => "Gustavo L. de M. Chaves <gnustavo\@cpan.org>",
- "BUILD_REQUIRES" => {
- "Test::More" => 0
- },
+ "BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.30"
},
@@ -30,24 +28,32 @@ my %WriteMakefileArgs = (
"strict" => 0,
"warnings" => 0
},
- "VERSION" => "0.40",
+ "TEST_REQUIRES" => {
+ "Test::More" => 0
+ },
+ "VERSION" => "0.41",
"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} ) {
- $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
- }
- else {
- $pp->{$mod} = $br->{$mod};
- }
- }
+my %FallbackPrereqs = (
+ "Carp" => 0,
+ "Data::Util" => 0,
+ "File::Basename" => 0,
+ "MIME::Base64" => 0,
+ "SOAP::Lite" => 0,
+ "Test::More" => 0,
+ "strict" => 0,
+ "warnings" => 0
+);
+
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ delete $WriteMakefileArgs{TEST_REQUIRES};
+ delete $WriteMakefileArgs{BUILD_REQUIRES};
+ $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
diff --git a/examples/jiraclient.pl b/examples/jiraclient.pl
index 5c96493..3dd64c4 100755
--- a/examples/jiraclient.pl
+++ b/examples/jiraclient.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Sample Perl client accessing JIRA via SOAP using the CPAN
# JIRA::Client module. This is mostly a translation of the Python
diff --git a/lib/JIRA/Client.pm b/lib/JIRA/Client.pm
index 18317a9..e4ee4c6 100644
--- a/lib/JIRA/Client.pm
+++ b/lib/JIRA/Client.pm
@@ -3,7 +3,7 @@ use warnings;
package JIRA::Client;
{
- $JIRA::Client::VERSION = '0.40';
+ $JIRA::Client::VERSION = '0.41';
}
# ABSTRACT: An extended interface to JIRA's SOAP API.
@@ -661,36 +661,38 @@ sub attach_strings_to_issue {
}
-sub filter_issues {
+sub filter_issues_unsorted {
my ($self, $filter, $limit) = @_;
$filter =~ s/^\s*"?//;
$filter =~ s/"?\s*$//;
- my $issues = do {
- if ($filter =~ /^(?:[A-Z]+-\d+\s+)*[A-Z]+-\d+$/i) {
- # space separated key list
- [map {$self->getIssue(uc $_)} split / /, $filter];
- } elsif ($filter =~ /^[\w-]+$/i) {
- # saved filter
- $self->getIssuesFromFilterWithLimit($filter, 0, $limit || 1000);
- } else {
- # JQL filter
- $self->getIssuesFromJqlSearch($filter, $limit || 1000);
- }
- };
+ if ($filter =~ /^(?:[A-Z]+-\d+\s+)*[A-Z]+-\d+$/i) {
+ # space separated key list
+ return map {$self->getIssue(uc $_)} split / /, $filter;
+ } elsif ($filter =~ /^[\w-]+$/i) {
+ # saved filter
+ return @{$self->getIssuesFromFilterWithLimit($filter, 0, $limit || 1000)};
+ } else {
+ # JQL filter
+ return @{$self->getIssuesFromJqlSearch($filter, $limit || 1000)};
+ }
+}
+
+sub filter_issues {
# Order the issues by project key and then by numeric value using
# a Schwartzian transform.
map {$_->[2]}
sort {$a->[0] cmp $b->[0] or $a->[1] <=> $b->[1]}
- map {my ($p, $n) = ($_->{key} =~ /([A-Z]+)-(\d+)/); [$p, $n, $_]} @$issues;
+ map {my ($p, $n) = ($_->{key} =~ /([A-Z]+)-(\d+)/); [$p, $n, $_]}
+ filter_issues_unsorted(@_);
}
package RemoteFieldValue;
{
- $RemoteFieldValue::VERSION = '0.40';
+ $RemoteFieldValue::VERSION = '0.41';
}
sub new {
@@ -706,7 +708,7 @@ sub new {
package RemoteCustomFieldValue;
{
- $RemoteCustomFieldValue::VERSION = '0.40';
+ $RemoteCustomFieldValue::VERSION = '0.41';
}
sub new {
@@ -719,7 +721,7 @@ sub new {
package RemoteComponent;
{
- $RemoteComponent::VERSION = '0.40';
+ $RemoteComponent::VERSION = '0.41';
}
sub new {
@@ -732,7 +734,7 @@ sub new {
package RemoteVersion;
{
- $RemoteVersion::VERSION = '0.40';
+ $RemoteVersion::VERSION = '0.41';
}
sub new {
@@ -969,15 +971,18 @@ sub AUTOLOAD {
1; # End of JIRA::Client
__END__
+
=pod
+=encoding UTF-8
+
=head1 NAME
JIRA::Client - An extended interface to JIRA's SOAP API.
=head1 VERSION
-version 0.40
+version 0.41
=head1 SYNOPSIS
@@ -1382,7 +1387,7 @@ file names and the values their contents.
The method retuns the value returned by the
B<addBase64EncodedAttachmentsToIssue> API method.
-=head2 B<filter_issues> FILTER [, LIMIT]
+=head2 B<filter_issues_unsorted> FILTER [, LIMIT]
This method returns a list of RemoteIssue objects from the specified
FILTER, which is a string that is understood in one of these ways (in
@@ -1423,7 +1428,10 @@ beings to request a list of issues. Be warned, however, that you are
responsible to de-taint the FILTER argument before passing it to the
method.
-The returned list of RemoteIssue objects is sorted by issue key.
+=head2 B<filter_issues> FILTER [, LIMIT]
+
+This method invokes the B<filter_issues_unsorted> method with the same
+arguments and returns the list of RemoteIssue objects sorted by issue key.
=head1 OTHER CONSTRUCTORS
@@ -1480,10 +1488,9 @@ Gustavo L. de M. Chaves <gnustavo at cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2012 by CPqD.
+This software is copyright (c) 2014 by CPqD.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
-
diff --git a/t/release-kwalitee.t b/t/release-kwalitee.t
index 572378a..e0d4e18 100644
--- a/t/release-kwalitee.t
+++ b/t/release-kwalitee.t
@@ -1,4 +1,3 @@
-#!perl
BEGIN {
unless ($ENV{RELEASE_TESTING}) {
@@ -7,11 +6,7 @@ BEGIN {
}
}
-
-# This test is generated by Dist::Zilla::Plugin::Test::Kwalitee
+# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.07
use strict;
use warnings;
-use Test::More; # needed to provide plan.
-eval "use Test::Kwalitee";
-
-plan skip_all => "Test::Kwalitee required for testing kwalitee" if $@;
+use Test::Kwalitee;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libjira-client-perl.git
More information about the Pkg-perl-cvs-commits
mailing list