- 14 Jul, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix pack/unpack for base64; ref #4556
-
dearblue authored
For example, `"".unpack("")` evaluates to `[]`.
-
dearblue authored
The pack/unpack "m" directive should be treated as a length rather than an element count.
-
- 15 Jul, 2019 1 commit
-
-
dearblue authored
-
- 13 Jul, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
Add `mruby-method` gem to `default.gembox` [ci skip]
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
It's an error in ISO specification; 15.3.2.2.4 and 15.3.2.2.7
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 12 Jul, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
Consider `-MP` flag specified when parsing `.d` file
-
Yukihiro "Matz" Matsumoto authored
Fix heap buffer overflow; fix #4569
-
dearblue authored
-
Yukihiro "Matz" Matsumoto authored
Lazy load `tasks/toolchains/*.rake`
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
`-MP` flag is used in `tasks/toolchains/android.rake`.
-
- 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
-