summaryrefslogtreecommitdiff
path: root/tool
AgeCommit message (Collapse)Author
2022-12-16Update NEWS.mdYusuke Endoh
Regexp optimization and Wasm support are added.
2022-12-16Removed temporary workaround for syntax_suggest tagsHiroshi SHIBATA
2022-12-15Merge RubyGems/Bundler masterHiroshi SHIBATA
Pick from https://github.com/rubygems/rubygems/commit/084f7d1f21f6fc3e2bb685b7bda3653fb2891c6e Notes: Merged: https://github.com/ruby/ruby/pull/6936
2022-12-15Remove `require 'io/wait'` where it's no longer necessary. (#6932)Samuel Williams
* Remove `require 'io/wait'` as it's part of core now. * Update ruby specs using version gates. * Add note about why it's conditional. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2022-12-14Use versioning sort for released version detectionHiroshi SHIBATA
2022-12-13Match ABI versions preciselyTakashi Kokubun
"3.2.0+33" starts with "3.2.0+3", but it doesn't mean that they are the same ABI version.
2022-12-13Fix build when enable_shared is on (#6924)Jimmy Miller
Before this change, if enable_shared was true, the directory would have a suffix of -static and be deleted on each make install. This would cause a second make install to fail. Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-12-14Pin syntax_suggest-1.0.1 manually because it mixed dead_end tagsHiroshi SHIBATA
2022-12-13Skip calling f.read for `overwrite: true`-only casesTakashi Kokubun
We only need to set outpath for that case.
2022-12-13Make sure f.read is not called twiceTakashi Kokubun
--revision.h and --if-change are not used simultaneously, but they might be in the future. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-12-12Avoid overwriting revision.h when .git doesn't exist (#6915)Takashi Kokubun
* Avoid overwriting revision.h when .git doesn't exist * Overwrite revision.h if it's blank Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-12-13Don't leave backup file aroundDavid Rodríguez
I suspect this was for debugging? If not, these days we have source control tools, so this wouldn't seem necessary? Notes: Merged: https://github.com/ruby/ruby/pull/6907
2022-12-12Display error messages outside the groups so can be found quicklyNobuyoshi Nakada
2022-12-12Fix positional argument color [ci skip]Nobuyoshi Nakada
2022-12-12outdate-bundled-gems.rb: check for gemspec files for extensionsNobuyoshi Nakada
https://github.com/ruby/setup-ruby/issues/415#issuecomment-1345662263
2022-12-12outdate-bundled-gems.rb: remove unused optionNobuyoshi Nakada
2022-12-12Merge RubyGems/Bundler masterHiroshi SHIBATA
from https://github.com/rubygems/rubygems/commit/bfb0ae69776069155d2092702bfbb5a12617d85a Notes: Merged: https://github.com/ruby/ruby/pull/6906
2022-12-10[DOC] Fix update-NEWS-refs.rbNobuyoshi Nakada
* Issue numbers are path components but not fragments * Align justification width to Feature lines
2022-12-08Don't sync jar artifact of CGIHiroshi SHIBATA
2022-12-07Stop transitioning to UNDEF when undefining an instance variableAaron Patterson
Cases like this: ```ruby obj = Object.new loop do obj.instance_variable_set(:@foo, 1) obj.remove_instance_variable(:@foo) end ``` can cause us to use many more shapes than we want (and even run out). This commit changes the code such that when an instance variable is removed, we'll walk up the shape tree, find the shape, then rebuild any child nodes that happened to be below the "targetted for removal" IV. This also requires moving any instance variables so that indexes derived from the shape tree will work correctly. Co-Authored-By: Jemma Issroff <jemmaissroff@gmail.com> Co-authored-by: John Hawthorn <jhawthorn@github.com> Notes: Merged: https://github.com/ruby/ruby/pull/6866
2022-12-07NEWS.md: Added some missing featuresYusuke Endoh
Also, tool/update-NEWS-refs.rb is added to help the update of NEWS.md.
2022-12-06[Bug #18623] Link only existing excutables to make runnable [ci skip]Nobuyoshi Nakada
2022-12-05tool/runruby.rb: remove LD_PRELOAD-like env-var options from runruby.rbYuta Saito
LD_PRELOAD sometimes forces loading libraries into unrelated executables. For example, macOS on recent Apple Silicon can execute arm64 and arm64e binaries by default, and /usr/bin/clang is built as arm64e. If Ruby is built as arm64, and mkmf launched through runruby.rb spawns /usr/bin/clang, dynamic loader tries to load libruby (arm64e) into clang (arm64). This force-load causes library load failure. In theory, we don't need both LD_PRELOAD and LD_LIBRARY_PATH at the same time, because executables requiring libruby already have libruby dependency, so LD_LIBRARY_PATH is enough for this case. Notes: Merged: https://github.com/ruby/ruby/pull/6857
2022-12-03downloader.rb: Select less components pathNobuyoshi Nakada
2022-12-03downloader.rb: Fix link to absolute cache pathNobuyoshi Nakada
2022-12-01MJIT: Use install = true for bundler/inlineTakashi Kokubun
It prints a `bundle install`-like output, which seems more useful than a silent output.
2022-12-01Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6834
2022-11-29MJIT: Rename mjit_compile_attr to mjit_sp_incTakashi Kokubun
There's no mjit_compile.inc, so no need to use this prefix anymore.
2022-11-29Extract outdate-bundled-gems.rbNobuyoshi Nakada
2022-11-28MJIT: Rename mjit_compiler.h to mjit_c.hTakashi Kokubun
because it exists primarily for generating mjit_c.rb.
2022-11-28sync_default_gems.rb: move default_branch to REPOSITORIESNobuyoshi Nakada
`sync_default_gems_with_commits` also needs the default branch. Notes: Merged: https://github.com/ruby/ruby/pull/6823
2022-11-28sync_default_gems.rb: suppress a duplicated range warningNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6823
2022-11-28sync_default_gems.rb: adjust indent [ci skip]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6823
2022-11-28sync_default_gems.rb: extend for singleton methodsNobuyoshi Nakada
2022-11-28Fix the case of multiple trailersNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6820
2022-11-28Add tests for sync_default_gems.rbNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6820
2022-11-27MJIT: Use a String buffer in builtin compilersTakashi Kokubun
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.
2022-11-27MJIT: Clear .cache/clangd on bindgen if existsTakashi Kokubun
2022-11-25Do not use the same variable for multiple thingsTakashi Kokubun
`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.
2022-11-25Support other GitHub PR/issue syntaxesTakashi Kokubun
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
2022-11-21Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6777
2022-11-20Fix a broken interpolation #{head}Takashi Kokubun
2022-11-20sync_default_gems.rb: Fix substitution [ci skip]Nobuyoshi Nakada
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.
2022-11-19Run skipped minitest tests that now passAlan Wu
The mentioned PR was merged. Notes: Merged: https://github.com/ruby/ruby/pull/6768
2022-11-18rename SHAPE_BITS to SHAPE_ID_NUM_BITSAaron Patterson
Notes: Merged: https://github.com/ruby/ruby/pull/6737
2022-11-18tool/generic_erb.rb: Add a hack to prevent "unused variable" warningsYusuke Endoh
2022-11-18Revert "tool/generic_erb.rb: Use ERB#result_with_hash instead of #result"Yusuke Endoh
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) ```
2022-11-18tool/generic_erb.rb: Use ERB#result_with_hash instead of #resultYusuke Endoh
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 ```
2022-11-16Remove duplicate `.rbinc` on `.rb` dependenciesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6742
2022-11-15Let mjit-bindgen use BASERUBY and bundle/inline (#6740)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>