raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] raindrops 0.11.0 - minor fixes improvements
@ 2013-04-20 23:14  5% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2013-04-20 23:14 UTC (permalink / raw)
  To: raindrops

Changes:

Eric Wong (7):
      raindrops: favor configured processor count over online count
      watcher: set Content-Type via assignment
      Linux::TCP_Info: implement #get! instance method
      linux_inet_diag: avoid unnecessary sockaddr initialization
      .gitignore: add .rbx
      switch back to gemspec development dependencies
      linux_inet_diag: better align listener_stats struct

Lawrence Pit (1):
      Watcher: Use relative paths in HTML links

* http://raindrops.bogomips.org/
* raindrops@librelist.org
* git://bogomips.org/raindrops.git
* http://raindrops.bogomips.org/NEWS.atom.xml

-- 
Eric Wong


^ permalink raw reply	[relevance 5%]

* [PATCH 2/3] watcher: set Content-Type via assignment
  @ 2013-04-11 23:28  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2013-04-11 23:28 UTC (permalink / raw)
  To: raindrops

Relying on String#replace to set Content-Type stopped working
with rack commit 3623d04526b953a63bfb3e72de2d6920a042563f
This fixes compatibility with the Rack 1.5.x series.
---
 lib/raindrops/watcher.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/raindrops/watcher.rb b/lib/raindrops/watcher.rb
index b7199a1..fb2df5b 100644
--- a/lib/raindrops/watcher.rb
+++ b/lib/raindrops/watcher.rb
@@ -323,7 +323,7 @@ def reset!(env, addr)
     res = Rack::Response.new
     url = req.referer || "#{req.host_with_port}/"
     res.redirect(url)
-    res.content_type.replace "text/plain"
+    res["Content-Type"] = "text/plain"
     res.write "Redirecting to #{url}"
     res.finish
   end
-- 
1.8.2.279.g631bc94



^ 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 --
2013-04-11 23:28     [PATCH 1/3] raindrops: favor configured processor count over online count Eric Wong
2013-04-11 23:28  7% ` [PATCH 2/3] watcher: set Content-Type via assignment Eric Wong
2013-04-20 23:14  5% [ANN] raindrops 0.11.0 - minor fixes improvements 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).