From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=0.0 required=3.0 tests=MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Pratik Naik Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: [PATCH] Remove deprecated Rainbows::HttpResponse Date: Fri, 5 Aug 2011 22:24:21 +0100 Message-ID: <1312579461-17223-1-git-send-email-pratiknaik@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1312579827 467 80.91.229.12 (5 Aug 2011 21:30:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2011 21:30:27 +0000 (UTC) Cc: Pratik Naik To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Fri Aug 05 23:30:23 2011 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=hTotPeKCRU/wtqBLOavAWjMrm6Pb0VWAM8PGemhBnOc=; b=Gs1GqVGleNEd+p+BHfQPE328BxMNWeO4Gnu7hztRD/WPlTqaPunCXaKEtYEDq2/o2b hjEhbW2/N3QhD8wMYYYgVQ+aPkcE0OsrXwtU3tLR3oJv1jjGbxUWguEYVMeOM2vndolq grKfzlZcw9n4USmmw21DAth2uW2+TT6RZiaws= X-Mailer: git-send-email 1.7.3.4 X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:280 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QpRyI-00065s-Ps for gclrrg-rainbows-talk@m.gmane.org; Fri, 05 Aug 2011 23:30:23 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id BA0681678338; Fri, 5 Aug 2011 17:30:21 -0400 (EDT) Received: from mail-wy0-f178.google.com (mail-wy0-f178.google.com [74.125.82.178]) by rubyforge.org (Postfix) with ESMTP id E2CEF18583AD for ; Fri, 5 Aug 2011 17:24:32 -0400 (EDT) Received: by wyg19 with SMTP id 19so699582wyg.23 for ; Fri, 05 Aug 2011 14:24:31 -0700 (PDT) Received: by 10.216.81.9 with SMTP id l9mr993143wee.12.1312579471485; Fri, 05 Aug 2011 14:24:31 -0700 (PDT) Received: from localhost.localdomain (host86-144-165-228.range86-144.btcentralplus.com [86.144.165.228]) by mx.google.com with ESMTPS id m46sm2078219weq.29.2011.08.05.14.24.29 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Aug 2011 14:24:30 -0700 (PDT) --- lib/rainbows.rb | 1 - lib/rainbows/http_response.rb | 26 -------------------------- 2 files changed, 0 insertions(+), 27 deletions(-) delete mode 100644 lib/rainbows/http_response.rb diff --git a/lib/rainbows.rb b/lib/rainbows.rb index 3bf7717..bfa1ba0 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -121,7 +121,6 @@ module Rainbows autoload :Fiber, 'rainbows/fiber' # core class autoload :StreamFile, 'rainbows/stream_file' - autoload :HttpResponse, 'rainbows/http_response' # deprecated autoload :ThreadTimeout, 'rainbows/thread_timeout' autoload :WorkerYield, 'rainbows/worker_yield' autoload :SyncClose, 'rainbows/sync_close' diff --git a/lib/rainbows/http_response.rb b/lib/rainbows/http_response.rb deleted file mode 100644 index 564d2d0..0000000 --- a/lib/rainbows/http_response.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -*- encoding: binary -*- -# :enddoc: -# deprecated, use Rainbows::Response instead -# Cramp 0.11 relies on this, and is only activated by Cramp -if defined?(Cramp) && defined?(Rainbows::EventMachine::Client) - class Rainbows::HttpResponse - # dummy method for Cramp to alias_method_chain - def self.write(client, response, out) - end - end - - module Rainbows::EventMachine::CrampSocket - def em_write_response(response, alive = false) - if websocket? - write web_socket_upgrade_data - web_socket_handshake! - response[1] = nil # disable response headers - end - super - end - end - - class Rainbows::EventMachine::Client - include Rainbows::EventMachine::CrampSocket - end -end -- 1.7.3.4 _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying