lib/net/dav.rb in net_dav-0.0.1 vs lib/net/dav.rb in net_dav-0.0.2

- old
+ new

@@ -2,19 +2,10 @@ require 'uri' require 'nokogiri' module Net #:nodoc: class DAV - # :stopdoc: - VERSION = '0.0.1' - # :startdoc: - - # Returns the library version string - def self.version - VERSION - end - # Seconds to wait until reading one block (by one system call). # If the DAV object cannot read a block in this many seconds, # it raises a TimeoutError exception. # def read_timeout @@ -55,10 +46,10 @@ # The path part of the URI is used to handle relative URLs # in subsequent requests. def initialize(uri) @uri = uri @uri = URI.parse(@uri) if @uri.is_a? String - case uri.scheme + case @uri.scheme when "http" @http = Net::HTTP.new(@uri.host, @uri.port) when "https" else raise "unknown uri scheme"