Kouhei Sutou 2019-03-28 17:57:12 +0900 (Thu, 28 Mar 2019) Revision: 3285f1eeba8d20366e45f50c949520e04808fe64 https://github.com/ranguba/chupa-text/commit/3285f1eeba8d20366e45f50c949520e04808fe64 Message: Add support for Ruby 2.5 or earlier again Modified files: lib/chupa-text/decomposers/http-server.rb Modified: lib/chupa-text/decomposers/http-server.rb (+3 -1) =================================================================== --- lib/chupa-text/decomposers/http-server.rb 2019-03-28 15:52:04 +0900 (b2f277c) +++ lib/chupa-text/decomposers/http-server.rb 2019-03-28 17:57:12 +0900 (e023ffd) @@ -64,7 +64,9 @@ module ChupaText if data.timeout.is_a?(Numeric) http.open_timeout = data.timeout * 1.5 http.read_timeout = data.timeout * 1.5 - http.write_timeout = data.timeout * 1.5 + if http.respond_to?(:write_timeout=) + http.write_timeout = data.timeout * 1.5 + end end begin http.start do -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190328/7c18650d/attachment.html>