aboutsummaryrefslogtreecommitdiffstats
path: root/tool/rbinstall.rb
Commit message (Collapse)AuthorAgeFilesLines
* introduce debug.gemKoichi Sasada2021-10-051-1/+16
| | | | | | For the `test-bundled-gems`, make `debug.so` with extconf.rb and `make` command directly because `rake-compiler` assume ruby is installed (but `test-bundled-gems` can run without installation).
* Enabled to build extensions with the bundled gemsHiroshi SHIBATA2021-10-051-3/+0
|
* Fix a typoNobuyoshi Nakada2021-10-041-1/+1
|
* [Misc #18153] Install debug symbol files/directories by the optionNobuyoshi Nakada2021-09-081-0/+16
|
* rbinstall.rb: just call File.basename directlyNobuyoshi Nakada2021-07-081-3/+2
|
* rbinstall.rb: get rid of making directories when dryrunNobuyoshi Nakada2021-07-011-21/+30
|
* Remove short options with argument [Bug #17870]Nobuyoshi Nakada2021-05-211-0/+3
| | | | | | 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.
* Added the specific files to the default gems like net-http and optparseHiroshi SHIBATA2021-04-191-6/+15
|
* Fix the wrong file detection for net-*.gemspecHiroshi SHIBATA2021-04-191-0/+5
| | | | [Bug #17476][ruby-core:101724]
* Workaround for installation failures on macOSNobuyoshi Nakada2021-04-151-0/+2
|
* rbinstall.rb: record default gem filesNobuyoshi Nakada2021-04-101-0/+5
|
* rbinstall.rb: append "/" to directory namesNobuyoshi Nakada2021-04-101-1/+1
|
* Directory mapping for default gemsNobuyoshi Nakada2021-02-141-8/+8
| | | | | | | 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.
* Revert following rbinstall.rb changesNobuyoshi Nakada2021-02-141-11/+5
| | | | | | | | | | Because unexpected names are listed in gemspec files. * "Fix gemspec only case" fc56b96b09e477686975c978142e3af9179219cd * "Refined installation of gemspecs placed other than ext and lib" 31f4dec6373c15a58899f8b86e35d48a7d813bf6
* Use UnpackedInstaller to install default gems.Vít Ondruch2021-02-141-22/+26
| | | | | | | | 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.
* Fix gemspec only caseNobuyoshi Nakada2021-02-141-1/+6
|
* Refined installation of gemspecs placed other than ext and libNobuyoshi Nakada2021-02-141-6/+7
|
* Comment in sh needs to be the beginning of a wordNobuyoshi Nakada2021-02-111-1/+1
|
* rbinstall.rb: do not install useless files after installedNobuyoshi Nakada2020-12-071-1/+1
|
* Extract gemspec to versioned fileNobuyoshi Nakada2020-12-071-3/+8
| | | | | Not to be overwritten by test-bundler-prepare. gem files often contain useless gemspec files which have not been processed.
* rbinstall.rb: relaxed split argumentNobuyoshi Nakada2020-12-071-1/+1
| | | | did_you_mean splits the output by `$/`.
* rbinstall.rb: fix the position to expand filesNobuyoshi Nakada2020-12-071-13/+13
| | | | | As `spec.files` is used for `executables` and so on, the expanded list needs to be located at the same place.
* rbinstall.rb: install files expanded from bundled gemsNobuyoshi Nakada2020-12-071-2/+14
| | | | | | | 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.
* rbinstall.rb: OpenStruct has not been needed for yearsNobuyoshi Nakada2020-09-111-1/+0
| | | | Since 6f3e8df133c7785ff6bb6f18d1faec81fefb3999 in 2014.
* rbinstall.rb: fix generated script name to set modeNobuyoshi Nakada2020-07-291-5/+3
|
* rbinstall.rb: fix dry-run modeNobuyoshi Nakada2020-07-291-20/+52
|
* Skip comment and empty lines in gems/bundled_gems fileNobuyoshi Nakada2020-07-051-0/+1
|
* Added install-dbgNobuyoshi Nakada2020-06-131-3/+24
| | | | Scripts to run the interpreter via debugger.
* Don't convert bundler man pages from mdoc to manJeremy Evans2020-05-271-2/+7
| | | | | | | These man pages are already in man format and assuming they are mdoc format breaks things. Fixes [Bug #16823]
* rbinstall.rb: get rid of installing duplicate filesNobuyoshi Nakada2020-05-091-1/+5
| | | | | Should not overwrite ext/rubyvm/lib/forwardable/impl.rb by lib/forwardable/impl.rb.
* rbinstall.rb: record bundled gem filesNobuyoshi Nakada2020-05-091-2/+9
|
* Do not make disabled directories at installation [Bug #12392]Nobuyoshi Nakada2020-03-161-4/+8
|
* Fix rbinstall bugs (#2930)David Rodríguez2020-03-081-7/+6
| | | | | | | | | | | | | | | | * 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`
* Fix wrong RegExp.Vít Ondruch2020-02-281-1/+1
| | | | | The missing `\` in PR #2922 causes the default gems to be installed from the .gem packages instead from the expanded sources.
* Simplified single script caseNobuyoshi Nakada2020-02-261-1/+1
| | | | | Simply use `File.basename` to remove the directory name (and suffix), instead of `gsub` which can replace unintended parts.
* Cache destination dir.Vít Ondruch2020-02-261-1/+2
| | | | | It is not necessary to strip the `destdir` prefix every iteration, when it can be done just once.
* Properly detect mode for binaries.Vít Ondruch2020-02-261-1/+1
| | | | .gemspec files specifies not just `bin`, but also other directories.
* Use class variable `@src_dir` instead of local `path`.Vít Ondruch2020-02-261-3/+2
| | | | | | 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.
* Use local `{dir,prog,data}_mode` variables instead of globals.Vít Ondruch2020-02-261-2/+2
| | | | | This just gets the `RbInstall::DirPackage` closer by functionality to `Gem::Package`.
* Use `$script_mode` instead of `$prog_mode` for gem inistallation.Vít Ondruch2020-02-261-1/+1
| | | | | | | | | | | | | | | 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`: https://github.com/rubygems/rubygems/blame/92892bbc3adba86a90756c385433835f6761b8da/lib/rubygems/installer.rb#L196 https://github.com/rubygems/rubygems/blame/92892bbc3adba86a90756c385433835f6761b8da/lib/rubygems/installer.rb#L515 https://github.com/rubygems/rubygems/blame/92892bbc3adba86a90756c385433835f6761b8da/lib/rubygems/installer.rb#L543 Comparing the usage of `$script_mode` and `$prog_mode`, it seems that the `$script_mode` should be used where RubyGems expects `$prog_mode`.
* Use `Gem::Package` like object instead of monkey patching.Vít Ondruch2020-02-261-21/+27
| | | | | | | | 1. This is similar to what RubyGems does and it is less magic [[1]]. 2. It avoids deprecated code paths in RubyGems [[2]]. [1]: https://github.com/rubygems/rubygems/blob/92892bbc3adba86a90756c385433835f6761b8da/lib/rubygems/installer.rb#L151 [2]: https://github.com/rubygems/rubygems/blob/92892bbc3adba86a90756c385433835f6761b8da/lib/rubygems/installer.rb#L187
* Share extracted bundled gems with gems for bundlerNobuyoshi Nakada2020-02-251-3/+6
| | | | | | 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`.
* UnpackedInstaller on rbinstall.rb is inherited from Gem::Installer.Hiroshi SHIBATA2020-02-011-1/+2
| | | | | It also needs to explicitly convert from String to Gem::Package with initialization.
* Gem::Installer.new(String, options) is obsoleted. Explicitly convertedHiroshi SHIBATA2020-02-011-1/+2
| | | | to Gem::Package from String instance.
* Skip empty directories to install [Bug #16596]Nobuyoshi Nakada2020-01-281-1/+2
|
* Remove binary data at installationNobuyoshi Nakada2019-11-111-1/+1
| | | | | And revert "Relaxed warning assertions", 6f9be8505d172b110ec449478a791d70b9b74afb.
* add include/ruby/backward/cxxanyargs.hpp卜部昌平2019-09-061-2/+2
| | | | | | | | | | | | | | Compilation of extension libraries written in C++ are reportedly broken due to https://github.com/ruby/ruby/pull/2404 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.
* tool/rbinstall.rb: remove a keyword-argument warningYusuke Endoh2019-08-311-1/+1
|
* Ensure all default gems have an gem folderDavid Rodríguez2019-08-231-1/+5
| | | | | Even if they don't ship with any executables. This makes rbinstall behaviour consistent with rubygems `gem install --default` command.
* Insert a newline before `=end`Nobuyoshi Nakada2019-07-151-1/+2
| | | | For a certain editor which cannot handle here-document properly.