[ruby-cvs:53736] naruse:r46590 (trunk): * lib/uri/mailto.rb: update to latest specs, RFC 6068 and HTML5.

naruse at ruby-lang.org naruse at ruby-lang.org
Sat Jun 28 04:26:44 JST 2014


naruse	2014-06-28 04:26:43 +0900 (Sat, 28 Jun 2014)

  New Revision: 46590

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46590

  Log:
    * lib/uri/mailto.rb: update to latest specs, RFC 6068 and HTML5.
    
    * lib/uri/mailto.rb (HEADER_PATTERN): removed.
    
    * lib/uri/mailto.rb (HEADER_REGEXP): use RFC 6068 hfields.
    
    * lib/uri/mailto.rb (EMAIL_REGEXP): use HTML5 email regexp.
    
    * lib/uri/mailto.rb (URI::MailTo.build): support multiple to addresses.
    
    * lib/uri/mailto.rb (URI::MailTo#initialize): Support multiple to
      addresses. Don't check with regexp, only split.
    
    * lib/uri/mailto.rb (URI::MailTo#check_to): verify by matching
      URI path-rootless and HTML5 email regexp with unescaped one.
    
    * lib/uri/mailto.rb (URI::MailTo#check_headers): verify only by
      HEADER_REGEXP.
    
    * lib/uri/mailto.rb (URI::MailTo#set_headers): don't check by
      HEADER_REGEXP, only split it.

  Modified files:
    trunk/ChangeLog
    trunk/lib/uri/mailto.rb
    trunk/test/uri/test_mailto.rb


More information about the ruby-cvs mailing list