[前][次][番号順一覧][スレッド一覧]

ruby-changes:41554

From: nobu <ko1@a...>
Date: Sat, 23 Jan 2016 11:29:22 +0900 (JST)
Subject: [ruby-changes:41554] nobu:r53628 (trunk): Update documentation of CSV header converter

nobu	2016-01-23 11:30:07 +0900 (Sat, 23 Jan 2016)

  New Revision: 53628

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

  Log:
    Update documentation of CSV header converter
    
    * lib/csv.rb: Update documentation of CSV header converter for
      r45498, [GH-575].  [Fix GH-1215]

  Modified files:
    trunk/ChangeLog
    trunk/lib/csv.rb
Index: lib/csv.rb
===================================================================
--- lib/csv.rb	(revision 53627)
+++ lib/csv.rb	(revision 53628)
@@ -982,9 +982,10 @@ class CSV https://github.com/ruby/ruby/blob/trunk/lib/csv.rb#L982
   # through the +options+ Hash passed to CSV::new().
   #
   # <b><tt>:downcase</tt></b>::  Calls downcase() on the header String.
-  # <b><tt>:symbol</tt></b>::    The header String is downcased, spaces are
-  #                              replaced with underscores, non-word characters
-  #                              are dropped, and finally to_sym() is called.
+  # <b><tt>:symbol</tt></b>::    Leading/trailing spaces are dropped, string is
+  #                              downcased, remaining spaces are replaced with
+  #                              underscores, non-word characters are dropped,
+  #                              and finally to_sym() is called.
   #
   # All built-in header converters transcode header data to UTF-8 before
   # attempting a conversion.  If your data cannot be transcoded to UTF-8 the
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53627)
+++ ChangeLog	(revision 53628)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jan 23 11:29:16 2016  Pascal Betz  <pascal.betz@s...>
+
+	* lib/csv.rb: Update documentation of CSV header converter for
+	  r45498, [GH-575].  [Fix GH-1215]
+
 Fri Jan 22 17:36:46 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* vm_core.h (VM_ASSERT): use RUBY_ASSERT instead of rb_bug.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]