Hello community,

here is the log from the commit of package perl-Text-SpellChecker for 
openSUSE:Factory checked in at 2015-04-25 14:09:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Text-SpellChecker (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Text-SpellChecker.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Text-SpellChecker"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Text-SpellChecker/perl-Text-SpellChecker.changes
    2011-12-25 17:52:04.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Text-SpellChecker.new/perl-Text-SpellChecker.changes
       2015-04-25 14:09:11.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Apr 14 20:09:40 UTC 2015 - [email protected]
+
+- updated to 0.14
+   see /usr/share/doc/packages/perl-Text-SpellChecker/Changes
+
+-------------------------------------------------------------------

Old:
----
  Text-SpellChecker-0.11.tar.gz

New:
----
  Text-SpellChecker-0.14.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Text-SpellChecker.spec ++++++
--- /var/tmp/diff_new_pack.AnnHK9/_old  2015-04-25 14:09:11.000000000 +0200
+++ /var/tmp/diff_new_pack.AnnHK9/_new  2015-04-25 14:09:11.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Text-SpellChecker
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,19 +17,21 @@
 
 
 Name:           perl-Text-SpellChecker
-Version:        0.11
+Version:        0.14
 Release:        0
 %define cpan_name Text-SpellChecker
 Summary:        OO interface for spell-checking a block of text
-License:        GPL-1.0+ or Artistic-1.0
+License:        Artistic-1.0 or GPL-1.0+
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Text-SpellChecker/
-Source:         
http://www.cpan.org/authors/id/B/BD/BDUGGAN/Text-SpellChecker-%{version}.tar.gz
+Source:         
http://www.cpan.org/authors/id/B/BD/BDUGGAN/%{cpan_name}-%{version}.tar.gz
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
+BuildRequires:  perl(Text::Aspell)
 BuildRequires:  perl(Text::Hunspell)
+Requires:       perl(Text::Aspell)
 Requires:       perl(Text::Hunspell)
 %{perl_requires}
 
@@ -58,11 +60,8 @@
 %perl_process_packlist
 %perl_gen_filelist
 
-%clean
-%{__rm} -rf %{buildroot}
-
 %files -f %{name}.files
-%defattr(644,root,root,755)
+%defattr(-,root,root,755)
 %doc Changes README
 
 %changelog

++++++ Text-SpellChecker-0.11.tar.gz -> Text-SpellChecker-0.14.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-SpellChecker-0.11/Changes 
new/Text-SpellChecker-0.14/Changes
--- old/Text-SpellChecker-0.11/Changes  2011-06-24 19:34:53.000000000 +0200
+++ new/Text-SpellChecker-0.14/Changes  2014-11-06 15:02:40.000000000 +0100
@@ -1,40 +1,48 @@
-Revision history for Perl extension Text::SpellChecker.
+0.14 Thu Nov 6 EST 2014
+    - Added set_option.
 
-0.01  Mon Nov 1 2004
-       - original version
+0.13 Wed Nov 5 2014
+    - Fixed tests : some dictionaries apparently have coördinator 
 
-0.02  Thu Nov 4 2004
-    - changed regex for words to [a-zA-Z]+
-    - added ignore_all
-    - added replace_all
-    - added reset
+0.12 Mon Nov 3 2014
+    - Fixes for unicode letters (thanks, Chankey Pathak)
 
-0.03  Tue May 3 2005
-    - update regex to include apostrophes
+0.11 Fri Jun 24 2011
+    - pod fixes and pod test
 
-0.04  Sun Dec 14 2008
-    - patch by Yanick Champoux with three changes : 
-    - lang option
-    - cached Text::Aspell object
-    - made suggestions() context-aware
+0.09  Thu Jun 23 2011
+    - Better tests, use of LANG
+    - Compile time check for at least one speller.
+
+0.08
+    - Allow aspell to be missing
+
+0.07  Wed Sep 15 2010
+    - optional hunspell support
+
+0.06  Tue Sep 14 2010
+    - made deserialization accept non-blessed refs 
 
 0.05  Mon Dec 15 2008
     - skip some tests when missing English dictionary
     - added license
 
-0.06  Tue Sep 14 2010
-    - made deserialization accept non-blessed refs 
+0.04  Sun Dec 14 2008
+    - patch by Yanick Champoux with three changes : 
+    - lang option
+    - cached Text::Aspell object
+    - made suggestions() context-aware
 
-0.07  Wed Sep 15 2010
-    - optional hunspell support
+0.03  Tue May 3 2005
+    - update regex to include apostrophes
 
-0.08
-    - Allow aspell to be missing
+0.02  Thu Nov 4 2004
+    - changed regex for words to [a-zA-Z]+
+    - added ignore_all
+    - added replace_all
+    - added reset
 
-0.09  Thu Jun 23 2011
-    - Better tests, use of LANG
-    - Compile time check for at least one speller.
+0.01  Mon Nov 1 2004
+       - original version
 
-0.11 Fri Jun 24 2011
-    - pod fixes and pod test
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-SpellChecker-0.11/MANIFEST 
new/Text-SpellChecker-0.14/MANIFEST
--- old/Text-SpellChecker-0.11/MANIFEST 2011-06-24 19:30:55.000000000 +0200
+++ new/Text-SpellChecker-0.14/MANIFEST 2014-11-06 15:04:10.000000000 +0100
@@ -1,9 +1,11 @@
 Changes
 lib/Text/SpellChecker.pm
 Makefile.PL
-MANIFEST                       This list of files
-META.yml
+MANIFEST
+MANIFEST.SKIP
 README
 t/aspell.t
 t/hunspell.t
 t/pod.t
+META.yml                                 Module YAML meta-data (added by 
MakeMaker)
+META.json                                Module JSON meta-data (added by 
MakeMaker)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-SpellChecker-0.11/MANIFEST.SKIP 
new/Text-SpellChecker-0.14/MANIFEST.SKIP
--- old/Text-SpellChecker-0.11/MANIFEST.SKIP    1970-01-01 01:00:00.000000000 
+0100
+++ new/Text-SpellChecker-0.14/MANIFEST.SKIP    2014-11-06 15:03:42.000000000 
+0100
@@ -0,0 +1,9 @@
+.*\.old$
+\.tar\.gz$
+^Makefile$
+^MYMETA\.
+^blib
+^pm_to_blib
+\.git
+.*\.bak
+.*\.swp
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-SpellChecker-0.11/META.json 
new/Text-SpellChecker-0.14/META.json
--- old/Text-SpellChecker-0.11/META.json        1970-01-01 01:00:00.000000000 
+0100
+++ new/Text-SpellChecker-0.14/META.json        2014-11-06 15:04:10.000000000 
+0100
@@ -0,0 +1,49 @@
+{
+   "abstract" : "unknown",
+   "author" : [
+      "Brian Duggan <[email protected]>"
+   ],
+   "dynamic_config" : 1,
+   "generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter 
version 2.142690",
+   "license" : [
+      "perl_5"
+   ],
+   "meta-spec" : {
+      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec";,
+      "version" : "2"
+   },
+   "name" : "Text-SpellChecker",
+   "no_index" : {
+      "directory" : [
+         "t",
+         "inc"
+      ]
+   },
+   "prereqs" : {
+      "build" : {
+         "requires" : {
+            "ExtUtils::MakeMaker" : "0"
+         }
+      },
+      "configure" : {
+         "requires" : {
+            "ExtUtils::MakeMaker" : "0"
+         }
+      },
+      "runtime" : {
+         "requires" : {
+            "MIME::Base64" : "0",
+            "Storable" : "0",
+            "Text::Hunspell" : "0",
+            "perl" : "5.010001"
+         }
+      }
+   },
+   "release_status" : "stable",
+   "resources" : {
+      "repository" : {
+         "url" : "https://github.com/bduggan/Text-SpellChecker.git";
+      }
+   },
+   "version" : "0.14"
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-SpellChecker-0.11/META.yml 
new/Text-SpellChecker-0.14/META.yml
--- old/Text-SpellChecker-0.11/META.yml 2011-06-24 19:35:10.000000000 +0200
+++ new/Text-SpellChecker-0.14/META.yml 2014-11-06 15:04:10.000000000 +0100
@@ -1,24 +1,27 @@
---- #YAML:1.0
-name:               Text-SpellChecker
-version:            0.11
-abstract:           ~
+---
+abstract: unknown
 author:
-    - Brian Duggan <[email protected]>
-license:            perl
-distribution_type:  module
-configure_requires:
-    ExtUtils::MakeMaker:  0
+  - 'Brian Duggan <[email protected]>'
 build_requires:
-    ExtUtils::MakeMaker:  0
-requires:
-    MIME::Base64:    0
-    Storable:        0
-    Text::Hunspell:  0
-no_index:
-    directory:
-        - t
-        - inc
-generated_by:       ExtUtils::MakeMaker version 6.55_02
+  ExtUtils::MakeMaker: '0'
+configure_requires:
+  ExtUtils::MakeMaker: '0'
+dynamic_config: 1
+generated_by: 'ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 
2.142690'
+license: perl
 meta-spec:
-    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
-    version:  1.4
+  url: http://module-build.sourceforge.net/META-spec-v1.4.html
+  version: '1.4'
+name: Text-SpellChecker
+no_index:
+  directory:
+    - t
+    - inc
+requires:
+  MIME::Base64: '0'
+  Storable: '0'
+  Text::Hunspell: '0'
+  perl: '5.010001'
+resources:
+  repository: https://github.com/bduggan/Text-SpellChecker.git
+version: '0.14'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-SpellChecker-0.11/Makefile.PL 
new/Text-SpellChecker-0.14/Makefile.PL
--- old/Text-SpellChecker-0.11/Makefile.PL      2010-09-15 22:30:23.000000000 
+0200
+++ new/Text-SpellChecker-0.14/Makefile.PL      2014-11-04 03:10:49.000000000 
+0100
@@ -13,6 +13,12 @@
         'Storable'     => 0,
         'MIME::Base64' => 0
     },
+    META_MERGE   => {
+        requires  => {perl => '5.010001'},
+        resources => {
+          repository => 'https://github.com/bduggan/Text-SpellChecker.git',
+      }
+    },
     LICENSE            => 'perl',
     ($] >= 5.005 ?   
       ( AUTHOR         => 'Brian Duggan <[email protected]>') : ()),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-SpellChecker-0.11/lib/Text/SpellChecker.pm 
new/Text-SpellChecker-0.14/lib/Text/SpellChecker.pm
--- old/Text-SpellChecker-0.11/lib/Text/SpellChecker.pm 2011-06-24 
19:33:16.000000000 +0200
+++ new/Text-SpellChecker-0.14/lib/Text/SpellChecker.pm 2014-11-06 
15:04:09.000000000 +0100
@@ -72,13 +72,15 @@
 
 =over 4
 
-=item $checker = Text::SpellChecker->new(text => $text, from_frozen => 
$serialized_data, lang => $lang)
+=item $checker = Text::SpellChecker->new(text => $text, from_frozen => 
$serialized_data, lang => $lang, options => $options)
 
 Send either the text or a serialized object to the constructor.  
 Optionally, the language of the text can also be passed.
 If no language is passed, $ENV{LANG} will be used, if it is set.
 If it is not set, the default language will be "en_US".
 
+$options are checker-specific options (see below).
+
 =item $checker = new_from_frozen($serialized_data)
 
 This is provided separately, so that it may be
@@ -128,6 +130,12 @@
 Returns the text, but with the current word surrounded by 
$Text::SpellChecker::pre_hl_word and
 $Text::SpellChecker::post_hl_word.
 
+=item $checker->set_options
+
+Set checker-specific options.  Currently only aspell supports setting options, 
e.g.
+
+    $checker->set_options(aspell => { "extra-dicts" => "nl" } );
+
 =back
 
 =head1 CONFIGURATION OPTIONS
@@ -176,7 +184,7 @@
 use warnings;
 use strict;
 
-our $VERSION = '0.11';
+our $VERSION = '0.14';
 
 our $pre_hl_word = qq|<span 
style="background-color:red;color:white;font-weight:bold;">|;
 our $post_hl_word = "</span>";
@@ -208,9 +216,15 @@
             text => $args{text},
             ignore_list => {},    # keys of this hash are words to be ignored
             ( lang => $args{lang} ) x !!$args{lang},
+            ( options => $args{options} ) x !!$args{options},
     }, $class;
 }
 
+sub set_options {
+    my ($self, %opts) = @_;
+    $self->{options} = \%opts;
+}
+
 sub reset {
     my $self = shift;
     $self->{position} = undef;
@@ -266,7 +280,7 @@
     pos $self->{text} = $self->{position};
     my $word;
     my $sp = $self->_hunspell || $self->_aspell || die "Could not make a 
speller with Text::Hunspell or Text::Aspell.";
-    while ($self->{text} =~ m/([a-zA-Z]+(?:'[a-zA-Z]+)?)/g) {
+    while ($self->{text} =~ m/\b(\p{L}+(?:'\p{L}+)?)/g) {
         $word = $1;
         next if $self->{ignore_list}{$word};
         last if !$sp->check($word);
@@ -291,6 +305,9 @@
         $self->{aspell} = Text::Aspell->new;
         $self->{aspell}->set_option( lang => $self->{lang} ) 
                 if $self->{lang};
+        if (my $opts = $self->{options}{aspell}) {
+            $self->{aspell}->set_option( $_ => $opts->{$_} ) for keys %$opts
+        }
     }
 
     return $self->{aspell};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-SpellChecker-0.11/t/aspell.t 
new/Text-SpellChecker-0.14/t/aspell.t
--- old/Text-SpellChecker-0.11/t/aspell.t       2011-06-23 22:17:01.000000000 
+0200
+++ new/Text-SpellChecker-0.14/t/aspell.t       2014-11-06 14:55:47.000000000 
+0100
@@ -1,14 +1,16 @@
 #########################
 
-use Test::More tests => 8;
+use utf8;
+use Test::More tests => 10;
+use strict;
 BEGIN { use_ok('Text::SpellChecker') };
 
 my $checker = Text::SpellChecker->new(text => "Foor score and seevn yeers 
ago", lang => "en_US" );
 ok($checker, 'object creation' );
 
 SKIP: {
-    skip 'Text::Aspell not installed', 4 unless 
$Text::SpellChecker::SpellersAvailable{Aspell};
-    skip 'English dictionary not installed', 4 
+    skip 'Text::Aspell not installed', 6 unless 
$Text::SpellChecker::SpellersAvailable{Aspell};
+    skip 'English dictionary not installed', 6 
         unless (grep /^en/, Text::Aspell->new()->list_dictionaries) &&
                 Text::Aspell->new()->get_option('lang') =~ /^en/;
 
@@ -24,6 +26,20 @@
     $checker->replace(new_word => 'seven');
 
     ok($checker->text =~ /score and seven/, 'replacement');
+
+    my $text = "The coördinator coöror will be leading the coöditer session";
+    my $unichecker = Text::SpellChecker->new(text => $text );
+    my @words = split / /, $text;
+    my %words = map { $_ => 1 } @words;
+    my @found;
+    while (my $word = $unichecker->next_word) {
+        push @found, $word;
+    }
+    ok ((!grep !$words{$_}, @found), "split utf8 text into words");
+
+    my $fast_checker = Text::SpellChecker->new(text => "The qick brown fox");
+    $fast_checker->set_options(aspell => { "sug-mode" => "fast" } );
+    is $fast_checker->next_word, 'qick', 'fast checker worked';
 };
 
 my $original = Text::SpellChecker->new(from_frozen => $checker->serialize);


Reply via email to