| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-07-09 | Merge pull request #4560 from lopopolo/range-max-min-hang | Yukihiro "Matz" Matsumoto | |
| Specialize Enumerable#max and Enumerable#min for Range | |||
| 2019-07-09 | Revert Float dependency in Range#each | Ryan Lopopolo | |
| 2019-07-09 | Fix Range#min fast path with exclusive range | Ryan Lopopolo | |
| 2019-07-09 | Add a fast path for Float and Fixnum ranges for Range#max and Range#min | Ryan Lopopolo | |
| If no block is given and the Range has Fixnum or Float endpoints, do not iterate with each and instead compare the endpoints directly. This implementation passes all of the applicable specs from Ruby Spec. | |||
| 2019-07-09 | Add Range#max and Range#min tests from Ruby Spec | Ryan Lopopolo | |
| 2019-07-09 | Remove attempt at spec-compliant Range#max and Range#min from core | Ryan Lopopolo | |
| 2019-07-09 | Merge pull request #4561 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/fix-the-order-of-expected-and-actual-in-test-t-range.rb Fix the order of "expected" and "actual" in `test/t/range.rb` | |||
| 2019-07-08 | Specialize Enumerable#max and Enumerable#min for Range | Ryan Lopopolo | |
| This patch prevents a hang for pathalogical (large) Ranges when computing max and min. Range inherits its implementation of max and min from Enumerable. Enumerable implements max and min by calling each. For Range objects, this is unnecessary since we know the max and the min by the end and begin attributes. It is also very slow. This code hangs unnecessarily: (0..2**32).max # ... hang (0..2**32).min # ... hang This patch overrides max and min after including enumerable to yield based on the begin and end methods. | |||
| 2019-07-08 | Add tests for String Ranges | Ryan Lopopolo | |
| Range#each depends on String#upto which is implemented in mruby-string-ext which is why these tests live there. | |||
| 2019-07-08 | Add tests for Range#max and Range#min | Ryan Lopopolo | |
| 2019-07-09 | Fix the order of "expected" and "actual" in `test/t/range.rb` | KOBAYASHI Shuji | |
| 2019-07-09 | Merge pull request #4559 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/add-macros-for-inline-symbol-for-readability Add macros for inline symbol for readability | |||
| 2019-07-08 | Add macros for inline symbol for readability | KOBAYASHI Shuji | |
| 2019-07-08 | Merge pull request #4557 from shuujii/fix-Numeric-step-to-infinity | Yukihiro "Matz" Matsumoto | |
| Fix `Numeric#step` to infinity; ref. #4555 | |||
| 2019-07-07 | Fix `Numeric#step` to infinity; ref. #4555 | KOBAYASHI Shuji | |
| 2019-07-06 | Merge pull request #4554 from shuujii/fix-missing--ifndef-MRB_ENABLE_ALL_SYMBOLS | Yukihiro "Matz" Matsumoto | |
| Fix missing `#ifndef MRB_ENABLE_ALL_SYMBOLS` | |||
| 2019-07-06 | Fix missing `#ifndef MRB_ENABLE_ALL_SYMBOLS` | KOBAYASHI Shuji | |
| 2019-07-06 | Merge pull request #4553 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/read-write-MRB_STR_ASCII-flag-only-when-MRB_UTF8_STRING-is-defined Read/write `MRB_STR_ASCII` flag only when `MRB_UTF8_STRING` is defined | |||
| 2019-07-05 | Read/write `MRB_STR_ASCII` flag only when `MRB_UTF8_STRING` is defined | KOBAYASHI Shuji | |
| 2019-07-04 | It was too early to check `key` for `undef`; ref #4534 | Yukihiro "Matz" Matsumoto | |
| 2019-07-04 | Rename `MRB_STR_NO_UTF` to 'MRB_STR_ASCII`; close #4550 | Yukihiro "Matz" Matsumoto | |
| In #4550, @shuuji proposed the name name `MRB_STR_NO_MULTI_BYTE` for more precise description. Although I agree that the name name is correct, but the flag means the string does not contain multi byte UTF-8 characters, i.e. all characters fit in the range of ASCII. | |||
| 2019-07-04 | Merge pull request #4551 from dearblue/fix-4549 | Yukihiro "Matz" Matsumoto | |
| Fix heap buffer overflow; ref #4549 | |||
| 2019-07-04 | Fix heap buffer overflow; ref #4549 | dearblue | |
| This patch is showed in #4549. | |||
| 2019-07-04 | Merge pull request #4548 from shuujii/refine-document-to-mrb_get_args | Yukihiro "Matz" Matsumoto | |
| Refine document to mrb_get_args()` [ci skip] | |||
| 2019-07-03 | Refine document to mrb_get_args()` [ci skip] | KOBAYASHI Shuji | |
| 2019-07-02 | Merge pull request #4546 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/fix-and-refine-error-message-in-mrb_obj_to_sym Fix and refine error message in `mrb_obj_to_sym()` | |||
| 2019-07-02 | Fix and refine error message in `mrb_obj_to_sym()` | KOBAYASHI Shuji | |
| Before this patch: $ bin/mruby -e '1.respond_to?(2)' #=> nil is not a symbol After this patch (same as Ruby): $ bin/mruby -e '1.respond_to?(2)' #=> 2 is not a symbol nor a string | |||
| 2019-07-02 | Merge pull request #4545 from shuujii/remove-unused-C-header-file-from-src-etc.c | Yukihiro "Matz" Matsumoto | |
| Remove unused C header file from `src/etc.c` | |||
| 2019-07-01 | Remove unused C header file from `src/etc.c` | KOBAYASHI Shuji | |
| 2019-06-30 | Merge pull request #4544 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/fix-include-prepend-and-extend-to-frozen-object Fix `include`, `prepend` and `extend` to frozen object | |||
| 2019-06-30 | Fix `include`, `prepend` and `extend` to frozen object | KOBAYASHI Shuji | |
| 2019-06-29 | Merge pull request #4540 from dearblue/assert-nesting | Yukihiro "Matz" Matsumoto | |
| Nested `assert` for mrbtest | |||
| 2019-06-29 | Merge pull request #4541 from dearblue/replace-string-aset | Yukihiro "Matz" Matsumoto | |
| Replace `String#[]=` method by C implements | |||
| 2019-06-29 | Simplify `mrb_str_aref_m()` and `mrb_str_aref()` | dearblue | |
| It is integration with part of argument parsing used in `mrb_str_aset_m()`. | |||
| 2019-06-29 | Replace `String#[]=` method by C implements | dearblue | |
| The purpose is to eliminate string objects that are temporarily created during processing. | |||
| 2019-06-29 | Add test for `String#[]=` | dearblue | |
| 2019-06-29 | Use nested `assert` | dearblue | |
| 2019-06-29 | Use a normal method instead of a lambda | dearblue | |
| Ref commit 35319bed01d58c785f73ce03e67d4e58be30f4b5 | |||
| 2019-06-29 | Nested `assert` for mrbtest | dearblue | |
| When nesting `assert` used in test, it is indented and displayed. Assertion numbers are concatenated by `"-"` at this time. The purpose is to match the apparent numbers when failing with `assert_mruby` which is defined by `mrbgems/mruby-bin-mruby/bintest/mruby.rb` for example. Child assertions "skip" and "info" are reported as parent assertions "info" and `$ok_test += 1`. The child assertions "ko" and "crash" are reported as the parent assertion "ko" and `$ko_test += 1`. When child assertions are mixed, "ko" takes precedence. Incompatibility: - `$mrbtest_assert_idx` takes `nil` or an integer array object. So far it was `nil` or an integer. - `$asserts` points to the top of the internal stack in the `assert`. - `$mrbtest_assert` points to the top of the internal stack in `assert`. | |||
| 2019-06-28 | Merge pull request #4538 from shuujii/use-__ENCODING__-in-tests | Yukihiro "Matz" Matsumoto | |
| Use `__ENCODING__` in tests | |||
| 2019-06-28 | Merge pull request #4539 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/remove-unnecessary-backticks-in-src-range.c Remove unnecessary backticks in `src/range.c`; ref #2858 | |||
| 2019-06-28 | Remove unnecessary backticks in `src/range.c`; ref #2858 | KOBAYASHI Shuji | |
| 2019-06-28 | Use `__ENCODING__` in tests | KOBAYASHI Shuji | |
| It cannot be used for `String#size` test if judging whether or not `MRB_UTF8_STRING` is defined by result of `String#size`. | |||
| 2019-06-28 | Merge pull request #4535 from shuujii/add-modification-tests-for-immediate-value | Yukihiro "Matz" Matsumoto | |
| Add modification tests for immediate value | |||
| 2019-06-28 | Merge pull request #4536 from komainu8/fix_broken_links | Yukihiro "Matz" Matsumoto | |
| Fix broken links for mruby.org | |||
| 2019-06-27 | Fix broken links for mruby.org | Yasuhiro Horimoto | |
| A part of a fix for issue mruby/mruby.github.io#50 | |||
| 2019-06-27 | Add modification tests for immediate value | KOBAYASHI Shuji | |
| 2019-06-27 | Skip copying delete keys in a hash; fix #4534 | Yukihiro "Matz" Matsumoto | |
| 2019-06-26 | Merge pull request #4533 from shuujii/silence-unused-label-warnings | Yukihiro "Matz" Matsumoto | |
| Silence unused label warnings from gcc; ref #4524 | |||
| 2019-06-26 | Silence unused label warnings from gcc; ref #4524 | KOBAYASHI Shuji | |
| mruby/mruby/src/string.c:1722:4: warning: label 'bytes' defined but not used [-Wunused-label] bytes: ^~~~~ | |||
