mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
Merge csv-3.2.3
This commit is contained in:
parent
a9bf13a4df
commit
c69fffe67d
13 changed files with 1431 additions and 364 deletions
|
@ -4,20 +4,7 @@ require "stringio"
|
|||
class CSV
|
||||
module InputRecordSeparator
|
||||
class << self
|
||||
is_input_record_separator_deprecated = false
|
||||
verbose, $VERBOSE = $VERBOSE, true
|
||||
stderr, $stderr = $stderr, StringIO.new
|
||||
input_record_separator = $INPUT_RECORD_SEPARATOR
|
||||
begin
|
||||
$INPUT_RECORD_SEPARATOR = "\r\n"
|
||||
is_input_record_separator_deprecated = (not $stderr.string.empty?)
|
||||
ensure
|
||||
$INPUT_RECORD_SEPARATOR = input_record_separator
|
||||
$stderr = stderr
|
||||
$VERBOSE = verbose
|
||||
end
|
||||
|
||||
if is_input_record_separator_deprecated
|
||||
if RUBY_VERSION >= "3.0.0"
|
||||
def value
|
||||
"\n"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue