[libmetacpan-client-perl] 07/07: ES5 (Scroll) patch
gregor herrmann
gregoa at debian.org
Sat Dec 17 03:20:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libmetacpan-client-perl.
commit d8ec578b40711e6e622d18825c4660b7a597f889
Author: gregor herrmann <gregoa at debian.org>
Date: Sat Dec 17 04:20:13 2016 +0100
ES5 (Scroll) patch
---
debian/patches/es-scroll.patch | 134 +++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 135 insertions(+)
diff --git a/debian/patches/es-scroll.patch b/debian/patches/es-scroll.patch
new file mode 100644
index 0000000..830305c
--- /dev/null
+++ b/debian/patches/es-scroll.patch
@@ -0,0 +1,134 @@
+Description: Search::Elasticsearch moved the ::Scroll module to a new name
+Origin: vendor
+Forwarded: not-needed
+Bug: https://github.com/metacpan/metacpan-client/issues/55
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2016-12-17
+
+--- a/META.json
++++ b/META.json
+@@ -73,7 +73,7 @@
+ "requires" : {
+ "ExtUtils::MakeMaker" : "0",
+ "File::Spec" : "0",
+- "Search::Elasticsearch::Scroll" : "0",
++ "Search::Elasticsearch::Client::5_0::Scroll" : "0",
+ "Test::Fatal" : "0",
+ "Test::More" : "0",
+ "Test::Requires" : "0",
+--- a/META.yml
++++ b/META.yml
+@@ -6,7 +6,7 @@
+ build_requires:
+ ExtUtils::MakeMaker: '0'
+ File::Spec: '0'
+- Search::Elasticsearch::Scroll: '0'
++ Search::Elasticsearch::Client::5_0::Scroll: '0'
+ Test::Fatal: '0'
+ Test::More: '0'
+ Test::Requires: '0'
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -35,7 +35,7 @@
+ "TEST_REQUIRES" => {
+ "ExtUtils::MakeMaker" => 0,
+ "File::Spec" => 0,
+- "Search::Elasticsearch::Scroll" => 0,
++ "Search::Elasticsearch::Client::5_0::Scroll" => 0,
+ "Test::Fatal" => 0,
+ "Test::More" => 0,
+ "Test::Requires" => 0,
+@@ -63,7 +63,7 @@
+ "Ref::Util" => 0,
+ "Safe::Isa" => 0,
+ "Search::Elasticsearch" => "== 2.03",
+- "Search::Elasticsearch::Scroll" => 0,
++ "Search::Elasticsearch::Client::5_0::Scroll" => 0,
+ "Test::Fatal" => 0,
+ "Test::More" => 0,
+ "Test::Requires" => 0,
+--- a/cpanfile
++++ b/cpanfile
+@@ -15,7 +15,7 @@
+ requires "warnings" => "0";
+
+ on 'test' => sub {
+- requires "Search::Elasticsearch::Scroll" => "0";
++ requires "Search::Elasticsearch::Client::5_0::Scroll" => "0";
+ requires "Test::Fatal" => "0";
+ requires "Test::More" => "0";
+ requires "Test::Requires" => "0";
+--- a/lib/MetaCPAN/Client/Request.pm
++++ b/lib/MetaCPAN/Client/Request.pm
+@@ -357,7 +357,7 @@
+ =head2 ssearch
+
+ Calls an Elastic Search query (using L<Search::Elasticsearch> and returns an
+-L<Search::Elasticsearch::Scroll> scroller object.
++L<Search::Elasticsearch::Client::5_0::Scroll> scroller object.
+
+ =head1 AUTHORS
+
+--- a/lib/MetaCPAN/Client/ResultSet.pm
++++ b/lib/MetaCPAN/Client/ResultSet.pm
+@@ -22,8 +22,8 @@
+ is => 'ro',
+ isa => sub {
+ use Safe::Isa;
+- $_[0]->$_isa('Search::Elasticsearch::Scroll')
+- or croak 'scroller must be an Search::Elasticsearch::Scroll object';
++ $_[0]->$_isa('Search::Elasticsearch::Client::5_0::Scroll')
++ or croak 'scroller must be an Search::Elasticsearch::Client::5_0::Scroll object';
+ },
+ predicate => 'has_scroller',
+ );
+@@ -103,7 +103,7 @@
+
+ =head2 scroller
+
+-An L<Search::Elasticsearch::Scroll> object.
++An L<Search::Elasticsearch::Client::5_0::Scroll> object.
+
+ =head2 items
+
+--- a/t/00-report-prereqs.dd
++++ b/t/00-report-prereqs.dd
+@@ -47,7 +47,7 @@
+ 'requires' => {
+ 'ExtUtils::MakeMaker' => '0',
+ 'File::Spec' => '0',
+- 'Search::Elasticsearch::Scroll' => '0',
++ 'Search::Elasticsearch::Client::5_0::Scroll' => '0',
+ 'Test::Fatal' => '0',
+ 'Test::More' => '0',
+ 'Test::Requires' => '0',
+--- a/t/api/favorite.t
++++ b/t/api/favorite.t
+@@ -15,6 +15,6 @@
+ isa_ok( $rs, 'MetaCPAN::Client::ResultSet' );
+ can_ok( $rs, qw<type scroller> );
+ is( $rs->type, 'favorite', 'Correct resultset type' );
+- isa_ok( $rs->scroller, 'Search::Elasticsearch::Scroll' );
++ isa_ok( $rs->scroller, 'Search::Elasticsearch::Client::5_0::Scroll' );
+ }
+
+--- a/t/resultset.t
++++ b/t/resultset.t
+@@ -9,7 +9,7 @@
+
+ {
+ package MetaCPAN::Client::Test::ScrollerZ;
+- use base 'Search::Elasticsearch::Scroll'; # < 5.10 FTW (except, no)
++ use base 'Search::Elasticsearch::Client::5_0::Scroll'; # < 5.10 FTW (except, no)
+ sub total {0}
+ }
+
+@@ -26,7 +26,7 @@
+
+ my $rs = MetaCPAN::Client::ResultSet->new(
+ type => 'author',
+- scroller => bless {}, 'Search::Elasticsearch::Scroll',
++ scroller => bless {}, 'Search::Elasticsearch::Client::5_0::Scroll',
+ );
+
+ isa_ok( $rs, 'MetaCPAN::Client::ResultSet' );
diff --git a/debian/patches/series b/debian/patches/series
index ce3fa4b..2126747 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
EUMM.patch
+es-scroll.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmetacpan-client-perl.git
More information about the Pkg-perl-cvs-commits
mailing list