clogger RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / Atom feed
* [PATCH] pure: remove Rack::Utils.bytesize dependency
@ 2016-07-28  0:06 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2016-07-28  0:06 UTC (permalink / raw)
  To: clogger-public

This method is gone from rack 2.0 and not even necessary in Ruby
1.8.7.  Yes, this breaks compatibility with Ruby 1.8.6 :P
 lib/clogger/pure.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/clogger/pure.rb b/lib/clogger/pure.rb
index 5e7ccfe..77f81b4 100644
--- a/lib/clogger/pure.rb
+++ b/lib/clogger/pure.rb
@@ -53,7 +53,7 @@ class Clogger
   def each
     @body_bytes_sent = 0
     @body.each do |part|
-      @body_bytes_sent += Rack::Utils.bytesize(part)
+      @body_bytes_sent += part.bytesize
       yield part

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-28  0:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-28  0:06 [PATCH] pure: remove Rack::Utils.bytesize dependency Eric Wong

clogger RubyGem user+dev discussion/patches/pulls/bugs/help

This inbox may be cloned and mirrored by anyone:

	git clone --mirror
	git clone --mirror http://ou63pmih66umazou.onion/clogger-public

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 clogger-public clogger-public/ \
	public-inbox-index clogger-public

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor:

code repositories for the project(s) associated with this inbox:


AGPL code for this site: git clone