ruby-changes:38320
From: nobu <ko1@a...>
Date: Wed, 29 Apr 2015 22:22:54 +0900 (JST)
Subject: [ruby-changes:38320] nobu:r50401 (trunk): cookie.rb: trailing comma
nobu 2015-04-29 22:22:34 +0900 (Wed, 29 Apr 2015) New Revision: 50401 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50401 Log: cookie.rb: trailing comma * lib/cgi/cookie.rb: add trailing comma for further lines. Modified files: trunk/lib/cgi/cookie.rb trunk/test/cgi/test_cgi_cookie.rb Index: lib/cgi/cookie.rb =================================================================== --- lib/cgi/cookie.rb (revision 50400) +++ lib/cgi/cookie.rb (revision 50401) @@ -11,11 +11,11 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/cookie.rb#L11 # cookie1 = CGI::Cookie.new("name", "value1", "value2", ...) # cookie1 = CGI::Cookie.new("name" => "name", "value" => "value") # cookie1 = CGI::Cookie.new('name' => 'name', - # 'value' => ['value1', 'value2', ...], - # 'path' => 'path', # optional - # 'domain' => 'domain', # optional - # 'expires' => Time.now, # optional - # 'secure' => true # optional + # 'value' => ['value1', 'value2', ...], + # 'path' => 'path', # optional + # 'domain' => 'domain', # optional + # 'expires' => Time.now, # optional + # 'secure' => true, # optional # ) # # cgi.out("cookie" => [cookie1, cookie2]) { "string" } Index: test/cgi/test_cgi_cookie.rb =================================================================== --- test/cgi/test_cgi_cookie.rb (revision 50400) +++ test/cgi/test_cgi_cookie.rb (revision 50401) @@ -44,7 +44,7 @@ class CGICookieTest < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/cgi/test_cgi_cookie.rb#L44 'path'=>'/cgi-bin/myapp/', 'domain'=>'www.example.com', 'expires'=>t, - 'secure'=>true + 'secure'=>true, ) assert_equal('name1', cookie.name) assert_equal(value, cookie.value) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/