couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Getting_started_with_Ruby" by RubyMate
Date Thu, 18 Feb 2010 22:02:06 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Getting_started_with_Ruby" page has been changed by RubyMate.
http://wiki.apache.org/couchdb/Getting_started_with_Ruby?action=diff&rev1=2&rev2=3

--------------------------------------------------

  
    class Server
      def initialize(host, port, options = nil)
-       @host = host;
+       @host = host
-       @port = port;
+       @port = port
-       @options = options;
+       @options = options
      end
  
      def delete(uri)
@@ -41, +41 @@

      end
  
      def request(req)
-       res = Net::HTTP.start(@host, @port) {|http|
+       res = Net::HTTP.start(@host, @port) { |http|http.request(req) }
-         http.request(req)
-       }
        if (not res.kind_of?(Net::HTTPSuccess))
          handle_error(req, res)
        end

Mime
View raw message