| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-06-28 | Avoid warnings with `ruby -cw` | dearblue | |
| ```console % for rb in `git ls-files '*/mrblib/*.rb' 'mrblib'`; do ruby30 -cw $rb > /dev/null; done mrbgems/mruby-array-ext/mrblib/array.rb:389: warning: assigned but unused variable - ary mrbgems/mruby-array-ext/mrblib/array.rb:663: warning: assigned but unused variable - len mrbgems/mruby-hash-ext/mrblib/hash.rb:119: warning: possibly useless use of a variable in void context mrbgems/mruby-hash-ext/mrblib/hash.rb:259: warning: assigned but unused variable - keys mrbgems/mruby-io/mrblib/io.rb:229: warning: literal in condition mrbgems/mruby-io/mrblib/io.rb:280: warning: literal in condition mrbgems/mruby-string-ext/mrblib/string.rb:347: warning: assigned but unused variable - len mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb:2: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument ``` | |||
| 2021-06-16 | Run pre-commit with GitHub Actions | John Bampton | |
| Running pre-commit with GitHub Actions now gives us more tests and coverage Remove duplicate GitHub Actions for merge conflicts and trailing whitespace Remove duplicate checks for markdownlint and yamllint from the GitHub Super-Linter Add new custom pre-commit hook running with a shell script to sort alphabetically and uniquify codespell.txt Add new pre-commit hook to check spelling with codespell https://github.com/codespell-project/codespell Fix spelling | |||
| 2021-05-27 | array.c: unify `mrb_ary_ref` and `mrb_ary_entry` | Yukihiro "Matz" Matsumoto | |
| Use only `mrb_ary_entry` hereafter. | |||
| 2021-05-15 | mruby-array-ext/array.c: implement `Array#rotate` in C. | Yukihiro "Matz" Matsumoto | |
| The Ruby version of `Array#rotate!` generated a rotated array and replaced the receiver, but the C version rotates the receiver array in-place. So the performance is improved a lot both in speed and memory consumption. Look for the comments in `array.c` for the in-place rotating algorithm, if you are interested. | |||
| 2021-05-14 | mruby-array-ext/array.c: implement `Array#compact` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-05-14 | array.rb: replace `can't` with `cannot`. | Yukihiro "Matz" Matsumoto | |
| To avoid editor coloring failures. | |||
| 2021-04-28 | array.rb: `Array#uniq` to return always `Array`. | Yukihiro "Matz" Matsumoto | |
| Even called for subclass of `Array`, according to new Ruby3.0 behavior. Other methods of `Array` behave as Ruby3.0 from the first hand. | |||
| 2021-04-17 | array.rb: add `Array#intersect?` from Ruby3.0.1. | Yukihiro "Matz" Matsumoto | |
| 2021-02-20 | Comment out `warn` used in the `Array#fetch` method | dearblue | |
| I get an error because the current mruby does not have a `Kernel#warn` method. But the warning itself is useful and I'll just comment it out in case it's implemented in the future. | |||
| 2021-01-26 | Revert "Minimize the changes in #5277" | Yukihiro "Matz" Matsumoto | |
| This reverts commit dc51d89ac22acc60b9bfeed87115863565b74085. | |||
| 2021-01-22 | Minimize the changes in #5277 | Yukihiro "Matz" Matsumoto | |
| Instead of including `mruby/presym.h` everywhere, we provided the fallback `mruby/presym.inc` under `include/mruby` directory, and specify `-I<build-dir>/include` before `-I<top-dir>/include` in `presym.rake`. So even when someone drops `-I<build-dir>/include` in compiler options, it just compiles without failure. | |||
| 2021-01-11 | Avoid including `presym.inc` in existing header files | KOBAYASHI Shuji | |
| Addressed an issue where existing programs linking `libmruby.a` could only be built by adding `<build-dir>/include` to compiler's include path. | |||
| 2020-11-05 | Fix `A.new([[1,2],3]).flatten` to return `Array`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-22 | Prohibit array changes by "a"/"*" specifier of `mrb_get_args()` | dearblue | |
| The "a"/"*" specifier of the `mrb_get_args()` function will now return `const mrb_value *`. This is because it is difficult for the caller to check if it is an array object and write-barrier if necessary. And it requires calling `mrb_ary_modify()` on the unmodified array object, which is also difficult (this is similar to #5087). | |||
| 2020-10-12 | Rename `MRB_TT_FIXNUM` to `MRB_TT_INTEGER`. | Yukihiro "Matz" Matsumoto | |
| We still have `#define MRB_TT_FIXNUM MRB_TT_INTEGER` for compatibility. | |||
| 2020-10-12 | Use `mrb_funcall_id()` extensively. | Yukihiro "Matz" Matsumoto | |
| Except for support files e.g. `mruby-test/driver.c`, which are not target of symbol collection via `rake gensym`. | |||
| 2020-06-25 | Use `mrb_get_argc()` to improve performance. | Yukihiro "Matz" Matsumoto | |
| 2020-06-20 | Add `mrb_get_arg1()` that retrieves single (and only) argument. | Yukihiro "Matz" Matsumoto | |
| `mrb_get_arg1()` raises `ArgumentError` if the method does not receive one argument. And replaces all `mrb_get_args(mrb, "o", &arg)` by the new function. | |||
| 2020-01-21 | Delete duplicated `Array#delete_if` test. | Hiroshi Mimaki | |
| 2020-01-21 | Delete duplicated `Array#delete_if`. | Hiroshi Mimaki | |
| 2019-11-05 | Remove test that depend on `mruby-enumerator` from `mruby-array-ext` | KOBAYASHI Shuji | |
| `Object.const_defined?(:Enumerator)` is always false because `mruby-enumerator` is not specified in `test_dependency`. I don't think this test is necessary. | |||
| 2019-10-14 | Fix the example of `Array#intersection` in the document [ci skip] | KOBAYASHI Shuji | |
| 2019-10-14 | Add `Array#intersection` which is new in Ruby2.7. | Yukihiro "Matz" Matsumoto | |
| 2019-10-14 | Move `Array#difference` just after `Array#-`. | Yukihiro "Matz" Matsumoto | |
| 2019-10-14 | Fixed a bug in `Array#difference`. | Yukihiro "Matz" Matsumoto | |
| 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-20 | Fix typo in `Array#difference` document [ci skip] | KOBAYASHI Shuji | |
| 2019-09-16 | Add `filter` aliases for `Enumerable` and `Hash`. | Yukihiro "Matz" Matsumoto | |
| 2019-09-16 | Add `Array#difference` method from Ruby2.6. | Yukihiro "Matz" Matsumoto | |
| 2019-09-01 | `Array#permutation` with a negative argument should not yield | KOBAYASHI Shuji | |
| Before this patch: $ bin/mruby -e '[1].permutation(-1){|v| p v}' #=> [1] After this patch (same as Ruby): $ bin/mruby -e '[1].permutation(-1){|v| p v}' #=> no output | |||
| 2019-08-30 | `Array#(permutation|combination)` without block should return `self` | KOBAYASHI Shuji | |
| 2019-07-26 | Drop dependency from `mruby-array-ext` to `mruby-enum-ext` | KOBAYASHI Shuji | |
| 2019-07-25 | Refine `Array#(permutation|combination) test` | KOBAYASHI Shuji | |
| - No guarantees about the order in which the permutations/combinations are yielded. - Drop dependency on `Enumerator`. | |||
| 2019-06-23 | Fix argument specs to `Array` | KOBAYASHI Shuji | |
| 2019-05-31 | Comment out the empty `Array#bsearch_index` test | KOBAYASHI Shuji | |
| 2019-05-25 | Name the return value of `mrb_range_beg_len()` | dearblue | |
| 2019-04-06 | Move `Array#(append|prepend)` from core to `mruby-ary-ext` | KOBAYASHI Shuji | |
| They are not included in ISO standard. | |||
| 2019-02-01 | Move `NONE` to `mrblib/enum.rb` | KOBAYASHI Shuji | |
| 2018-11-25 | Fix wrong number of arguments in `Array#fetch`; fix #4170 | Yukihiro "Matz" Matsumoto | |
| 2018-11-19 | Removed `to_ary` conversion method. | Yukihiro "Matz" Matsumoto | |
| 2018-11-19 | Removed `try_convert` method from Array and Hash. | Yukihiro "Matz" Matsumoto | |
| 2018-11-19 | fix non-ASCII comment. | Yukihiro "Matz" Matsumoto | |
| 2018-10-12 | Call `uniq!` for each union processing in `Array#union`. | Yukihiro "Matz" Matsumoto | |
| 2018-09-26 | Add index to larger segment lists for performance | Yukihiro "Matz" Matsumoto | |
| 2018-09-21 | Implement `Array#union` which is introduced in Ruby2.6. | Yukihiro "Matz" Matsumoto | |
| 2018-09-20 | Improve performance of `Array#uniq!`. | Yukihiro "Matz" Matsumoto | |
| 2018-09-20 | Make `#to_h` to take a block; [ruby-core:89088] | Yukihiro "Matz" Matsumoto | |
| 2018-09-18 | Array size may be changed in `mrb_get_args()` reentry. | Yukihiro "Matz" Matsumoto | |
| fix #4116; fix #4117; fix #4118; fix #4119; fix #4120 | |||
| 2018-09-07 | Clear terminated space | dearblue | |
| 2017-11-17 | implement Array.transpose | Tomasz Dąbrowski | |
