ruby-changes:36177
From: hsbt <ko1@a...>
Date: Tue, 4 Nov 2014 12:21:58 +0900 (JST)
Subject: [ruby-changes:36177] hsbt:r48258 (trunk): * lib/csv.rb: added documentation for skip_blanks option by @decasia
hsbt 2014-11-04 12:21:50 +0900 (Tue, 04 Nov 2014) New Revision: 48258 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48258 Log: * lib/csv.rb: added documentation for skip_blanks option by @decasia [fix GH-744][ci skip] Modified files: trunk/ChangeLog trunk/lib/csv.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48257) +++ ChangeLog (revision 48258) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Nov 4 12:21:45 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * lib/csv.rb: added documentation for skip_blanks option by @decasia + [fix GH-744][ci skip] + Tue Nov 4 12:09:18 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> * lib/open3.rb: fix code formatting in documentation by @JoshCheek Index: lib/csv.rb =================================================================== --- lib/csv.rb (revision 48257) +++ lib/csv.rb (revision 48258) @@ -1470,7 +1470,15 @@ class CSV https://github.com/ruby/ruby/blob/trunk/lib/csv.rb#L1470 # if the data cannot be transcoded, # leaving the header unchanged. # <b><tt>:skip_blanks</tt></b>:: When set to a +true+ value, CSV will - # skip over any rows with no content. + # skip over any empty rows. Note that + # this setting will not skip rows that + # contain column separators, even if + # the rows contain no actual data. If + # you want to skip rows that contain + # separators but no content, consider + # using <tt>:skip_lines</tt>, or + # inspecting fields.compact.empty? on + # each row. # <b><tt>:force_quotes</tt></b>:: When set to a +true+ value, CSV will # quote all CSV fields it creates. # <b><tt>:skip_lines</tt></b>:: When set to an object responding to -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/