path: root/tool/rbinstall.rb
AgeCommit message (Collapse)Author
2021-10-05introduce debug.gemKoichi Sasada
For the `test-bundled-gems`, make `` with extconf.rb and `make` command directly because `rake-compiler` assume ruby is installed (but `test-bundled-gems` can run without installation). Notes: Merged:
2021-10-05Enabled to build extensions with the bundled gemsHiroshi SHIBATA
Notes: Merged:
2021-10-04Fix a typoNobuyoshi Nakada
2021-09-08[Misc #18153] Install debug symbol files/directories by the optionNobuyoshi Nakada
2021-07-08rbinstall.rb: just call File.basename directlyNobuyoshi Nakada
2021-07-01rbinstall.rb: get rid of making directories when dryrunNobuyoshi Nakada
2021-05-21Remove short options with argument [Bug #17870]Nobuyoshi Nakada
Remove GNU make `-O` and `-W` options which are short but followed by an argument, so that `$mflags.set?(?n)` does not return `true` wrongly.
2021-04-19Added the specific files to the default gems like net-http and optparseHiroshi SHIBATA
2021-04-19Fix the wrong file detection for net-*.gemspecHiroshi SHIBATA
[Bug #17476][ruby-core:101724]
2021-04-15Workaround for installation failures on macOSNobuyoshi Nakada
2021-04-10rbinstall.rb: record default gem filesNobuyoshi Nakada
2021-04-10rbinstall.rb: append "/" to directory namesNobuyoshi Nakada
2021-02-14Directory mapping for default gemsNobuyoshi Nakada
To uniform directory structures, sometimes files are gathered in different directory than the upstreams, executable files in `libexec` for instance. Re-map these files to consistent with the upstreams.
2021-02-14Revert following rbinstall.rb changesNobuyoshi Nakada
Because unexpected names are listed in gemspec files. * "Fix gemspec only case" fc56b96b09e477686975c978142e3af9179219cd * "Refined installation of gemspecs placed other than ext and lib" 31f4dec6373c15a58899f8b86e35d48a7d813bf6
2021-02-14Use UnpackedInstaller to install default gems.Vít Ondruch
Use UnpackedInstaller for installation of default gems similarly it is already used to install bundled gems. This allows to reuse RubyGems functionality instead of custom code full of exceptions.
2021-02-14Fix gemspec only caseNobuyoshi Nakada
2021-02-14Refined installation of gemspecs placed other than ext and libNobuyoshi Nakada
2021-02-11Comment in sh needs to be the beginning of a wordNobuyoshi Nakada
2020-12-07rbinstall.rb: do not install useless files after installedNobuyoshi Nakada
2020-12-07Extract gemspec to versioned fileNobuyoshi Nakada
Not to be overwritten by test-bundler-prepare. gem files often contain useless gemspec files which have not been processed.
2020-12-07rbinstall.rb: relaxed split argumentNobuyoshi Nakada
did_you_mean splits the output by `$/`.
2020-12-07rbinstall.rb: fix the position to expand filesNobuyoshi Nakada
As `spec.files` is used for `executables` and so on, the expanded list needs to be located at the same place.
2020-12-07rbinstall.rb: install files expanded from bundled gemsNobuyoshi Nakada
Although gemspec file (e.g., power_assert and rake) often uses `git ls-files`, as it does not make sense in other than its own repository, it has been ignored now. Gather all files expanded from the bundled gem to install, instead.
2020-09-11rbinstall.rb: OpenStruct has not been needed for yearsNobuyoshi Nakada
Since 6f3e8df133c7785ff6bb6f18d1faec81fefb3999 in 2014.
2020-07-29rbinstall.rb: fix generated script name to set modeNobuyoshi Nakada
2020-07-29rbinstall.rb: fix dry-run modeNobuyoshi Nakada
2020-07-05Skip comment and empty lines in gems/bundled_gems fileNobuyoshi Nakada
2020-06-13Added install-dbgNobuyoshi Nakada
Scripts to run the interpreter via debugger.
2020-05-27Don't convert bundler man pages from mdoc to manJeremy Evans
These man pages are already in man format and assuming they are mdoc format breaks things. Fixes [Bug #16823] Notes: Merged:
2020-05-09rbinstall.rb: get rid of installing duplicate filesNobuyoshi Nakada
Should not overwrite ext/rubyvm/lib/forwardable/impl.rb by lib/forwardable/impl.rb.
2020-05-09rbinstall.rb: record bundled gem filesNobuyoshi Nakada
2020-03-16Do not make disabled directories at installation [Bug #12392]Nobuyoshi Nakada
2020-03-08Fix rbinstall bugs (#2930)David Rodríguez
* Fix incorrect calls to `Gem.ensure_gem_subdirectories` This method doesn't take keyword args. * Remove stuff no longer necessary Now `Gem.ensure_gem_subdirectories` is doing its job, so some stuff is no longer needed. * Use the proper method for default gems * Respect DESTDIR when creating rubygems folder layout * Use `Gem.default_specifications_dir` Notes: Merged-By: hsbt <>
2020-02-28Fix wrong RegExp.Vít Ondruch
The missing `\` in PR #2922 causes the default gems to be installed from the .gem packages instead from the expanded sources. Notes: Merged:
2020-02-26Simplified single script caseNobuyoshi Nakada
Simply use `File.basename` to remove the directory name (and suffix), instead of `gsub` which can replace unintended parts.
2020-02-26Cache destination dir.Vít Ondruch
It is not necessary to strip the `destdir` prefix every iteration, when it can be done just once. Notes: Merged:
2020-02-26Properly detect mode for binaries.Vít Ondruch
.gemspec files specifies not just `bin`, but also other directories. Notes: Merged:
2020-02-26Use class variable `@src_dir` instead of local `path`.Vít Ondruch
The local `path` variable does not provide any additional value and was kept around just for clarity for easier review of the `extrac_files` method move. Notes: Merged:
2020-02-26Use local `{dir,prog,data}_mode` variables instead of globals.Vít Ondruch
This just gets the `RbInstall::DirPackage` closer by functionality to `Gem::Package`. Notes: Merged:
2020-02-26Use `$script_mode` instead of `$prog_mode` for gem inistallation.Vít Ondruch
rbinstall is using `$script_mode` and `$prog_mode`. However, the `$script_mode` fallbacks to `$prog_mode` if not provided. However, RubyGems do not distinguish between `$script_mode` and `$prog_mode`: Comparing the usage of `$script_mode` and `$prog_mode`, it seems that the `$script_mode` should be used where RubyGems expects `$prog_mode`. Notes: Merged:
2020-02-26Use `Gem::Package` like object instead of monkey patching.Vít Ondruch
1. This is similar to what RubyGems does and it is less magic [[1]]. 2. It avoids deprecated code paths in RubyGems [[2]]. [1]: [2]: Notes: Merged:
2020-02-25Share extracted bundled gems with gems for bundlerNobuyoshi Nakada
Extract bundled gems under ".bundle/gems" and get rid of duplication which cause constant redefinition warnings at `test-all` after `extract-gems` and `test-bundler`. Notes: Merged:
2020-02-01UnpackedInstaller on rbinstall.rb is inherited from Gem::Installer.Hiroshi SHIBATA
It also needs to explicitly convert from String to Gem::Package with initialization., options) is obsoleted. Explicitly convertedHiroshi SHIBATA
to Gem::Package from String instance.
2020-01-28Skip empty directories to install [Bug #16596]Nobuyoshi Nakada
2019-11-11Remove binary data at installationNobuyoshi Nakada
And revert "Relaxed warning assertions", 6f9be8505d172b110ec449478a791d70b9b74afb.
2019-09-06add include/ruby/backward/cxxanyargs.hpp卜部昌平
Compilation of extension libraries written in C++ are reportedly broken due to The root cause of this issue was that the definition of ANYARGS differ between C and C++, and that of C++ is incompatible with the updated ones. We are using the incompatibility against itself. In C++ two distinct function prototypes can be overloaded. We provide the old, ANYARGSed prototypes in addition to the current granular ones; and let the older ones warn about types.
2019-08-31tool/rbinstall.rb: remove a keyword-argument warningYusuke Endoh
2019-08-23Ensure all default gems have an gem folderDavid Rodríguez
Even if they don't ship with any executables. This makes rbinstall behaviour consistent with rubygems `gem install --default` command. Notes: Merged:
2019-07-15Insert a newline before `=end`Nobuyoshi Nakada
For a certain editor which cannot handle here-document properly.