Yukihiro "Matz" Matsumoto
384209b8dd
time.c: fix compile errors in mrb_time_asctime().
2021-03-03 09:51:27 +09:00
Yukihiro "Matz" Matsumoto
187384124b
Merge pull request #5368 from jbampton/add-pre-commit-framework
...
feat: add pre-commit framework
2021-03-02 16:53:33 +09:00
Yukihiro "Matz" Matsumoto
55ac5dba86
dump.c: remove operator_table if MRB_NO_STDIO is defined.
2021-03-01 14:57:58 +09:00
Yukihiro "Matz" Matsumoto
37e206472a
minimal.rb: add minimal configuration; ref #1225
2021-03-01 14:54:29 +09:00
Yukihiro "Matz" Matsumoto
f3507818e7
binding-core.c: add cast to remove warnings; ref #5362
2021-03-01 11:38:30 +09:00
Yukihiro "Matz" Matsumoto
935a135553
time.c: fixed a bug on no builtin overflow (e.g. VC).
2021-03-01 11:35:15 +09:00
John Bampton
1c9b1bfeb7
feat: add pre-commit framework
2021-03-01 10:06:17 +10:00
Yukihiro "Matz" Matsumoto
65add8c650
time.c: avoid using mrb_int_{add,sub}_overflow().
...
The size and signedness of `mrb_int` and `time_t` may differ.
2021-03-01 07:58:14 +09:00
Yukihiro "Matz" Matsumoto
eb68adafa1
Merge pull request #5367 from dearblue/libedit
...
Support libedit on mirb for FreeBSD
2021-02-28 20:26:33 +09:00
Yukihiro "Matz" Matsumoto
03eb3b5e87
time.c: check overflow in addition and subtraction of Time.
2021-02-28 19:33:57 +09:00
Yukihiro "Matz" Matsumoto
8684abd697
Remove periods from error messages according to the convention.
2021-02-28 19:32:52 +09:00
Yukihiro "Matz" Matsumoto
b61766473b
time.c: change RuntimeError to ArgumentError.
2021-02-28 19:26:40 +09:00
dearblue
15a7d5be3d
Support libedit on mirb for FreeBSD
2021-02-28 16:23:37 +09:00
Yukihiro "Matz" Matsumoto
4dbbe14117
state.c: remove stdint.h inclusion.
...
Fixes C++03 compilation.
2021-02-27 16:40:05 +09:00
Yukihiro "Matz" Matsumoto
3da372b30f
pack.c: add more checks for pack_pack().
2021-02-27 12:00:24 +09:00
Yukihiro "Matz" Matsumoto
30b1287df5
state.c: check irep reference count overflow.
2021-02-26 22:16:07 +09:00
Yukihiro "Matz" Matsumoto
5d37160455
Use MRB_SYM() more extensively.
2021-02-26 15:05:55 +09:00
Yukihiro "Matz" Matsumoto
192f3df9a1
Merge pull request #5362 from dearblue/binding
...
Binding
2021-02-25 21:15:24 +09:00
Yukihiro "Matz" Matsumoto
f1c2096f8e
parse.y: endless_method_name should allow ==.
...
e.g. `def ==(v) = true`. The issue is reported by @shuujii
2021-02-24 22:20:16 +09:00
Yukihiro "Matz" Matsumoto
386b53e6d9
parse.y: upgrade endless def syntax.
...
- prohibit defining setter method
- allow endless def without parentheses
2021-02-24 16:56:55 +09:00
Yukihiro "Matz" Matsumoto
a9ebd4703f
Merge pull request #5364 from mruby/dependabot/github_actions/actions/setup-node-v2.1.5
...
Bump actions/setup-node from v2.1.4 to v2.1.5
2021-02-23 16:43:37 +09:00
dependabot[bot]
09ebfc43a6
Bump actions/setup-node from v2.1.4 to v2.1.5
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from v2.1.4 to v2.1.5.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v2.1.4...46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-23 07:17:23 +00:00
dearblue
927615e1f0
Added other methods for Binding
...
- Added to `mruby-binding-core`
- `Binding#local_variable_defined?`
- `Binding#local_variable_get`
- `Binding#local_variable_set`
- `Binding#local_variables`
- `Binding#receiver`
- `Binding#source_location`
- `Binding#inspect`
- Added to `mruby-proc-binding`
- `Proc#binding`
The reason for separating `Proc#binding` is that core-mrbgems has a method that returns a closure object to minimize possible problems with being able to manipulate internal variables.
By separating it as different mrbgem, each user can judge this problem and incorporate it arbitrarily.
2021-02-22 23:32:43 +09:00
dearblue
792f6ac670
Adjustment of the current HEAD and bindings, and separation
...
Make changes to make `Binding` work.
At the same time, it separates `Binding#eval`, which depends on `mruby-eval`, from `mruby-binding-core`.
2021-02-22 23:32:18 +09:00
dearblue
935ffa46a3
Change mruby-binding to mruby-binding-core
2021-02-22 22:15:46 +09:00
dearblue
297c5ac598
Merge branch 'binding' of https://github.com/ksss/mruby into HEAD
2021-02-22 22:14:46 +09:00
Yukihiro "Matz" Matsumoto
d64c7330bc
print.c: fix a compilation errors with MRB_NO_STDIO; fix #5361
2021-02-22 13:39:37 +09:00
Yukihiro "Matz" Matsumoto
60f9028612
Merge pull request #5360 from dearblue/opcode
...
Updated `doc/opcode.md` to match `include/mruby/ops.h` [ci skip]
2021-02-21 20:26:28 +09:00
dearblue
07874a3d29
Updated doc/opcode.md to match include/mruby/ops.h [ci skip]
2021-02-21 19:30:19 +09:00
Yukihiro "Matz" Matsumoto
6b8393081a
Merge pull request #5359 from dearblue/warn
...
Comment out `warn` used in the `Array#fetch` method
2021-02-20 20:56:30 +09:00
dearblue
7ef4e54370
Comment out warn used in the Array#fetch method
...
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-02-20 18:19:00 +09:00
Yukihiro "Matz" Matsumoto
0d7f5b8216
metaprog.c: fix a methods() bug with false argument; fix #5351
2021-02-20 14:56:55 +09:00
Yukihiro "Matz" Matsumoto
8ed15c078b
metaprog.c: remove unused argument from a private function.
2021-02-20 13:20:14 +09:00
Yukihiro "Matz" Matsumoto
16fe040479
mruby/value.h: MRB_TT_CPTR is immediate with MRB_NO_BOXING.
...
The issue is reported by @shuujii.
2021-02-19 23:23:18 +09:00
Yukihiro "Matz" Matsumoto
e5559184e0
Fix mrb_immediate_p() definition for MRB_NO_BOXING; ref #5352
2021-02-19 21:02:31 +09:00
Yukihiro "Matz" Matsumoto
787487b16d
Check MRB_TT_* before object allocation; ref #5352
2021-02-19 15:36:41 +09:00
Yukihiro "Matz" Matsumoto
ce0a381406
Merge pull request #5352 from shuujii/fix-type-tag-that-set-to-NilClass-and-FalseClass
...
Fix type tag that set to `NilClass` and `FalseClass`
2021-02-18 21:51:07 +09:00
Yukihiro "Matz" Matsumoto
bdf2cf005e
Merge pull request #5357 from k0kubun/lock-depth
...
Skip --depth=1 when it's locked
2021-02-17 15:23:24 +09:00
Takashi Kokubun
6ac79a2c44
Skip --depth=1 when it's locked
2021-02-16 20:56:13 -08:00
Yukihiro "Matz" Matsumoto
cb43dda009
Merge pull request #5347 from shuujii/add--s-option-to-mrbc-for-make-variable-static
...
Add `-s` option to `mrbc` for make variable static
2021-02-17 12:43:45 +09:00
Yukihiro "Matz" Matsumoto
dee9168882
Merge pull request #5356 from mruby/dependabot/github_actions/actions/upload-artifact-v2.2.2
...
Bump actions/upload-artifact from v1 to v2.2.2
2021-02-16 13:54:24 +09:00
Yukihiro "Matz" Matsumoto
cb9225bcbf
Merge pull request #5355 from mruby/dependabot/github_actions/actions/cache-v2.1.4
...
Bump actions/cache from v2 to v2.1.4
2021-02-16 13:54:00 +09:00
dependabot[bot]
cf2fce93ec
Bump actions/upload-artifact from v1 to v2.2.2
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from v1 to v2.2.2.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v1...e448a9b857ee2131e752b06002bf0e093c65e571 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-16 04:23:03 +00:00
dependabot[bot]
1c8e1e20e4
Bump actions/cache from v2 to v2.1.4
...
Bumps [actions/cache](https://github.com/actions/cache ) from v2 to v2.1.4.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-16 04:23:03 +00:00
Yukihiro "Matz" Matsumoto
e2d4bedb7b
Merge pull request #5343 from jbampton/add-dependabot-config
...
feat: add Dependabot config file
2021-02-16 13:08:39 +09:00
Yukihiro "Matz" Matsumoto
d6164817f5
Use full-core gembox for clang-asan configuration.
...
For better coverage.
2021-02-16 12:55:19 +09:00
Yukihiro "Matz" Matsumoto
7470337a82
Update URL explaining alignment issue; close #5344
2021-02-16 12:50:31 +09:00
Yukihiro "Matz" Matsumoto
61370ca98c
Merge pull request #5350 from shuujii/refine-checking-for-trailing-whitespace
...
Refine checking for trailing whitespace [skip travis][skip appveyor]
2021-02-15 13:49:52 +09:00
Yukihiro "Matz" Matsumoto
2725755bc5
Merge pull request #5349 from shuujii/remove-trailing-tab-in-build_config-dreamcast_shelf.rb
...
Remove trailing tab in `build_config/dreamcast_shelf.rb` [ci skip]
2021-02-15 10:54:29 +09:00
Yukihiro "Matz" Matsumoto
330dd3f450
Merge pull request #5353 from dearblue/editorconfig
...
Introduce EditorConfig [skip ci]
2021-02-15 10:53:48 +09:00