def to_web_uri(uri_scheme='https')
      return nil if normalized_host.to_s.empty?
      Addressable::URI.new(:scheme => uri_scheme, :host => normalized_host, :port => normalized_port, :path => normalized_path.sub(%r#\.git/?$#, ''))
    end
def to_web_uri(uri_scheme='https')
      return nil if normalized_host.to_s.empty?
      Addressable::URI.new(:scheme => uri_scheme, :host => normalized_host, :port => normalized_port, :path => normalized_path.sub(%r#\.git/?$#, ''))
    end
Create a web link uri for repositories that follow the github pattern.

 This probably won't work for all git hosts, so it's a good idea to use
 this in conjunction with #github? or #bitbucket? to help ensure correct
 links.

 @param [String] Scheme of the web uri (smart defaults)
 @return [Addressable::URI] https://#{host}/#{path_without_git_extension}