[DRE-commits] [ruby-elasticsearch] 02/05: Fixed arguments hash with retry_on_status

Macártur Carvalho macartur-guest at moszumanska.debian.org
Mon Aug 1 19:55:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

macartur-guest pushed a commit to branch master
in repository ruby-elasticsearch.

commit d9f9c280013139786a230f6d4cb7962fce7b5f91
Author: Macártur Carvalho <macartur.sc at gmail.com>
Date:   Mon Aug 1 13:39:55 2016 -0300

    Fixed arguments hash with retry_on_status
---
 debian/patches/fixed_transport_client_base.patch | 20 ++++++++++++++++++++
 debian/patches/series                            |  1 +
 2 files changed, 21 insertions(+)

diff --git a/debian/patches/fixed_transport_client_base.patch b/debian/patches/fixed_transport_client_base.patch
new file mode 100644
index 0000000..c1d9cdd
--- /dev/null
+++ b/debian/patches/fixed_transport_client_base.patch
@@ -0,0 +1,20 @@
+Description: Fixing arguments[:retry_on_status]
+ The release 0.1.9 has a problem, the variable arguments needs
+ set a default key :retry_on_status. When Transport.Client.new
+ is called try to use arguments[:retry_on_status] and this
+ argument can be nil and break the execution.
+Author: Macártur Sousa <macartur.sc at gmail.com>
+Last Update: 2016-08-01
+
+Index: ruby-elasticsearch/elasticsearch-transport/lib/elasticsearch/transport/client.rb
+===================================================================
+--- ruby-elasticsearch.orig/elasticsearch-transport/lib/elasticsearch/transport/client.rb	2016-08-01 13:10:27.703856897 -0300
++++ ruby-elasticsearch/elasticsearch-transport/lib/elasticsearch/transport/client.rb	2016-08-01 13:34:42.912979294 -0300
+@@ -93,6 +93,7 @@
+         arguments[:reload_on_failure]  ||= false
+         arguments[:randomize_hosts]    ||= false
+         arguments[:transport_options]  ||= {}
++        arguments[:retry_on_status]    ||= {}
+ 
+         arguments[:transport_options].update(:request => { :timeout => arguments[:request_timeout] } ) if arguments[:request_timeout]
+ 
diff --git a/debian/patches/series b/debian/patches/series
index b6c603d..7d96edc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+fixed_transport_client_base.patch
 really-disable-ruby-prof.patch
 disable-patron-test.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-elasticsearch.git



More information about the Pkg-ruby-extras-commits mailing list