Project

General

Profile

Feature #11358

[PATCH] ARGF.read_nonblock should support `exception: false'

Added by normalperson (Eric Wong) almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:70000]

Description

io.c (argf_read_nonblock): support `exception: false'

This is a preparation for [ruby-core:69892]
("io.c: avoid kwarg parsing in C API")
since I noticed ARGF.read_nonblock did not properly catch up to
the `exception: false' change.

* io.c (argf_read_nonblock): support `exception: false'
  (io_nonblock_eof): new function
  (io_read_nonblock): use io_nonblock_eof
  (argf_getpartial): accept kwargs hash for `exception: false'

* test/ruby/test_argf.rb (test_read_nonblock): new test

Seems like a no brainer, will commit soon

Files

Associated revisions

Revision d4454d01
Added by normal almost 4 years ago

io.c (argf_read_nonblock): support `exception: false'

This is a preparation for [ruby-core:69892]
("io.c: avoid kwarg parsing in C API")
since I noticed ARGF.read_nonblock did not properly catch up to
the `exception: false' change.

  • io.c (argf_read_nonblock): support exception: false' (io_nonblock_eof): new function (io_read_nonblock): use io_nonblock_eof (argf_getpartial): accept kwargs hash forexception: false'
  • test/ruby/test_argf.rb (test_read_nonblock): new test [ruby-core:70000] [Feature #11358]
  • NEWS: add item for ARGF.read_nonblock

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 51285
Added by normalperson (Eric Wong) almost 4 years ago

io.c (argf_read_nonblock): support `exception: false'

This is a preparation for [ruby-core:69892]
("io.c: avoid kwarg parsing in C API")
since I noticed ARGF.read_nonblock did not properly catch up to
the `exception: false' change.

  • io.c (argf_read_nonblock): support exception: false' (io_nonblock_eof): new function (io_read_nonblock): use io_nonblock_eof (argf_getpartial): accept kwargs hash forexception: false'
  • test/ruby/test_argf.rb (test_read_nonblock): new test [ruby-core:70000] [Feature #11358]
  • NEWS: add item for ARGF.read_nonblock

Revision 51285
Added by normal almost 4 years ago

io.c (argf_read_nonblock): support `exception: false'

This is a preparation for [ruby-core:69892]
("io.c: avoid kwarg parsing in C API")
since I noticed ARGF.read_nonblock did not properly catch up to
the `exception: false' change.

  • io.c (argf_read_nonblock): support exception: false' (io_nonblock_eof): new function (io_read_nonblock): use io_nonblock_eof (argf_getpartial): accept kwargs hash forexception: false'
  • test/ruby/test_argf.rb (test_read_nonblock): new test [ruby-core:70000] [Feature #11358]
  • NEWS: add item for ARGF.read_nonblock

Revision 51285
Added by normal almost 4 years ago

io.c (argf_read_nonblock): support `exception: false'

This is a preparation for [ruby-core:69892]
("io.c: avoid kwarg parsing in C API")
since I noticed ARGF.read_nonblock did not properly catch up to
the `exception: false' change.

  • io.c (argf_read_nonblock): support exception: false' (io_nonblock_eof): new function (io_read_nonblock): use io_nonblock_eof (argf_getpartial): accept kwargs hash forexception: false'
  • test/ruby/test_argf.rb (test_read_nonblock): new test [ruby-core:70000] [Feature #11358]
  • NEWS: add item for ARGF.read_nonblock

Revision 51285
Added by normal almost 4 years ago

io.c (argf_read_nonblock): support `exception: false'

This is a preparation for [ruby-core:69892]
("io.c: avoid kwarg parsing in C API")
since I noticed ARGF.read_nonblock did not properly catch up to
the `exception: false' change.

  • io.c (argf_read_nonblock): support exception: false' (io_nonblock_eof): new function (io_read_nonblock): use io_nonblock_eof (argf_getpartial): accept kwargs hash forexception: false'
  • test/ruby/test_argf.rb (test_read_nonblock): new test [ruby-core:70000] [Feature #11358]
  • NEWS: add item for ARGF.read_nonblock

Revision 51285
Added by normal almost 4 years ago

io.c (argf_read_nonblock): support `exception: false'

This is a preparation for [ruby-core:69892]
("io.c: avoid kwarg parsing in C API")
since I noticed ARGF.read_nonblock did not properly catch up to
the `exception: false' change.

  • io.c (argf_read_nonblock): support exception: false' (io_nonblock_eof): new function (io_read_nonblock): use io_nonblock_eof (argf_getpartial): accept kwargs hash forexception: false'
  • test/ruby/test_argf.rb (test_read_nonblock): new test [ruby-core:70000] [Feature #11358]
  • NEWS: add item for ARGF.read_nonblock

Revision 9885c1c7
Added by kazu over 1 year ago

Update call-seq of ARGF.read_nonblock

ARGF.read_nonblock supports `exception: false' like IO#read_nonblock
since 2.3.0.
[Feature #11358]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 60401
Added by znz (Kazuhiro NISHIYAMA) over 1 year ago

Update call-seq of ARGF.read_nonblock

ARGF.read_nonblock supports `exception: false' like IO#read_nonblock
since 2.3.0.
[Feature #11358]

Revision 60401
Added by kazu over 1 year ago

Update call-seq of ARGF.read_nonblock

ARGF.read_nonblock supports `exception: false' like IO#read_nonblock
since 2.3.0.
[Feature #11358]

Revision 60401
Added by kazu over 1 year ago

Update call-seq of ARGF.read_nonblock

ARGF.read_nonblock supports `exception: false' like IO#read_nonblock
since 2.3.0.
[Feature #11358]

History

#1

Updated by Anonymous almost 4 years ago

  • Status changed from Open to Closed

Applied in changeset r51285.


io.c (argf_read_nonblock): support `exception: false'

This is a preparation for [ruby-core:69892]
("io.c: avoid kwarg parsing in C API")
since I noticed ARGF.read_nonblock did not properly catch up to
the `exception: false' change.

  • io.c (argf_read_nonblock): support exception: false' (io_nonblock_eof): new function (io_read_nonblock): use io_nonblock_eof (argf_getpartial): accept kwargs hash forexception: false'
  • test/ruby/test_argf.rb (test_read_nonblock): new test [ruby-core:70000] [Feature #11358]
  • NEWS: add item for ARGF.read_nonblock

Also available in: Atom PDF