* [ANN] raindrops 0.19.0 - real-time stats for preforking Rack servers
@ 2017-08-09 23:56 5% Eric Wong
0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2017-08-09 23:56 UTC (permalink / raw)
To: ruby-talk, raindrops-public; +Cc: Dmytro Shteflyuk
raindrops is a real-time stats toolkit to show statistics for Rack HTTP
servers. It is designed for preforking servers such as unicorn, but
should support any Rack HTTP server on platforms supporting POSIX shared
memory. It may also be used as a generic scoreboard for sharing atomic
counters across multiple processes.
* https://bogomips.org/raindrops/
* No subscription necessary, no HTML mail:
raindrops-public@bogomips.org
* mail archives: https://bogomips.org/raindrops-public/
http://ou63pmih66umazou.onion/raindrops-public/
nntp://news.public-inbox.org/inbox.comp.lang.ruby.raindrops
nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.raindrops
* git clone git://bogomips.org/raindrops.git
* https://bogomips.org/raindrops/NEWS.atom.xml
* Demo site: https://raindrops-demo.bogomips.org:8443/
Changes:
raindrops 0.19.0 - Rack 2.x middleware compatibility
This release fixes Rack 2.x compatibility for the few users of
Raindrops::Middleware
<https://bogomips.org/raindrops/Raindrops/Middleware.html>.
Thanks to Dmytro Shteflyuk for this release.
No need to upgrade unless you use Raindrops::Middleware with
Rack 2.x.
There's also a few minor, inconsequential cleanups.
Dmytro Shteflyuk (1):
Properly override respond_to? in Raindrops::Middleware::Proxy
Eric Wong (2):
Ruby thread compatibility updates
tcp_info: remove unnecessary extconf.h include
--
-_-
^ permalink raw reply [relevance 5%]
* Re: [PATCH] Properly override respond_to? in Raindrops::Middleware::Proxy
2017-07-25 20:02 6% [PATCH] Properly override respond_to? in Raindrops::Middleware::Proxy Dmytro Shteflyuk
@ 2017-07-25 21:38 7% ` Eric Wong
0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2017-07-25 21:38 UTC (permalink / raw)
To: Dmytro Shteflyuk; +Cc: raindrops-public
Thanks! Pushed as 35561c491584a22b82dec5f37b84f792aa8a278b
Anything else? I suppose we can should release 0.19.0 soon.
^ permalink raw reply [relevance 7%]
* [PATCH] Properly override respond_to? in Raindrops::Middleware::Proxy
@ 2017-07-25 20:02 6% Dmytro Shteflyuk
2017-07-25 21:38 7% ` Eric Wong
0 siblings, 1 reply; 3+ results
From: Dmytro Shteflyuk @ 2017-07-25 20:02 UTC (permalink / raw)
To: raindrops-public; +Cc: Dmytro Shteflyuk
Correct method definition according to Ruby documentation (https://ruby-doc.org/core-2.4.1/Object.html#method-i-respond_to-3F) is:
respond_to?(string, include_all=false) → true or false
Rack started using second argument starting from version 2:
https://github.com/rack/rack/blob/master/lib/rack/body_proxy.rb#L14
If raindrops is used in Rack 2+ applications, an exception is raised:
ArgumentError: wrong number of arguments (2 for 1)
<ROOT>/gems/raindrops-0.18.0/lib/raindrops/middleware/proxy.rb:30:in `respond_to?'
<ROOT>/gems/rack-2.0.3/lib/rack/body_proxy.rb:14:in `respond_to?'
---
lib/raindrops/middleware/proxy.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/raindrops/middleware/proxy.rb b/lib/raindrops/middleware/proxy.rb
index 1cf437c..a7c8e66 100644
--- a/lib/raindrops/middleware/proxy.rb
+++ b/lib/raindrops/middleware/proxy.rb
@@ -27,9 +27,9 @@ def to_path
# Rack servers use +respond_to?+ to check for the presence of +close+
# and +to_path+ methods.
- def respond_to?(m)
+ def respond_to?(m, include_all = false)
m = m.to_sym
- :close == m || @body.respond_to?(m)
+ :close == m || @body.respond_to?(m, include_all)
end
# Avoid breaking users of non-standard extensions (e.g. #body)
--
2.13.2
^ permalink raw reply related [relevance 6%]
Results 1-3 of 3 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-07-25 20:02 6% [PATCH] Properly override respond_to? in Raindrops::Middleware::Proxy Dmytro Shteflyuk
2017-07-25 21:38 7% ` Eric Wong
2017-08-09 23:56 5% [ANN] raindrops 0.19.0 - real-time stats for preforking Rack servers Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/raindrops.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).