summaryrefslogtreecommitdiff
path: root/tool
Commit message (Collapse)AuthorAgeFilesLines
* Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada2022-12-016-9/+9
|
* MJIT: Rename mjit_compile_attr to mjit_sp_incTakashi Kokubun2022-11-292-1/+1
| | | | There's no mjit_compile.inc, so no need to use this prefix anymore.
* Extract outdate-bundled-gems.rbNobuyoshi Nakada2022-11-291-0/+134
|
* MJIT: Rename mjit_compiler.h to mjit_c.hTakashi Kokubun2022-11-281-2/+2
| | | | because it exists primarily for generating mjit_c.rb.
* sync_default_gems.rb: move default_branch to REPOSITORIESNobuyoshi Nakada2022-11-281-15/+25
| | | | `sync_default_gems_with_commits` also needs the default branch.
* sync_default_gems.rb: suppress a duplicated range warningNobuyoshi Nakada2022-11-281-1/+1
|
* sync_default_gems.rb: adjust indent [ci skip]Nobuyoshi Nakada2022-11-281-659/+659
|
* sync_default_gems.rb: extend for singleton methodsNobuyoshi Nakada2022-11-281-0/+1
|
* Fix the case of multiple trailersNobuyoshi Nakada2022-11-282-2/+13
|
* Add tests for sync_default_gems.rbNobuyoshi Nakada2022-11-282-0/+60
|
* MJIT: Use a String buffer in builtin compilersTakashi Kokubun2022-11-271-9/+9
| | | | | | | instead of FILE*. Using C.fprintf is slower than String manipulation on memory. I'm going to change the way MJIT writes files, and this is a prerequisite for it.
* MJIT: Clear .cache/clangd on bindgen if existsTakashi Kokubun2022-11-271-0/+8
|
* Do not use the same variable for multiple thingsTakashi Kokubun2022-11-251-5/+5
| | | | | | | `conv` proc is used before and after the `url` variable is updated. So this script didn't seem to behave correctly for the "Close #xxx" syntax. Reusing the same variable name for different things seems prone to errors.
* Support other GitHub PR/issue syntaxesTakashi Kokubun2022-11-251-1/+1
| | | | https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
* Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada2022-11-217-39/+31
|
* Fix a broken interpolation #{head}Takashi Kokubun2022-11-201-2/+3
|
* sync_default_gems.rb: Fix substitution [ci skip]Nobuyoshi Nakada2022-11-201-3/+9
| | | | | | As there should be no modified files just affter `git cherry-pick` succeeded in `sync_default_gems_with_commits`, reset to the previous revision once to pick up the committed files.
* Run skipped minitest tests that now passAlan Wu2022-11-191-5/+0
| | | | The mentioned PR was merged.
* rename SHAPE_BITS to SHAPE_ID_NUM_BITSAaron Patterson2022-11-181-1/+1
|
* tool/generic_erb.rb: Add a hack to prevent "unused variable" warningsYusuke Endoh2022-11-181-0/+3
|
* Revert "tool/generic_erb.rb: Use ERB#result_with_hash instead of #result"Yusuke Endoh2022-11-181-1/+1
| | | | | | | | | | | This reverts commit bd148a2bdd0c1a4d7679eedcd649171cdb4234d7. ERB#result_with_hash does not work on Ruby 2.2 https://ci.appveyor.com/project/ruby/ruby/builds/45420170 ``` ../tool/generic_erb.rb:33:in `block (2 levels) in <main>': undefined method `result_with_hash' for #<ERB:0x0000000002516650> (NoMethodError) ```
* tool/generic_erb.rb: Use ERB#result_with_hash instead of #resultYusuke Endoh2022-11-181-1/+1
| | | | | | | | to prevent the warnings: ``` ./tool/generic_erb.rb:23: warning: assigned but unused variable - output ./tool/generic_erb.rb:24: warning: assigned but unused variable - vpath ```
* Remove duplicate `.rbinc` on `.rb` dependenciesNobuyoshi Nakada2022-11-161-1/+1
|
* Let mjit-bindgen use BASERUBY and bundle/inline (#6740)Takashi Kokubun2022-11-153-11/+12
|
* Depending on revision.h with VPATHNobuyoshi Nakada2022-11-161-1/+1
|
* MJIT: Fix vm_cc_cme(cc).def.type to use bit fieldTakashi Kokubun2022-11-151-1/+1
| | | | | | | | | access properly. Because the libclang node had two children, it wasn't handled well by the pattern matching for the bit field case. In addition to that, this bit field has a non-1 width. Because we're returning true/false for a width-1 bit field, I added another behavior that works like a char value for bit fields with width 2-8.
* Update RSpec gemsDavid Rodríguez2022-11-154-19/+20
|
* Remove USE_RVARGC codeAaron Patterson2022-11-141-1/+0
| | | | We don't need this constant to be exposed anymore, so remove it
* Import shape constants with mjit-bindgenTakashi Kokubun2022-11-141-0/+10
|
* Import class constants with mjit-bindgenTakashi Kokubun2022-11-141-0/+8
|
* Try to overwrite the file in VPATH if possibleNobuyoshi Nakada2022-11-131-1/+2
|
* Preprocess for older bison is no longer neededNobuyoshi Nakada2022-11-101-24/+0
|
* jobserver option may not be at the lastNobuyoshi Nakada2022-11-071-1/+2
|
* Set `autoclose:` for inherited FDs only [ci skip]Nobuyoshi Nakada2022-11-071-2/+2
|
* GNU make 4.4 now uses a fifo for the jobserverNobuyoshi Nakada2022-11-061-3/+8
|
* Don't report changed ENV caused by BundlerPeter Zhu2022-11-041-0/+3
| | | | | | Bundler's backups changes environment variables starting with BUNDLER_ORIG_. This causes a lot of noise in tests as the leakchecker reports them as changed.
* mkconfig.rb: take CPU name from arch flagNobuyoshi Nakada2022-11-041-0/+8
|
* sync_default_gems.rb: fix a typo [ci skip]Nobuyoshi Nakada2022-11-041-1/+1
|
* sync_default_gems.rb: fix the position to insert the original URLNobuyoshi Nakada2022-11-041-2/+3
| | | | | Since the regexp had expected an empty line before `Co-Authored-By:` trailer lines, it failed to match when the body has the trailer only.
* sync_default_gems.rb: accept log input from other than STDINNobuyoshi Nakada2022-11-041-4/+6
|
* Fix crash in test runner on timeoutPeter Zhu2022-11-021-1/+4
| | | | | | | | | | | When a test worker hangs and timeouts, the test runner crashes with the following stack trace: ruby/tool/lib/test/unit.rb:1747:in `puke': undefined method `backtrace' for Timeout::Error:Class (NoMethodError) from ruby/tool/lib/test/unit.rb:790:in `block in _run_parallel' from ruby/tool/lib/test/unit.rb:788:in `each' This commit adds handling for Timeout::Error and outputs a message.
* file2lastrev.rb: changed revision may be `nil` [ci skip]Nobuyoshi Nakada2022-11-021-2/+4
| | | | | | When `--suppress_not_found` option is given, no revision information is available. And remove extraneous newline, when result is empty or ends with a newline.
* file2lastrev.rb: try to overwrite the found revision.h as beforeNobuyoshi Nakada2022-11-022-6/+9
|
* file2lastrev.rb: separate options for `Output` and `VPath`Nobuyoshi Nakada2022-11-023-1/+8
| | | | | So the `--srcdir` option in this file can override the same option in `VPath`.
* file2lastrev.rb: use output.rb for the optionsNobuyoshi Nakada2022-11-011-2/+5
|
* file2lastrev.rb: rename output as formatNobuyoshi Nakada2022-11-011-15/+15
| | | | | | Also: - format -> time_format - output -> formatter
* output.rb: extract from generic_erb.rbNobuyoshi Nakada2022-11-012-33/+55
| | | | | | | - writing to a file or stdout - touching timestamp files - overwriting only if changed - colorizing
* colorize.rb: support for NO_COLORNobuyoshi Nakada2022-11-011-1/+1
|
* vpath.rb: tweak --vpath option messageNobuyoshi Nakada2022-11-011-1/+1
|
* vcs.rb: do not reference the constant before assignmentNobuyoshi Nakada2022-11-011-3/+3
|