[DRE-commits] [ruby-twitter-stream] 01/01: added patch for Ruby 2.2 from 36 to 2 failed tests

Jonas Genannt genannt at moszumanska.debian.org
Mon Aug 17 12:03:39 UTC 2015


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

genannt pushed a commit to branch master
in repository ruby-twitter-stream.

commit 521566dbea1e809369f9e1868e0d897db292ed34
Author: Jonas Genannt <jonas at brachium-system.net>
Date:   Mon Aug 17 14:06:10 2015 +0200

    added patch for Ruby 2.2 from 36 to 2 failed tests
---
 debian/patches/ruby22.patch | 36 ++++++++++++++++++++++++++++++++++++
 debian/patches/series       |  1 +
 2 files changed, 37 insertions(+)

diff --git a/debian/patches/ruby22.patch b/debian/patches/ruby22.patch
new file mode 100644
index 0000000..17a5a66
--- /dev/null
+++ b/debian/patches/ruby22.patch
@@ -0,0 +1,36 @@
+From 79586924bb59d29e5b870f3dc98e2e08d2ef763f Mon Sep 17 00:00:00 2001
+From: Dominik Sander <git at dsander.de>
+Date: Sat, 28 Feb 2015 13:39:10 +0100
+Subject: [PATCH] Upgrade eventmachine to 1.0.7 and adapt to new
+ BufferedTokenizer api
+Bug: https://patch-diff.githubusercontent.com/raw/voloko/twitter-stream/pull/45
+
+--- a/lib/twitter/json_stream.rb
++++ b/lib/twitter/json_stream.rb
+@@ -6,8 +6,6 @@
+ 
+ module Twitter
+   class JSONStream < EventMachine::Connection
+-    MAX_LINE_LENGTH = 1024*1024
+-
+     # network failure reconnections
+     NF_RECONNECT_START = 0.25
+     NF_RECONNECT_ADD   = 0.25
+@@ -116,7 +114,7 @@
+     end
+ 
+     def unbind
+-      if @state == :stream && !@buffer.empty?
++      if @state == :stream
+         parse_stream_line(@buffer.flush)
+       end
+       schedule_reconnect if @options[:auto_reconnect] && !@gracefully_closed
+@@ -203,7 +201,7 @@
+       @code    = 0
+       @headers = {}
+       @state   = :init
+-      @buffer  = BufferedTokenizer.new("\r", MAX_LINE_LENGTH)
++      @buffer  = BufferedTokenizer.new("\r")
+       @stream  = ''
+ 
+       @parser  = Http::Parser.new
diff --git a/debian/patches/series b/debian/patches/series
index de058f2..b9b5465 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 test_rspec_remove_gems.patch
+ruby22.patch

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



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