r32134 - in /trunk/libsearch-xapian-perl: Changes META.yml README XS/QueryParser.xs Xapian.pm Xapian.xs debian/changelog t/parser.t

ryan52-guest at users.alioth.debian.org ryan52-guest at users.alioth.debian.org
Mon Mar 16 01:06:31 UTC 2009


Author: ryan52-guest
Date: Mon Mar 16 01:06:26 2009
New Revision: 32134

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=32134
Log:
New upstream release

Modified:
    trunk/libsearch-xapian-perl/Changes
    trunk/libsearch-xapian-perl/META.yml
    trunk/libsearch-xapian-perl/README
    trunk/libsearch-xapian-perl/XS/QueryParser.xs
    trunk/libsearch-xapian-perl/Xapian.pm
    trunk/libsearch-xapian-perl/Xapian.xs
    trunk/libsearch-xapian-perl/debian/changelog
    trunk/libsearch-xapian-perl/t/parser.t

Modified: trunk/libsearch-xapian-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsearch-xapian-perl/Changes?rev=32134&op=diff
==============================================================================
--- trunk/libsearch-xapian-perl/Changes (original)
+++ trunk/libsearch-xapian-perl/Changes Mon Mar 16 01:06:26 2009
@@ -1,4 +1,10 @@
 Revision history for Perl extension Search::Xapian.
+
+1.0.11.0  Sun Mar 15 12:53:20 GMT 2008
+	[Changes contributed by Olly Betts]
+	- Wrap the new FLAG_DEFAULT constant which gives the QueryParser
+	  default flag settings, allowing you to easily add flags to the
+	  default ones.
 
 1.0.10.0  Tue Dec 23 09:18:21 GMT 2008
 	[Changes contributed by Olly Betts]

Modified: trunk/libsearch-xapian-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsearch-xapian-perl/META.yml?rev=32134&op=diff
==============================================================================
--- trunk/libsearch-xapian-perl/META.yml (original)
+++ trunk/libsearch-xapian-perl/META.yml Mon Mar 16 01:06:26 2009
@@ -1,7 +1,7 @@
 # http://module-build.sourceforge.net/META-spec.html
 #XXXXXXX This is a prototype!!!  It will change in the future!!! XXXXX#
 name:         Search-Xapian
-version:      1.0.10.0
+version:      1.0.11.0
 version_from: Xapian.pm
 installdirs:  site
 requires:

Modified: trunk/libsearch-xapian-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsearch-xapian-perl/README?rev=32134&op=diff
==============================================================================
--- trunk/libsearch-xapian-perl/README (original)
+++ trunk/libsearch-xapian-perl/README Mon Mar 16 01:06:26 2009
@@ -1,4 +1,4 @@
-Search::Xapian version 1.0.10.0
+Search::Xapian version 1.0.11.0
 ===============================
 
 This is Search::Xapian, a Perl XS frontend to the Xapian C++ search library.
@@ -42,7 +42,7 @@
 CPAN bug tracker or mail any of the authors individually.
 
 Copyright (c) 2002,2003 Alex Bowley. All rights reserved.
-Copyright (c) 2003,2004,2005,2006,2007,2008 Olly Betts. All rights reserved.
+Copyright (c) 2003,2004,2005,2006,2007,2008,2009 Olly Betts. All rights reserved.
 
 This program is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself.

Modified: trunk/libsearch-xapian-perl/XS/QueryParser.xs
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsearch-xapian-perl/XS/QueryParser.xs?rev=32134&op=diff
==============================================================================
--- trunk/libsearch-xapian-perl/XS/QueryParser.xs (original)
+++ trunk/libsearch-xapian-perl/XS/QueryParser.xs Mon Mar 16 01:06:26 2009
@@ -50,7 +50,7 @@
 	THIS->set_database(*database);
 
 Query *
-QueryParser::parse_query(q, flags = 7)
+QueryParser::parse_query(q, flags = QueryParser::FLAG_DEFAULT)
     string q
     int flags
     CODE:

Modified: trunk/libsearch-xapian-perl/Xapian.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsearch-xapian-perl/Xapian.pm?rev=32134&op=diff
==============================================================================
--- trunk/libsearch-xapian-perl/Xapian.pm (original)
+++ trunk/libsearch-xapian-perl/Xapian.pm Mon Mar 16 01:06:26 2009
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '1.0.10.0';
+our $VERSION = '1.0.11.0';
 
 use Exporter 'import';
 
@@ -83,6 +83,7 @@
 				 FLAG_SYNONYM
 				 FLAG_AUTO_SYNONYMS
 				 FLAG_AUTO_MULTIWORD_SYNONYMS
+				 FLAG_DEFAULT
                                  ) ],
                     'qpstem' => [ qw(
 				 STEM_NONE
@@ -251,6 +252,11 @@
 =head1 :qpflags
 
 =over 4
+
+=item FLAG_DEFAULT
+
+This gives the QueryParser default flag settings, allowing you to easily add
+flags to the default ones.
 
 =item FLAG_BOOLEAN
 

Modified: trunk/libsearch-xapian-perl/Xapian.xs
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsearch-xapian-perl/Xapian.xs?rev=32134&op=diff
==============================================================================
--- trunk/libsearch-xapian-perl/Xapian.xs (original)
+++ trunk/libsearch-xapian-perl/Xapian.xs Mon Mar 16 01:06:26 2009
@@ -198,6 +198,7 @@
 	ENUM_CONST(FLAG_SYNONYM, QueryParser::FLAG_SYNONYM);
 	ENUM_CONST(FLAG_AUTO_SYNONYMS, QueryParser::FLAG_AUTO_SYNONYMS);
 	ENUM_CONST(FLAG_AUTO_MULTIWORD_SYNONYMS, QueryParser::FLAG_AUTO_SYNONYMS);
+	ENUM_CONST(FLAG_DEFAULT, QueryParser::FLAG_DEFAULT);
 
 	ENUM_CONST(STEM_NONE, QueryParser::STEM_NONE);
 	ENUM_CONST(STEM_SOME, QueryParser::STEM_SOME);

Modified: trunk/libsearch-xapian-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsearch-xapian-perl/debian/changelog?rev=32134&op=diff
==============================================================================
--- trunk/libsearch-xapian-perl/debian/changelog (original)
+++ trunk/libsearch-xapian-perl/debian/changelog Mon Mar 16 01:06:26 2009
@@ -1,9 +1,13 @@
-libsearch-xapian-perl (1.0.10.0-2) UNRELEASED; urgency=low
+libsearch-xapian-perl (1.0.11.0-1) UNRELEASED; urgency=low
 
+  [ gregor herrmann ]
   * Remove patch stop_failing_tests_on_values_begin.patch, not needed any
     more; thanks to Olly Betts for the bug report (closes: #517660).
 
- -- gregor herrmann <gregoa at debian.org>  Sun, 01 Mar 2009 14:08:23 +0100
+  [ Ryan Niebur ]
+  * New upstream release
+
+ -- Ryan Niebur <ryanryan52 at gmail.com>  Sun, 15 Mar 2009 18:06:04 -0700
 
 libsearch-xapian-perl (1.0.10.0-1) unstable; urgency=low
 

Modified: trunk/libsearch-xapian-perl/t/parser.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsearch-xapian-perl/t/parser.t?rev=32134&op=diff
==============================================================================
--- trunk/libsearch-xapian-perl/t/parser.t (original)
+++ trunk/libsearch-xapian-perl/t/parser.t Mon Mar 16 01:06:26 2009
@@ -6,7 +6,7 @@
 
 use Test;
 use Devel::Peek;
-BEGIN { plan tests => 52 };
+BEGIN { plan tests => 53 };
 use Search::Xapian qw(:standard);
 ok(1); # If we made it this far, we're ok.
 
@@ -139,4 +139,7 @@
 };
 ok( $@ =~ /^Exception: Syntax: <expression> AND <expression> at \S+ line \d+\.$/ );
 
+# Check FLAG_DEFAULT is wrapped (new in 1.0.11.0).
+ok( $qp->parse_query('hello world', FLAG_DEFAULT|FLAG_BOOLEAN_ANY_CASE) );
+
 1;




More information about the Pkg-perl-cvs-commits mailing list