summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2021-05-04Add documentation on spell checking with misspellJohn Bampton
2021-05-04Merge pull request #5440 from jbampton/fix-whitespace-in-src-symbol-cYukihiro "Matz" Matsumoto
Fix whitespace in `src/symbol.c`
2021-05-04Order the EditorConfig propertiesJohn Bampton
2021-05-03Fix documents for `mruby-io`dearblue
2021-05-03Update gem spec for `mruby-sleep`dearblue
To align the spec like any other core mrbgems: - Delete `spec.version` - Set `spec.summary`
2021-05-03Fix whitespace in `src/symbol.c`John Bampton
2021-05-03symbol.c: remove `id2name` reference from documents.Yukihiro "Matz" Matsumoto
2021-05-03symbol.c: remove `Symbol#id2sym`.Yukihiro "Matz" Matsumoto
In the ancient Ruby, symbols are represented by integers. In that era, to get string representation from integers, we used `Integer#id2sym` method. Later, `Symbol` was introduced, and `id2sym` was used for compatibility. Today, no one uses `id2sym` any longer. It is described in ISO 30170:2012 standard but I consider it as a mistake.
2021-05-02Merge pull request #5439 from dearblue/opcode.mdYukihiro "Matz" Matsumoto
Enclose the table contents of `opcode.md` as code
2021-05-02array.c: `mrb_ary_shift_m` should be `static`.Yukihiro "Matz" Matsumoto
2021-05-02Enclose the table contents of `opcode.md` as codedearblue
2021-05-02Rename mrbgems/mruby-inline-struct with mrbgems/mruby-test-inline-structdearblue
This gem contains only tests.
2021-05-02symbol.c: remove `mrb_sym_static_p()` function that no one use.Yukihiro "Matz" Matsumoto
2021-05-02Run the task only once when `parse.y` is updateddearblue
Previously, the task was executed as many times as there were targets, including `mruby-compiler`. ```console % rm mrbgems/mruby-compiler/core/y.tab.c % rake `pwd`/mrbgems/mruby-compiler/core/y.tab.c YACC mrbgems/mruby-compiler/core/parse.y -> mrbgems/mruby-compiler/core/y.tab.c YACC mrbgems/mruby-compiler/core/parse.y -> mrbgems/mruby-compiler/core/y.tab.c ```
2021-05-01io.rb,print.rb: `puts` to expand array arguments.Yukihiro "Matz" Matsumoto
As CRuby behaves.
2021-04-29Merge pull request #5432 from shuujii/fix-typo-in-mrbgems-mruby-io-mrblib-io.rbYukihiro "Matz" Matsumoto
Fix typo in `mrbgems/mruby-io/mrblib/io.rb`; ref cb55e7eca
2021-04-29Fix typo in `mrbgems/mruby-io/mrblib/io.rb`; ref cb55e7ecaKOBAYASHI Shuji
2021-04-28string.c: add a new method `String#center`.Yukihiro "Matz" Matsumoto
2021-04-28string.{c,rb}: fix type of return values from some methods as Ruby3.0Yukihiro "Matz" Matsumoto
When the receiver is the instance of subclass of `String`. - `String#each_char` - `String#each_line` - `String#partition`
2021-04-28doc/opcode.md: stop reversed link syntax check from markdownlint.Yukihiro "Matz" Matsumoto
2021-04-28io.rb: reimplement `IO#each_char`.Yukihiro "Matz" Matsumoto
It used to be an alias to `IO#each_byte` but those methods should have behave differently.
2021-04-28array.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-27array.c: update `Array#shift` to take optional argument; close #5428Yukihiro "Matz" Matsumoto
2021-04-26Merge pull request #5425 from dearblue/exc_to_sYukihiro "Matz" Matsumoto
Fix symbol leak in `exc_to_s()`
2021-04-26mruby.c: specify file names for libraries set by `-r`; fix #5427Yukihiro "Matz" Matsumoto
2021-04-26backtrace.c: skip innermost frame only when the method is in C; #5394Yukihiro "Matz" Matsumoto
2021-04-26Merge pull request #5424 from dearblue/new_iseqYukihiro "Matz" Matsumoto
Fix annotations for inline iseq of `Class.new` [ci skip]
2021-04-26Merge pull request #5423 from dearblue/gc-redYukihiro "Matz" Matsumoto
Introduce `MRB_GC_RED`
2021-04-26build_config/no-float.rb: unify two build configurations; #5421Yukihiro "Matz" Matsumoto
- stop cross building - add more gems for tests - add `bintest`
2021-04-25Merge pull request #5422 from dearblue/binding1Yukihiro "Matz" Matsumoto
Avoid ill-advised `goto`
2021-04-25Fix symbol leak in `exc_to_s()`dearblue
2021-04-24Fix annotations for inline iseq of `Class.new` [ci skip]dearblue
2021-04-24Skip tests that use `Float` inside; ref #5421Yukihiro "Matz" Matsumoto
2021-04-24numeric.c: remove duplicated definitions; #5421Yukihiro "Matz" Matsumoto
Following functions are defined in `mrblib/numeric.c`: - `Integer#ceil` - `Integer#floor` - `Integer#round` - `Integer#truncate`
2021-04-24time.c: `fixable_time_t_p` is not used with `MRB_NO_FLOAT`; #5421Yukihiro "Matz" Matsumoto
2021-04-24random.c: refactoring; #5421Yukihiro "Matz" Matsumoto
- `Random.rand` with `MRB_NO_FLOAT` behaves as `Random.rand(100)` - `Random.rand(i)` where `i<0` raises `ArgumentError`
2021-04-24build_config/nofloat.rb: build configuration with `MRB_NO_FLOAT`; #5421Yukihiro "Matz" Matsumoto
2021-04-24Introduce `MRB_GC_RED`dearblue
Replaces the magic number `7` except in `src/gc.c`.
2021-04-24numeric.c: fix errors from `MRB_NO_FLOAT`; close #5421Yukihiro "Matz" Matsumoto
2021-04-23Avoid ill-advised `goto`dearblue
ref #5362
2021-04-23vm.c: fix errors with `MRB_NO_FLOAT`; fix #5421Yukihiro "Matz" Matsumoto
2021-04-23time.c: `time_t` may be unsigned on some platforms.Yukihiro "Matz" Matsumoto
2021-04-22error.h: rename `mrb_protect_raw` to `mrb_protect_error`; #5415Yukihiro "Matz" Matsumoto
- `_raw` does not describe the nature of the function - the function protect errors during C function execution
2021-04-21numeric.c: update error messages in `int_pow`; ref #5420Yukihiro "Matz" Matsumoto
2021-04-21numeric.c: fix `int_pow` to detect integer overflow; fix #5420Yukihiro "Matz" Matsumoto
2021-04-21test/math.rb: `10**30` could cause integer overflow; ref #5420Yukihiro "Matz" Matsumoto
2021-04-20Merge pull request #5419 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-unused-struct-in-include-mruby-variable.h Remove unused struct in `include/mruby/variable.h`
2021-04-20Merge pull request #5418 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-unused--include-in-complex.c-and-rational.c Remove unused `#include` in `complex.c` and `rational.c`
2021-04-20Merge pull request #5417 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-MRB_API-from-mrb_get_backtrace-definition Remove `MRB_API` from `mrb_get_backtrace` definition
2021-04-20Remove unused struct in `include/mruby/variable.h`KOBAYASHI Shuji