| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-06-05 | Revert part of #5019 (`mruby_io_test.c`) to honor #4987 | Yukihiro "Matz" Matsumoto | |
| The issue was reported by @shuujii. | |||
| 2020-06-05 | Merge master. | Hiroshi Mimaki | |
| 2020-06-03 | Hiding method implementation C functions in mruby-io | dearblue | |
| 2020-05-07 | Should not use `assert` with expressions with side-effect; ref #49812.1.1-rc2 | Yukihiro "Matz" Matsumoto | |
| `assert()` can be completely removed when `NDEBUG` is set. | |||
| 2020-05-07 | Fixed wrong condition in #4981. | Yukihiro "Matz" Matsumoto | |
| 2020-05-07 | Add `#include <string.h>` on all platforms for `strncpy`; #4981 | Yukihiro "Matz" Matsumoto | |
| 2020-05-07 | Avoid `snprintf` in `mruby-io` test; ref #4981 | Yukihiro "Matz" Matsumoto | |
| 2020-05-07 | Remove the temporary file from the `AF_UNIX` socket test; #4981 | Yukihiro "Matz" Matsumoto | |
| 2020-05-01 | Fix typo and include location | Uchio Kondo | |
| 2020-05-01 | Skip socket check on windows | Uchio Kondo | |
| 2020-05-01 | Follow C90 style | Uchio Kondo | |
| 2020-05-01 | Test mruby-io in tmpdir when AF_UNIX cannot be created on cwd | Uchio Kondo | |
| 2020-04-29 | Avoid changing directory in `mruby-io` test | KOBAYASHI Shuji | |
| 2020-04-28 | Should not use `assert` with expressions with side-effect; ref #4981 | Yukihiro "Matz" Matsumoto | |
| `assert()` can be completely removed when `NDEBUG` is set. | |||
| 2020-04-28 | Fixed wrong condition in #4981. | Yukihiro "Matz" Matsumoto | |
| 2020-04-28 | Add `#include <string.h>` on all platforms for `strncpy`; #4981 | Yukihiro "Matz" Matsumoto | |
| 2020-04-28 | Avoid `snprintf` in `mruby-io` test; ref #4981 | Yukihiro "Matz" Matsumoto | |
| 2020-04-28 | Remove the temporary file from the `AF_UNIX` socket test; #4981 | Yukihiro "Matz" Matsumoto | |
| 2020-04-28 | Fix typo and include location | Uchio Kondo | |
| 2020-04-28 | Skip socket check on windows | Uchio Kondo | |
| 2020-04-28 | Follow C90 style | Uchio Kondo | |
| 2020-04-28 | Test mruby-io in tmpdir when AF_UNIX cannot be created on cwd | Uchio Kondo | |
| 2020-04-12 | Check the file descriptor with `IO#initialize`; resolve #4966 | dearblue | |
| 2020-03-08 | Remove unnecessary 'stdio.h'; ref #4947 | dearblue | |
| 'stdio.h' is included in 'mruby.h' ('mrbconf.h'). However, keep 'stdio.h' used by mruby-test. | |||
| 2020-02-02 | Implement `IO#pread` and `IO#pwrite` | dearblue | |
| It is available by default in environments where `__unix__` is defined. Other environments are enabled by defining `MRB_WITH_IO_PREAD_PWRITE` (requires an implementation of `pread()` and `pwrite()` functions). In any case, you can disable it by defining `MRB_WITHOUT_IO_PREAD_PWRITE`. | |||
| 2020-02-01 | Fix builds for old mingw in mruby-socket; ref #4914 | dearblue | |
| 2020-01-06 | Merge branch 'file-size-truncate' of https://github.com/dearblue/mruby into ↵ | Yukihiro "Matz" Matsumoto | |
| dearblue-file-size-truncate | |||
| 2019-12-31 | Fix builds for modern mingw; fix #4869 | dearblue | |
| What I intended to fix in #4869 was a patch for an old MinGW. Recent MinGWs have their own `mkstemp()` function. I knew this after checking the patch #4903. | |||
| 2019-12-14 | Implement `File#size` and `File#truncate` | dearblue | |
| 2019-12-14 | Fix mruby-io test for mingw32 | dearblue | |
| Need `mkstemp()` implements. | |||
| 2019-11-24 | Remove unused methods of `MRubyIOTestUtil` | KOBAYASHI Shuji | |
| 2019-09-26 | Use type predicate macros instead of `mrb_type` if possible | KOBAYASHI Shuji | |
| For efficiency with `MRB_WORD_BOXING` (implement type predicate macros for all `enum mrb_vtype`). | |||
| 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-08-24 | Create a symbolic link in the temporary directory; fix #4642 | dearblue | |
| Because the linker gives a warning on FreeBSD 12.0. ``` warning: mktemp() possibly used unsafely; consider using mkstemp() ``` | |||
| 2019-08-18 | Make symbolic link names unique for test | dearblue | |
| 2019-08-05 | Use new specifiers/modifiers of `mrb_vfromat()` | KOBAYASHI Shuji | |
| The binary sizes (gems are only `mruby-bin-mruby`) are reduced slightly in my environment than before the introduction of new specifiers/modifiers (5116789a) with this change. ------------+-------------------+-------------------+-------- BINARY | BEFORE (5116789a) | AFTER (This PR) | RATIO ------------+-------------------+-------------------+-------- mruby | 593416 bytes | 593208 bytes | -0.04% libmruby.a | 769048 bytes | 767264 bytes | -0.23% ------------+-------------------+-------------------+-------- BTW, I accidentally changed `tasks/toolchains/visualcpp.rake` at #4613, so I put it back. | |||
| 2019-07-30 | Refine message to `skip` in nested `assert` | KOBAYASHI Shuji | |
| - I think "Info" is used only to `skip`, so change to "Skip". - Changed the default value of `assert` and specify the argument explicitly at the caller of `assert` because it is unnatural "Assertion failed" is output even though the assertion doesn't fail. == Example: def assert_foo(exp, act) assert do assert_equal exp[0], act[0] assert_equal exp[1], act[1] end end def assert_bar(exp, act) assert do skip end end def assert_baz(exp, act) assert do assert_equal exp, act assert_bar exp, act end end assert 'test#skip_in_nested_assert' do assert_baz 1, 1 end === Before this patch: ?.. Info: test#skip_in_nested_assert (core) - Assertion[1] Info: Assertion failed (core) - Assertion[1-2] Skip: Assertion failed (core) Total: 3 OK: 2 KO: 0 Crash: 0 Warning: 0 Skip: 1 === After this patch: ??? Skip: test#skip_in_nested_assert (core) - Assertion[1] Skip: assert (core) - Assertion[1-2] Skip: assert (core) Total: 3 OK: 0 KO: 0 Crash: 0 Warning: 0 Skip: 3 | |||
| 2019-06-29 | Use nested `assert` | dearblue | |
| 2019-06-29 | Use a normal method instead of a lambda | dearblue | |
| Ref commit 35319bed01d58c785f73ce03e67d4e58be30f4b5 | |||
| 2019-05-10 | Raise `TypeError` if the argument type is unsupported in `mrb_stat0` | KOBAYASHI Shuji | |
| 2019-05-07 | Refactor `mrb_str_to_cstr` and `mrb_string_value_cstr` | KOBAYASHI Shuji | |
| - Extract null byte check to function. - Avoid string allocation if null byte is included. - Use `str_new` instead of `mrb_str_dup` + `mrb_str_modify` | |||
| 2019-05-06 | Avoid using `mrb_str_to_cstr` if possible | KOBAYASHI Shuji | |
| Because it always allocate new string. Replace with the followings: - Use `RSRING_PTR` if string is guaranteed to be null-terminated. - Use `mrb_string_value_cstr` or `mrb_get_args("z")` if return value isn't modified. | |||
| 2019-04-29 | Fix missing assertions in `mruby-io` test | KOBAYASHI Shuji | |
| 2019-04-27 | Remove duplicated `String#each_char` | KOBAYASHI Shuji | |
| 2019-04-15 | Fix test, popen and cmd in mruby-io | Shouji Kuboyama | |
| 2019-02-26 | Remove unneeded `const_defined?(:Time)` in `mruby-io` test | KOBAYASHI Shuji | |
| `mruby-time` is included in test dependencies. | |||
| 2019-01-28 | Use assertion methods in `FileTest` tests | KOBAYASHI Shuji | |
| 2019-01-27 | Remove no meaning statements in `mruby-io` tests | KOBAYASHI Shuji | |
| 2019-01-25 | Merge pull request #4245 from shuujii/remove-assert_nothing_raised-in-io-test | Yukihiro "Matz" Matsumoto | |
| Remove definition of `assert_nothing_raised` in `IO` test | |||
| 2019-01-25 | Merge pull request #4246 from shuujii/use-assertion-methods-in-file-test | Yukihiro "Matz" Matsumoto | |
| Use assertion methods in `File` test | |||
