Sat Feb 21 12:28:00 2015 UTC ()
(pkgsrc)
  - Add ${PERL5_LICENSE}
(upstream)
  - Update 0.05 to 0.07
  ---------------------
0.07
General:
- Added unit tests
- Changed to proper source structure

Net/Gnats.pm
- Massive amount of refactoring around PBP.
- Removed unecessary 'dead' code
- Changed documentation according to PBP changes
- Began removing old 'data caching' mechanism, metadata needs to be
  captured on a per db basis
- fixed/regressed bugs 4, 5, 7, 8, 9, 11 and created unit tests.

Net/Gnats/PR.pm
- reconstructed parse routine
- some PBP refactoring

Net/Gnats/Response.pm
- new module to hold all socket response (raw, code) and eventually
will replace old procedural method of capturing sets of responses.

0.06
Gnats.pm
- Added 'Net::Gnats::updatePR' method so multiple fields can be changed
  with one call instead of having to call replaceField multiple times.
- Added 'Net::Gnats::newPR' method.
- Added 'Net::Gnats::filloutPR' method which fills out a new PR with the
  field defaults specified in the gnats dbconfig.
- Fixed checking for when gnatsd will return a multiline response.
  Previosuly all codes from 300-399 (except 350) where assumed to be
  multiline.  But the gnatsd spec says only 300-349 will be multiline.
- When PR's are unparsed into a string the MultiText fields are properly
  escaped.
- Added ability to turn on debugging with '$Net::Gnats:debugGnatsd = 1'
- Work around a bug in gnatsd where it doesn't properly close file handles,
  so gnatsperl closes and reopens the connection after 100 newPRs.  I've
  submitted a patch to gnats but it's not been incorporated yet.
- Disabled the listClasses method since gnatsd does not support it
  anymore.
- Methods listFieldNames, listInitialInputFields, getFieldType,
  isValidField, getFieldTypeInfo, getFieldFlags, getFieldDefault, only
  query gnatsd once for the information so multiple calls to these methods
  are much faster.
- Net::Gnats:lockPR extracts the PR data and returns a Net::Gnats::PR
  object.
- Added Net::Gnats::checkPR method.  Changed checkNewPR method to call
  checkPR.
- Improved checking for "requireChangeReason" checking in replaceField
  method.
- submitPR method calls PR::unparse method.
- Split out some code in _doGnatsCmd into new '_readAndPrcessResponse'
  method so other methods could use the same code.

PR.pm
- Net::Gnats::PR::new method now requires the Net::Gnats object as the
  first argument.   This was done to provide better error checking.  The
  best was to fix existing code is to change any Net::Gnats::PR::new calls
  to $g->new().  See documentation.
- The PR number is no longer tracked differently inside PR.pm.  It's now
  treated like all other fields.  Users will not notice this change since
  the getNumber method still works like previous versions.  However if you
  were accessing the $pr->{number} data directly it won't work anymore.
- The setField method takes an optional argument which is the changeReason.
  - Currently setField does not require the changeReason to be specified,
    but this may change in the next release.
- Major change to methods that parse and unparse PR's.  A lot of code was
  copied from gnatsweb so gnatsperl now does a much better job of handling
  PR data.  Also, in the future this will allow us to handle gnatsweb style
  attachements.


(mef)
diff -r1.16 -r1.17 pkgsrc/net/p5-Net-Gnats/Makefile
diff -r1.3 -r1.4 pkgsrc/net/p5-Net-Gnats/distinfo

cvs diff -r1.16 -r1.17 pkgsrc/net/p5-Net-Gnats/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/net/p5-Net-Gnats/Attic/Makefile 2014/05/29 23:37:07 1.16
+++ pkgsrc/net/p5-Net-Gnats/Attic/Makefile 2015/02/21 12:27:59 1.17
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: Makefile,v 1.16 2014/05/29 23:37:07 wiz Exp $ 1# $NetBSD: Makefile,v 1.17 2015/02/21 12:27:59 mef Exp $
2# 2#
3 3
4DISTNAME= Net-Gnats-0.05 4DISTNAME= Net-Gnats-0.07
5PKGNAME= p5-${DISTNAME} 5PKGNAME= p5-${DISTNAME}
6PKGREVISION= 5 
7CATEGORIES= net perl5 6CATEGORIES= net perl5
8MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gnatsperl/} 7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gnatsperl/}
9 8
10MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://gnatsperl.sourceforge.net/ 10HOMEPAGE= http://gnatsperl.sourceforge.net/
12#HOMEPAGE= http://search.cpan.org/dist/Net-Gnats/ 11#HOMEPAGE= http://search.cpan.org/dist/Net-Gnats/
13COMMENT= Perl interface to the gnatsd daemon 12COMMENT= Perl interface to the gnatsd daemon
 13LICENSE= ${PERL5_LICENSE}
14 14
15PERL5_PACKLIST= auto/Net/Gnats/.packlist 15PERL5_PACKLIST= auto/Net/Gnats/.packlist
16 16
17.include "../../lang/perl5/module.mk" 17.include "../../lang/perl5/module.mk"
18.include "../../mk/bsd.pkg.mk" 18.include "../../mk/bsd.pkg.mk"

cvs diff -r1.3 -r1.4 pkgsrc/net/p5-Net-Gnats/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/net/p5-Net-Gnats/Attic/distinfo 2008/11/18 06:34:45 1.3
+++ pkgsrc/net/p5-Net-Gnats/Attic/distinfo 2015/02/21 12:27:59 1.4
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.3 2008/11/18 06:34:45 he Exp $ 1$NetBSD: distinfo,v 1.4 2015/02/21 12:27:59 mef Exp $
2 2
3SHA1 (Net-Gnats-0.05.tar.gz) = b701816f246479b3e1149093dc51d0dac4d658ca 3SHA1 (Net-Gnats-0.07.tar.gz) = 90b329028f320a3aa45033e29c73e7da05e0670d
4RMD160 (Net-Gnats-0.05.tar.gz) = 9fde18f64d51f2868c63a8c40bc710edbfa35591 4RMD160 (Net-Gnats-0.07.tar.gz) = 01aaf861ccc721376cdce36333e7be1538a5fb72
5Size (Net-Gnats-0.05.tar.gz) = 9666 bytes 5Size (Net-Gnats-0.07.tar.gz) = 20710 bytes