| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-05-01 | io.rb,print.rb: `puts` to expand array arguments. | Yukihiro "Matz" Matsumoto | |
| As CRuby behaves. | |||
| 2021-04-29 | Fix typo in `mrbgems/mruby-io/mrblib/io.rb`; ref cb55e7eca | KOBAYASHI Shuji | |
| 2021-04-28 | io.rb: reimplement `IO#each_char`. | Yukihiro "Matz" Matsumoto | |
| It used to be an alias to `IO#each_byte` but those methods should have behave differently. | |||
| 2021-04-13 | mruby-io: fix `IO#ungetbyte`; ref #5389 | Yukihiro "Matz" Matsumoto | |
| - remove `Integer#chr` (thus `mruby-sting-ext`) dependency - fix the behavior when `c.is_a? String` - fix the behavior when `c > 255` | |||
| 2021-04-10 | io.rb: fix `IO#getbyte` to work with UTF-8 characters; ref #5389 | Yukihiro "Matz" Matsumoto | |
| 2021-04-10 | io.rb: add `IO#readbyte`; ref #5389 | Yukihiro "Matz" Matsumoto | |
| 2021-04-10 | io.rb: `@buf` should be empty on `EOF`; #4983, #5389 | Yukihiro "Matz" Matsumoto | |
| 2021-04-10 | Add IO#getbyte | take-cheeze | |
| 2020-10-12 | Integrate `Fixnum` class into `Integer` class | dearblue | |
| * The `Fixnum` constant is now an alias for the `Integer` class. * Remove `struct mrb_state::fixnum_class` member. If necessary, use `struct mrb_state::integer_class` instead. | |||
| 2020-09-13 | Fix `File.extname` bug; fix #5077 | Yukihiro "Matz" Matsumoto | |
| 2020-08-10 | Avoid using `mrb_funcall()` from `mruby-io` gem. | Yukihiro "Matz" Matsumoto | |
| 2020-04-28 | Fix `IO#readchar` to return broken UTF-8 rather than `EOF` error. | Yukihiro "Matz" Matsumoto | |
| The behavior is different from CRuby, but we believe this is a right behavior for mruby, which only supports either ASCII or UTF-8 exclusively; fix #4983, ref #4982 ``` $ printf '\xe3\x81' | ruby -e 'p STDIN.readchar' "\xE3\x81" ``` ``` $ printf '\xe3\x81' | mruby -e 'p STDIN.readchar' "\xE3" ``` | |||
| 2020-04-28 | Fix `IO#readchar` to support UTF-8 char reading; fix #4712 | Yukihiro "Matz" Matsumoto | |
| This fix only effective when `MRB_UTF8_STRING` is set. | |||
| 2020-04-28 | Fix `_read_buf` to be more efficient; fix #4982 | Yukihiro "Matz" Matsumoto | |
| The bug was introduced by #4712. The `getc' problem resurrected. It should be addressed soon. | |||
| 2020-04-28 | Update `IO#ungetc` to keep `@buf` string; ref #4982 | Yukihiro "Matz" Matsumoto | |
| 2020-01-28 | Merge pull request #4873 from dearblue/open-flags | Yukihiro "Matz" Matsumoto | |
| Support bit flags for `IO.open` | |||
| 2019-12-14 | Support bit flags for `IO.open` | dearblue | |
| Note that this bit flags are not compatible with the native flags defined in `#include <fcntl.h>`. | |||
| 2019-12-14 | Avoid method in method | dearblue | |
| And rename `File.concat_path` to `File._concat_path`. | |||
| 2019-10-21 | Remove `Kernel#getc` | KOBAYASHI Shuji | |
| `Kernel#getc` has been removed since Ruby 1.9 and is not defined in ISO. | |||
| 2019-10-18 | Move methods of `Kernel` to `kernel.rb` from `io.rb` in `mruby-io` gem | KOBAYASHI Shuji | |
| 2019-10-17 | Make `IO#each` family without block to return `Enumerator` | KOBAYASHI Shuji | |
| 2019-10-11 | Remove unused exception classes in `mruby-io` gem | KOBAYASHI Shuji | |
| 2019-09-16 | Add small fix over #4712 | Yukihiro "Matz" Matsumoto | |
| 2019-09-16 | Fix broken UTF-8 characters by `IO#getc` | dearblue | |
| Character (multi-byte UTF-8) is destroyed when character spanning `IO::BUF_SIZE` (4096 bytes) exist. - Prepare file: ```ruby File.open("sample", "wb") { |f| f << "●" * 1370 } ``` - Before patched: ```ruby File.open("sample") { |f| a = []; while ch = f.getc; a << ch; end; p a } # => ["●", "●", ..., "●", "\xe2", "\x97", "\x8f", "●", "●", "●", "●"] - After patched: ```ruby File.open("sample") { |f| a = []; while ch = f.getc; a << ch; end; p a } # => ["●", "●", ..., "●", "●", "●", "●", "●", "●"] | |||
| 2019-09-16 | Small improvement for mruby-io | dearblue | |
| 2019-09-16 | Fix `IO#pos` | dearblue | |
| 2019-09-16 | Revert part of 8c90b5fc6 | dearblue | |
| `IO#readline` and `IO#readchar` process in character units. | |||
| 2019-09-14 | Replace `String#byteslice` by custom `IO._bufread`. | Yukihiro "Matz" Matsumoto | |
| `byteslice` creates 2 string objects. `_bufread` creates one, and modifies the original buffer string, that is more efficient. | |||
| 2019-09-12 | Remove `$/` from mruby implementation. | Yukihiro "Matz" Matsumoto | |
| 1. `$/` and other Perl-ish global variables are not defined in ISO. 2. The current Ruby policy do not encourage those variables. 3. Those variables has global effect and can cause troubles. | |||
| 2019-09-11 | Fixed `length` for IO should be in bytes, not in characters; #4696 | Yukihiro "Matz" Matsumoto | |
| E.g. `io.read(5)` should read 5 byte string, not 5 characters. | |||
| 2018-02-23 | Pass same mode parameter to `IO.sysopen` and `IO.open` in `IO.read`. | Takeshi Watanabe | |
| 2017-12-07 | Add 'mrbgems/mruby-io/' from commit '3c8e1f94c44252c836f79a48bb17726da28e2756' | Yukihiro "Matz" Matsumoto | |
| git-subtree-dir: mrbgems/mruby-io git-subtree-mainline: 10ed730e4bd921cf4d8fe6f6d2e3cb3f0840f3b7 git-subtree-split: 3c8e1f94c44252c836f79a48bb17726da28e2756 | |||
