Yukihiro "Matz" Matsumoto
757902c497
Check NaN and Infinity before converting Float to Rational.
2021-01-02 23:36:41 +09:00
Yukihiro "Matz" Matsumoto
392aff7099
Use Jenkins One At A Time Hash for mrb_str_hash().
2021-01-02 20:28:29 +09:00
Yukihiro "Matz" Matsumoto
d55367582c
Allow negative integer value formatting in base 8 and 16.
2021-01-02 20:28:29 +09:00
Yukihiro "Matz" Matsumoto
b151a697e0
Fixed wrong casting in OP_LOADI32.
...
Negative integer `>-65535` had wrong value, e,g, `p(-40550)` printed
`4294926746` since Nov. 2020, sigh.
2021-01-02 20:28:28 +09:00
Yukihiro "Matz" Matsumoto
c1f05a7fb3
Avoid uint64_t in string-to-integer conversion; ref #5201
2021-01-02 20:28:27 +09:00
Yukihiro "Matz" Matsumoto
4ac73307fd
Reduce strength of the hash function; ref #5201
...
Also avoid using `uint64_t`.
2021-01-02 20:28:27 +09:00
Yukihiro "Matz" Matsumoto
6323c995f3
Use type casting macros; ref #5246 #5247
2021-01-02 20:28:26 +09:00
Yukihiro "Matz" Matsumoto
15e7b3e8fe
Merge pull request #5251 from SeekingMeaning/squiggly-fix-3
...
Fix regression for squiggly heredocs
2021-01-02 20:28:13 +09:00
Yukihiro "Matz" Matsumoto
12cb7207ec
Merge pull request #5253 from shuujii/refine-wrong-number-of-arguments-message-in-mrb_get_args
...
Refine "wrong number of arguments" message in `mrb_get_args`
2021-01-02 19:45:09 +09:00
KOBAYASHI Shuji
1a9ac02d8d
Refine "wrong number of arguments" message in mrb_get_args
...
#### Before this patch:
```ruby
__send__ #=> wrong number of arguments
{}.default(1,2) #=> wrong number of arguments
```
#### After this patch:
```ruby
__send__ #=> wrong number of arguments (given 0, expected 1+)
{}.default(1,2) #=> wrong number of arguments (given 2, expected 0..1)
```
2021-01-02 19:15:34 +09:00
Seeker
1099050377
Treat tabs as 8 spaces in squiggly heredocs
2020-12-31 19:09:38 -08:00
Seeker
4683a196d9
Fix regression for squiggly heredocs
2020-12-31 19:08:44 -08:00
Yukihiro "Matz" Matsumoto
1fbabe207d
Merge pull request #5245 from jbampton/for-mruby-for-2021
...
Update copyright year for 2021
2021-01-01 00:24:53 +09:00
Yukihiro "Matz" Matsumoto
db2a7a1e6e
Merge pull request #5252 from dearblue/rm-gc_test
...
Removed unusable `GC.test`
2021-01-01 00:24:12 +09:00
dearblue
ae72feb468
Removed unusable GC.test
...
The substance of the method was removed in commit 15ceb35e05 .
2020-12-31 22:22:45 +09:00
Yukihiro "Matz" Matsumoto
aabfe31d98
Merge pull request #5250 from shuujii/refine-error-message-from-mrb_get_arg1
...
Refine error message from `mrb_get_arg1`
2020-12-29 22:44:43 +09:00
KOBAYASHI Shuji
1fae7c0a69
Refine error message from mrb_get_arg1
...
#### Before this patch:
```console
$ bin/mruby -e '{}.key?'
trace (most recent call last):
-e:1: wrong number of arguments (ArgumentError)
```
#### After this patch:
```console
$ bin/mruby -e '{}.key?'
trace (most recent call last):
-e:1: wrong number of arguments (given 0, expected 1) (ArgumentError)
```
2020-12-29 19:04:19 +09:00
Yukihiro "Matz" Matsumoto
d44a1de8f4
Merge pull request #5249 from SeekingMeaning/squiggly-fix-2
...
Fix mixed indentation and escaped tabs in squiggly heredocs
2020-12-29 13:51:41 +09:00
Seeker
49b01f23a4
Fix mixed indentation and escaped tabs in squiggly heredocs
2020-12-28 18:22:13 -08:00
Yukihiro "Matz" Matsumoto
9b501ab507
Merge pull request #5247 from SeekingMeaning/squiggly-fix
...
Fix for empty lines in squiggly heredocs
2020-12-28 17:03:52 +09:00
Seeker
3a2ff9824e
Fix for empty lines in squiggly heredocs
2020-12-27 23:10:08 -08:00
Yukihiro "Matz" Matsumoto
6d98ae57f2
Merge pull request #5248 from SeekingMeaning/hash-except
...
Add `Hash#except` [Ruby 3.0]
2020-12-28 15:19:13 +09:00
Seeker
14a92f9705
Add Hash#except [Ruby 3.0]
2020-12-27 16:33:12 -08:00
Yukihiro "Matz" Matsumoto
d57d6e2b5b
Merge pull request #5246 from SeekingMeaning/squiggly-heredocs
...
Add support for squiggly heredocs
2020-12-27 20:05:45 +09:00
Seeker
6312a50045
Fix operand types error
2020-12-27 00:20:02 -08:00
Seeker
6491d8dd28
Commit y.tab.c
2020-12-27 00:09:39 -08:00
Seeker
54bfcaf1ff
Add support for squiggly heredocs
2020-12-26 23:48:20 -08:00
John Bampton
38de04c4f7
Update copyright year for 2021
2020-12-27 01:11:47 +10:00
Yukihiro "Matz" Matsumoto
dad43359cb
Merge pull request #5244 from dearblue/eval-nomem
...
Improves out of memory messages for `eval`
2020-12-26 08:44:08 +09:00
dearblue
88a11d81b0
Improves out of memory messages for eval
...
The comment says that if `mrb_parse_nstring()` returns `NULL`, it is only out of memory.
I'm worried about compatibility if I set the exception class to `NoMemoryError`, so it's still `RuntimeError`.
2020-12-25 23:24:20 +09:00
Yukihiro "Matz" Matsumoto
825c14a0c5
Reset paren_nest at tAREF and tASET.
2020-12-24 23:30:42 +09:00
Yukihiro "Matz" Matsumoto
2850b58dd9
Check integer overflow in float bit operations.
2020-12-24 23:17:18 +09:00
Yukihiro "Matz" Matsumoto
3419426dbf
Avoid division by zero in rational_to_f().
2020-12-24 23:16:49 +09:00
Yukihiro "Matz" Matsumoto
4e90d6938a
Merge pull request #5242 from jbampton/add-codeowners
...
Create CODEOWNERS file
2020-12-23 15:59:30 +09:00
Yukihiro "Matz" Matsumoto
7f73af079a
Merge pull request #5243 from boatrite/add-gba-build-config
...
Add example for cross-compiling to Nintendo GameBoyAdvance
2020-12-23 15:55:38 +09:00
Gwen Boatrite
3bfafd198c
Add example for cross-compiling to Nintendo GameBoyAdvance
2020-12-23 00:26:49 -06:00
Yukihiro "Matz" Matsumoto
0bb4afe942
Fix the integer overflow in mrb_str_len_to_inum().
2020-12-23 10:35:15 +09:00
John Bampton
e96620cd23
Create CODEOWNERS file
...
- You can use a CODEOWNERS file to define individuals or teams that are responsible for code in a repository.
- Code owners are automatically requested for review when someone opens a pull request that modifies code that they own. Code owners are not automatically requested to review draft pull requests.
- https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-code-owners
- This creates a bit more automation so that after you merge this PR, next time someone submits a PR @matz will be automatically assigned as the PR reviewer as CODEOWNER
- CODEOWNERS can even be assigned directories or file types
2020-12-22 16:09:41 +10:00
Yukihiro "Matz" Matsumoto
8b2fd45d46
Merge pull request #5239 from jbampton/fix-links
...
refactor: fix Rake link and fix missing HTTPS on links
2020-12-21 23:11:40 +09:00
John Bampton
16cb81c727
refactor: fix Rake link and fix missing HTTPS on links
2020-12-21 18:46:38 +10:00
Yukihiro "Matz" Matsumoto
788ee38bdf
Merge pull request #5238 from shuujii/fix-typo-in-.github-workflows-build.yml
...
Fix typo in `.github/workflows/build.yml` [skip travis][skip appveyor]
2020-12-21 17:07:20 +09:00
KOBAYASHI Shuji
366780f0bc
Fix typo in .github/workflows/build.yml [skip travis][skip appveyor]
2020-12-21 16:12:02 +09:00
Yukihiro "Matz" Matsumoto
3069299200
Merge pull request #5237 from shuujii/use-git-ls-files-instead-of-find-to-avoid-including-.git
...
Use `git ls-files` instead of `find` in `spell-checker.yml` [ci skip]
2020-12-21 08:33:42 +09:00
KOBAYASHI Shuji
01a6cdb882
Use git ls-files instead of find in spell-checker.yml [ci skip]
...
To avoid including `.git` directory.
2020-12-20 22:52:33 +09:00
Yukihiro "Matz" Matsumoto
a65c33c487
Merge pull request #5236 from shuujii/reorganize-GitHub-Actions-configuration
...
Reorganize GitHub Actions configuration [skip travis][skip appveyor]
2020-12-20 18:13:48 +09:00
Yukihiro "Matz" Matsumoto
5337e9375c
Merge pull request #5235 from jbampton/fix-link-and-fix-word-case
...
refactor: fix case of GitHub and fix missing HTTPS on link
2020-12-20 18:12:23 +09:00
KOBAYASHI Shuji
74e1d1ea02
Reorganize GitHub Actions configuration [skip travis][skip appveyor]
...
* Skip if commit message contains `ci skip`, `skip ci`, or `skip gha`
ENCLOSED WITH BRACKETS (excluding lint job).
* Separate build and test. This is because builds can be run in parallel,
but running tests in parallel can cause logs to get mixed up or not
finished.
* Don't use Chocolatey because it seems to take 1-2 minutes to start up.
* Use the cache better.
* Use `actions/checkout@v2` instead of `actions/checkout@v1`.
* Remove unnecessary package installation.
* Remove unnecessary flag settings.
* Remove `-j` for rake because it doesn't seem to have any effect.
* Rename `main.yml` to `oss-fuzz.yml` to clarify.
2020-12-20 15:31:15 +09:00
John Bampton
68af0cca65
refactor: fix case of GitHub and fix missing HTTPS on link
...
- changed `github` to `GitHub`
2020-12-19 23:55:10 +10:00
Yukihiro "Matz" Matsumoto
a528312542
Merge pull request #5234 from jbampton/remove-whitespace
...
refactor: remove trailing whitespace
2020-12-19 22:44:23 +09:00
Yukihiro "Matz" Matsumoto
c17f1be52a
Merge pull request #5233 from jbampton/update-authors
...
Add my name to the AUTHORS file
2020-12-19 22:43:58 +09:00