Yukihiro "Matz" Matsumoto
713fb53bbf
Merge pull request #5414 from shuujii/mRubyPresym-no-longer-needs-RakeDSL
...
`MRuby::Presym` no longer needs `Rake::DSL`
2021-04-18 08:24:15 +09:00
Yukihiro "Matz" Matsumoto
737254588b
array.rb: add Array#intersect? from Ruby3.0.1.
2021-04-17 17:38:44 +09:00
KOBAYASHI Shuji
f0318aca23
MRuby::Presym no longer needs Rake::DSL
2021-04-17 16:42:08 +09:00
John Bampton
9d32d440eb
feat(CI): add the GitHub Super Linter
...
The GitHub Super Linter is a more robust and better supported
tool than the current GitHub Actions we are using.
Running these checks:
ERROR_ON_MISSING_EXEC_BIT: true
VALIDATE_BASH: true
VALIDATE_BASH_EXEC: true
VALIDATE_EDITORCONFIG: true
VALIDATE_MARKDOWN: true
VALIDATE_SHELL_SHFMT: true
VALIDATE_YAML: true
https://github.com/marketplace/actions/super-linter
https://github.com/github/super-linter
Added the GitHub Super Linter badge to the README.
Also updated the pre-commit framework and added
more documentation on pre-commit.
Added one more pre-commit check: check-executables-have-shebangs
Added one extra check for merge conflicts to our
GitHub Actions.
EditorConfig and Markdown linting.
Minor grammar and spelling fixes.
Update linter.yml
2021-04-16 16:37:52 +09:00
Yukihiro "Matz" Matsumoto
ac9038121b
Merge pull request #5413 from shuujii/fix-enable_debug_info-in-mrbgems-mruby-proc-ext-test-proc.rb
...
Fix `enable_debug_info?` in `mrbgems/mruby-proc-ext/test/proc.rb`
2021-04-15 16:55:43 +09:00
KOBAYASHI Shuji
35b2798a5d
Fix enable_debug_info? in mrbgems/mruby-proc-ext/test/proc.rb
2021-04-15 15:49:23 +09:00
Yukihiro "Matz" Matsumoto
3c5467af63
Merge pull request #5411 from artichoke/mrb_protect_atexit_prototype_mismatch
...
Fix incorrect prototype on declaration of mrb_protect_atexit
2021-04-14 07:27:12 +09:00
Yukihiro "Matz" Matsumoto
5a8f0bdaf2
Merge pull request #5410 from mruby/dependabot/github_actions/actions/cache-v2.1.5
...
build(deps): bump actions/cache from v2.1.4 to v2.1.5
2021-04-14 07:25:07 +09:00
Ryan Lopopolo
7fe6f3976e
Fix incorrect prototype on declaration of mrb_protect_atexit
...
`state.c` makes a prototype declaration for the private
`mrb_protect_atexit` which is defined in `error.c`. `error.c` defines
this function with a void return type, but `state.c` defines the
prototype with an `int` return type.
This mismatch prevents mruby from compiling on stricter compilers like
emscripten.
2021-04-13 07:57:09 -07:00
dependabot[bot]
99bd84e76b
build(deps): bump actions/cache from v2.1.4 to v2.1.5
...
Bumps [actions/cache](https://github.com/actions/cache ) from v2.1.4 to v2.1.5.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.4...1a9e2138d905efd099035b49d8b7a3888c653ca8 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-13 07:16:35 +00:00
Yukihiro "Matz" Matsumoto
1a3846b492
mrbgem.rake: avoid implicit receivers in mrbgem.rake.
2021-04-13 07:35:39 +09:00
Yukihiro "Matz" Matsumoto
dd89a618b3
mruby-io: fix IO#ungetbyte; ref #5389
...
- remove `Integer#chr` (thus `mruby-sting-ext`) dependency
- fix the behavior when `c.is_a? String`
- fix the behavior when `c > 255`
2021-04-13 07:24:56 +09:00
Yukihiro "Matz" Matsumoto
9a9c842cb0
Rakefile: remove GitLab configuration; close #5409
...
This CI could consume too much CPU time on GitLab. Maybe we should add
resource concious CI configuration on GitLab.
2021-04-13 07:16:21 +09:00
Yukihiro "Matz" Matsumoto
475fc6ed26
AUTHORS: update authors information as of 2021-04-12.
2021-04-12 19:04:57 +09:00
Yukihiro "Matz" Matsumoto
ff2ffe3b07
proc.h: add type cast to silence warning; ref #5402
2021-04-12 15:21:54 +09:00
Yukihiro "Matz" Matsumoto
2cb9a0653a
Merge branch 'io_getbyte' close #5389
2021-04-10 19:08:51 +09:00
Yukihiro "Matz" Matsumoto
5cac9c8478
io.rb: fix IO#getbyte to work with UTF-8 characters; ref #5389
2021-04-10 19:08:15 +09:00
Yukihiro "Matz" Matsumoto
8fa1ff9a03
io.rb: add IO#readbyte; ref #5389
2021-04-10 19:08:15 +09:00
Yukihiro "Matz" Matsumoto
167e0b3f4f
io.c: add assertions to mrb_io_bufread(); ref #5389
2021-04-10 19:08:14 +09:00
Yukihiro "Matz" Matsumoto
5342b5cfef
io.rb: @buf should be empty on EOF; #4983 , #5389
2021-04-10 19:08:14 +09:00
take-cheeze
bf455fd582
Add IO#getbyte
2021-04-10 19:08:14 +09:00
Yukihiro "Matz" Matsumoto
44d5e214cc
Rename some internal functions; ref #5401
2021-04-10 17:33:50 +09:00
Yukihiro "Matz" Matsumoto
f7493b73cb
Merge pull request #5400 from jbampton/fix-spelling
...
chore: fix spelling
2021-04-09 22:07:50 +09:00
Yukihiro "Matz" Matsumoto
c2c37e1451
Merge pull request #5401 from dearblue/mcall
...
Reorganize `mcall()` in `mruby-method`
2021-04-09 21:46:09 +09:00
Yukihiro "Matz" Matsumoto
6d3c022749
mruby-config.bat: update as the shell version. [ci skip]
2021-04-08 07:32:35 +09:00
Yukihiro "Matz" Matsumoto
cbe061c2f4
codeql-analysis.yml: remove git checkout HEAD^2.
...
According to CodeQL instruction, `HEAD^2` is no longer needed.
2021-04-08 07:32:34 +09:00
Yukihiro "Matz" Matsumoto
77405e11b6
Merge pull request #5407 from mruby/dependabot/github_actions/actions/upload-artifact-v2.2.3
...
build(deps): bump actions/upload-artifact from v2.2.2 to v2.2.3
2021-04-07 16:22:08 +09:00
dependabot[bot]
2544e7f0d1
build(deps): bump actions/upload-artifact from v2.2.2 to v2.2.3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from v2.2.2 to v2.2.3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.2...ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-07 07:12:15 +00:00
Yukihiro "Matz" Matsumoto
fa2ad34792
Removing trailing white spaces; ref #5406 [ci skip]
2021-04-07 11:02:47 +09:00
Yukihiro "Matz" Matsumoto
32ae96af1f
Merge pull request #5406 from sizious/dreamcast-shelf-build-config-update
...
Updating dreamcast_shelf build configuration.
2021-04-07 11:00:51 +09:00
SiZiOUS
03f7e88ee9
dreamcast_shelf: typo fix.
2021-04-06 20:49:03 +02:00
SiZiOUS
7ad2827900
Updating dreamcast_shelf build configuration.
2021-04-06 17:30:02 +02:00
Yukihiro "Matz" Matsumoto
71bf362a5b
doc/link.md: update mruby-config description.
2021-04-06 17:25:54 +09:00
Yukihiro "Matz" Matsumoto
58ab97e300
mruby-config: add --cc and --ld options.
...
* `--cc` print compiler name
* `--ld` print linker name
2021-04-06 17:25:53 +09:00
Yukihiro "Matz" Matsumoto
e19346fd8b
Merge pull request #5405 from shuujii/fix-heading-level-in-doc-guides-link.md
...
Fix heading level in `doc/guides/link.md` [ci skip]
2021-04-06 13:14:34 +09:00
Yukihiro "Matz" Matsumoto
339216b5ec
Merge pull request #5404 from shuujii/fix-typo-in-doc-guides-link.md
...
Fix typo in `doc/guides/link.md` [ci skip]
2021-04-06 12:52:14 +09:00
KOBAYASHI Shuji
6844ef7131
Fix heading level in doc/guides/link.md [ci skip]
2021-04-06 12:52:07 +09:00
KOBAYASHI Shuji
516756d538
Fix typo in doc/guides/link.md [ci skip]
2021-04-06 12:44:58 +09:00
Yukihiro "Matz" Matsumoto
1f03d34fd7
link.md: add new document for linking libmruby; ref #5393
2021-04-05 22:26:15 +09:00
Yukihiro "Matz" Matsumoto
27d3747faa
Merge pull request #5402 from dearblue/catch1
...
Making a proc object static for a method with static irep
2021-04-04 17:56:25 +09:00
dearblue
caeacea86e
Making a proc object static for a method with static irep
...
The following methods will be made static.
- `Class#new`
- `Proc#call`
- `Kernel#catch`
Previously, static const RProc could not be registered as a method, but this has been changed to allow it.
2021-04-04 15:44:19 +09:00
dearblue
4c196dcdaa
Reorganize mcall() in mruby-method.
...
Use `mrb_exec_irep()`. If possible, re-entry into the VM will be suppressed.
Note that due to the effect of being a tail-call, the backtrace of `Method#call` will be lost, and it will look as if the target method was called directly.
This change fixes the problem of infinite loops when redefining methods that make block calls using `mruby-method`.
```console
% bin/mruby -e 'mm = method(:proc); define_method(:proc, ->(*a, &b) { mm.call(*a, &b) }); p proc { 1 }'
trace (most recent call last):
[257] -e:1
[256] -e:1:in proc
[255] -e:1:in proc
...SNIP...
[1] -e:1:in proc
-e:1:in proc: stack level too deep (SystemStackError)
```
2021-04-03 21:20:59 +09:00
dearblue
dd34ac647f
Make mrb_exec_irep() allow non-VM to enter.
...
Change the old `mrb_exec_irep()` as-is to static `mrb_exec_irep_vm()`.
Extract the VM entry part from the old `exec_irep()` in `mruby-eval/src/eval.c` and make it the core of the new `mrb_exec_irep()`.
2021-04-03 21:17:48 +09:00
John Bampton
d8622fc68b
chore: fix spelling
2021-04-03 19:51:01 +10:00
Yukihiro "Matz" Matsumoto
fb8e12f37c
Merge pull request #5397 from dearblue/c++dump
...
Fix build failures with `enable_debug` and `enable_cxx_abi`
2021-04-03 18:44:17 +09:00
Yukihiro "Matz" Matsumoto
474ec3e5c6
Merge pull request #5398 from jbampton/fix-authors-link
...
Fix the Authors link in the README
2021-04-03 17:58:30 +09:00
Yukihiro "Matz" Matsumoto
7561bed32a
Merge pull request #5399 from jbampton/fix-spelling
...
chore: fix spelling
2021-04-03 17:57:08 +09:00
John Bampton
ce2b8aa05e
chore: fix spelling
2021-04-03 18:14:25 +10:00
John Bampton
049c1d0a45
Fix the Authors link in the README
2021-04-03 17:43:04 +10:00
dearblue
3e48f4eebc
Fix build failures with enable_debug and enable_cxx_abi
...
Under C++, there is no implicit conversion from `int` to `enum`, which caused a compilation error.
2021-04-03 16:22:40 +09:00