- 12 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Lazy load `tasks/toolchains/*.rake`
-
KOBAYASHI Shuji authored
-
- 11 Jul, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Improve performance `String#index` with UTF-8
-
dearblue authored
-
dearblue authored
Based on Boyer-Moore-Horspool algorithm (Quick Search algorithm). As a side effect, the correct position is returned even if an invalid UTF-8 string is given. ```console % ./mruby@master -e 'p ("\xd1" * 100 + "#").index("#")' 50 % ./mruby@improve-index -e 'p ("\xd1" * 100 + "#").index("#")' 100 ``` The other behavior should be the same as the current implementation.
-
- 10 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove an unused argument of `str_with_class()`
-
KOBAYASHI Shuji authored
-
- 09 Jul, 2019 14 commits
-
-
Yukihiro "Matz" Matsumoto authored
Set `MRB_STR_ASCII` flag when an inline symbol is stringized
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Specialize Enumerable#max and Enumerable#min for Range
-
Ryan Lopopolo authored
-
Ryan Lopopolo authored
-
Ryan Lopopolo authored
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.
-
Ryan Lopopolo authored
-
Ryan Lopopolo authored
-
Yukihiro "Matz" Matsumoto authored
Fix the order of "expected" and "actual" in `test/t/range.rb`
-
Ryan Lopopolo authored
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.
-
Ryan Lopopolo authored
Range#each depends on String#upto which is implemented in mruby-string-ext which is why these tests live there.
-
Ryan Lopopolo authored
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Add macros for inline symbol for readability
-
- 08 Jul, 2019 2 commits
-
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Fix `Numeric#step` to infinity; ref. #4555
-
- 07 Jul, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 06 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix missing `#ifndef MRB_ENABLE_ALL_SYMBOLS`
-
KOBAYASHI Shuji authored
-
- 05 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4553 from 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
-
KOBAYASHI Shuji authored
-
- 04 Jul, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
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.
-
Yukihiro "Matz" Matsumoto authored
Fix heap buffer overflow; ref #4549
-
dearblue authored
This patch is showed in #4549.
-
- 03 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Refine document to mrb_get_args()` [ci skip]
-
KOBAYASHI Shuji authored
-
- 02 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix and refine error message in `mrb_obj_to_sym()`
-
KOBAYASHI Shuji authored
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
-
- 01 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove unused C header file from `src/etc.c`
-
KOBAYASHI Shuji authored
-
- 30 Jun, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix `include`, `prepend` and `extend` to frozen object
-
KOBAYASHI Shuji authored
-