clogger RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
 Warning: Initial query:
 %22pure: remove Rack::Utils.bytesize dependency%22
 returned no results, used:
 "pure: remove Rack::Utils.bytesize dependency"
 instead

Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] clogger 2.1.0 - configurable request logging for Rack
@ 2016-07-28  2:27  6% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2016-07-28  2:27 UTC (permalink / raw)
  To: clogger-public; +Cc: ruby-talk

Clogger is Rack middleware for logging HTTP requests.  The log format
is customizable so you can specify exactly which fields to log.

* https://bogomips.org/clogger/
* mail archives: https://bogomips.org/clogger-public/
* email us: clogger-public@bogomips.org (publically archived)
* git clone https://bogomips.org/clogger.git
* https://bogomips.org/clogger/NEWS.atom.xml

Changes: clogger 2.1.0 - rack 2.x compatibility and more!

5 changes since 2.0.2:
      test_clogger: add test for REMOTE_USER
      ext: avoid clobbering existing system functions
      pure: remove Rack::Utils.bytesize dependency
      loosen rack dependency to allow rack 2.x
      doc use HTTPS for URLs and move homepage

Note the new HTTPS homepage.

Coming soon:
- hidden service mirrors for the homepage + git host
- POP3 mailing list subscriptions!

^ permalink raw reply	[relevance 6%]

* [PATCH] pure: remove Rack::Utils.bytesize dependency
@ 2016-07-28  0:06  7% Eric Wong
  0 siblings, 0 replies; 2+ results
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
     end
     self
-- 
EW


^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-07-28  0:06  7% [PATCH] pure: remove Rack::Utils.bytesize dependency Eric Wong
2016-07-28  2:27  6% [ANN] clogger 2.1.0 - configurable request logging for Rack Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/clogger.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).