Project

General

Profile

Actions

Bug #4711

closed

documentation updates: Net::POP3 and Net::Telnet are 100%

Added by vbatts (Vincent Batts) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2011-05-16 trunk 31589) [x86_64-linux]
Backport:
[ruby-core:36227]

Description

per http://blog.segment7.net/2011/05/09/ruby-1-9-3-documentation-challenge

This patch includes the following bits.

class Net::Telnet # is documented

in file lib/net/telnet.rb

def close(); end

end

class Net::POP3 # is documented

in file lib/net/pop.rb

Revision = nil

in file lib/net/pop.rb

def certs(); end

in file lib/net/pop.rb

def create_ssl_params(verify_or_params = {}, certs = nil); end

in file lib/net/pop.rb

def ssl_params(); end

in file lib/net/pop.rb

def use_ssl?(); end

in file lib/net/pop.rb

def verify(); end

in file lib/net/pop.rb

def command(); end

in file lib/net/pop.rb

def disable_ssl(); end

in file lib/net/pop.rb

def do_finish(); end

in file lib/net/pop.rb

def do_start(account, password); end

in file lib/net/pop.rb

def logging(msg); end

in file lib/net/pop.rb

def on_connect(); end

end


Files

Updated by vbatts (Vincent Batts) almost 13 years ago

meh, i missed a single line comment for def disable_ssl(); end

see the attached updated patch

Actions #2

Updated by drbrain (Eric Hodel) almost 13 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r31602.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/net/pop.rb: Improve documentation. Patch by Vincent Batts.
    [Ruby 1.9 - Bug #4711]
    • lib/net/telnet.rb: ditto

Updated by mame (Yusuke Endoh) almost 13 years ago

  • Status changed from Closed to Open

Hello,

  • internal method for Net::POP3.start

    def do_start(account, password)

  • Does nothing

    def on_connect
    end
    private :on_connect

  • nil's out the:

  • - mails

  • - number counter for mails

  • - number counter for bytes

  • - quits the current command, if any

    def do_finish

Is any comment needed there?
If so, they should be more verbose.
I think that :nodoc: is a good idea here.

--
Yusuke Endoh

Actions #4

Updated by drbrain (Eric Hodel) almost 13 years ago

  • Status changed from Open to Closed

This issue was solved with changeset r31728.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/net/pop.rb: Hide implementation details from RDoc.
    [Ruby 1.9 - Bug #4711]

Updated by drbrain (Eric Hodel) almost 13 years ago

What is the on_connect method for? Net::HTTP has an empty on_connect method also, is it for subclasses of Net::HTTP and Net::POP3?

Updated by usa (Usaku NAKAMURA) almost 13 years ago

What is the on_connect method for? Net::HTTP has an empty on_connect method also, is it for subclasses of Net::HTTP and Net::POP3?

I guess so.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0