summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2021-06-17Merge pull request #5481 from jbampton/fix-shebangYukihiro "Matz" Matsumoto
Fix shebang by removing whitespace
2021-06-17Fix shebang by removing whitespaceJohn Bampton
2021-06-17Add two more pre-commit hooksJohn Bampton
2021-06-17Add the rules to the markdownlint config file as commentsJohn Bampton
Enable MD011 no-reversed-links - Reversed link syntax
2021-06-17Revert "`instance_eval` for classes and modules should behave as `class_eval`."Yukihiro "Matz" Matsumoto
This reverts commit ee3017496ba60ca418b5e54c1f8f5d8b38524a52. I misunderstood something and the new behavior was different from CRuby. The issue was reported by @dearblue, regarding #5478
2021-06-16Merge pull request #5444 from jbampton/add-misspell-docsYukihiro "Matz" Matsumoto
Add documentation on spell checking with misspell
2021-06-16Merge pull request #5445 from jbampton/add-codespell-pre-commit-hookYukihiro "Matz" Matsumoto
Run pre-commit with GitHub Actions
2021-06-16eval.c: implement `class_eval` with string; close #5478Yukihiro "Matz" Matsumoto
2021-06-16Run pre-commit with GitHub ActionsJohn 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-06-15numeric.c: restore `fmt` argument for backward compatibility.Yukihiro "Matz" Matsumoto
`mrb_float_to_str()` used to take `fmt` argument. We thought no one used the function, and OK to remove the argument. But at least `mruby-redis` gem used the function.
2021-06-14pack.c: support `w' directive (BER integer compression).Yukihiro "Matz" Matsumoto
2021-06-13pack.c: `count` should not be negative for directives `xX@`.Yukihiro "Matz" Matsumoto
2021-06-13pack.c: raise error for unsupported `w` directive.Yukihiro "Matz" Matsumoto
2021-06-12readint.c: fixed typo.Yukihiro "Matz" Matsumoto
2021-06-12pack.c: support `@' directive (absolute position).Yukihiro "Matz" Matsumoto
2021-06-12pack.c: refactor pack/unpack 'X'.Yukihiro "Matz" Matsumoto
2021-06-12pack.c: add `X` directive (back up byte).Yukihiro "Matz" Matsumoto
2021-06-12pack.c: `count` should be always positive. no check needed.Yukihiro "Matz" Matsumoto
2021-06-12pack.c: fix `long/int` mixtures.Yukihiro "Matz" Matsumoto
2021-06-12pack.c: remove unused arguments from static functions.Yukihiro "Matz" Matsumoto
2021-06-12pack.c: wrong position after count read.Yukihiro "Matz" Matsumoto
2021-06-12Merge pull request #5476 from dearblue/eval+superYukihiro "Matz" Matsumoto
Raise `TypeError` with `super` inside `instance_eval` / `class_eval`
2021-06-12Raise `TypeError` with `super` inside `instance_eval` / `class_eval`dearblue
Commit d0f60182af9114f6840d993d74f492e483302805 introduced an exception as a limitation of mruby. Subsequent CRuby-2.7 has changed its behavior to raise an exception. ref: https://github.com/ruby/ruby/commit/55b7ba368696033f2e89b77cbcd4a05dec97b139
2021-06-11codegen.c: refactor `readint()`Yukihiro "Matz" Matsumoto
* renamed from redundant `readint_mrb_int()` * supports only base upto 16 * no base validation (already done in parser) * no negative read (negate after read) * overflow detection using `mrb_int_{mul,add}_overflow()`
2021-06-11readint.c: add new function `mrb_int_read`.Yukihiro "Matz" Matsumoto
Difference from `strtoul(3)`: * reads `mrb_int` based on configuration * specifies the end of the string * no sign interpretation * base 10 only
2021-06-11Merge pull request #5475 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-4.2.2 build(deps): bump github/super-linter from 4.2.1 to 4.2.2
2021-06-11build(deps): bump github/super-linter from 4.2.1 to 4.2.2dependabot[bot]
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.2.1 to 4.2.2. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v4.2.1...v4.2.2) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2021-06-10sprintf.c: check value range before type casting.Yukihiro "Matz" Matsumoto
2021-06-10readflt.c: renamed from `strtod.c`Yukihiro "Matz" Matsumoto
The file provides `mrb_read_float()` renamed from `vim_strtod()`.
2021-06-10Merge pull request #5474 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-4.2.1 build(deps): bump github/super-linter from 4.2.0 to 4.2.1
2021-06-10build(deps): bump github/super-linter from 4.2.0 to 4.2.1dependabot[bot]
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.2.0 to 4.2.1. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v4.2.0...v4.2.1) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2021-06-09Merge pull request #5473 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-4.2.0 build(deps): bump github/super-linter from 4.1.0 to 4.2.0
2021-06-09build(deps): bump github/super-linter from 4.1.0 to 4.2.0dependabot[bot]
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.1.0 to 4.2.0. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v4.1.0...v4.2.0) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2021-06-08string.c: make `mrb_str_len_{inum,dbl}()` static.Yukihiro "Matz" Matsumoto
2021-06-08string.c: remove two unused functions.Yukihiro "Matz" Matsumoto
* `mrb_cstr_to_inum()` * `mrb_cstr_to_dbl()`
2021-06-08string.c: add `base>36` check to `String#to_i`.Yukihiro "Matz" Matsumoto
2021-06-07sprintf.c: fix `mrb_int` and `int` mixture errors.Yukihiro "Matz" Matsumoto
2021-06-07pack.c: fix 'void*` to `char*` assignment.Yukihiro "Matz" Matsumoto
2021-06-07pack.c: add `default` to `switch` statement to silence warnings.Yukihiro "Matz" Matsumoto
2021-06-07pack.c: support `M` specifier (quoted-printable).Yukihiro "Matz" Matsumoto
2021-06-07test/pack.c: reorganize test suits.Yukihiro "Matz" Matsumoto
2021-06-07pack.c: raise exception for unsupported specifiers.Yukihiro "Matz" Matsumoto
2021-06-06pack.c: check overflow before calling `pack_x`.Yukihiro "Matz" Matsumoto
2021-06-06pack.c: check overflow before reading count.Yukihiro "Matz" Matsumoto
2021-06-06pack.c: failed to detect overflow when `ch` is zero in `read_tmpl`.Yukihiro "Matz" Matsumoto
2021-06-05pack.c: hold `enum` values in `enum` variables not `int`.Yukihiro "Matz" Matsumoto
2021-06-05codedump.c: fix a compiler condition bug with `MRB_NO_FLOAT`.Yukihiro "Matz" Matsumoto
2021-06-05ops.h: fix term consistency. `Lit` -> `Pool`.Yukihiro "Matz" Matsumoto
2021-06-04Merge branch 'mirichi-test'Yukihiro "Matz" Matsumoto
2021-06-04add block argument test #2144mirichi