diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-03-09 18:45:00 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-03-09 18:45:00 +0900 |
commit | 6bfb6e604549401d7b61bb0edd63ce557dff3acb () | |
tree | 906b45625ee7513a53c310e173bf0eff6ff83b60 /tool/rbinstall.rb | |
parent | ced648f96f4003e915a309a945d1b2ea47454ef9 (diff) |
Merged intermediate class `GemInstaller` to `UnpackedInstaller`
-rwxr-xr-x | tool/rbinstall.rb | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -862,10 +862,7 @@ module RbInstall end end - class GemInstaller < Gem::Installer - end - - class UnpackedInstaller < GemInstaller def write_cache_file end @@ -889,11 +886,6 @@ module RbInstall super end - def generate_bin_script(filename, bindir) - return if same_bin_script?(filename, bindir) - super - end - def same_bin_script?(filename, bindir) path = File.join(bindir, formatted_program_filename(filename)) begin @@ -912,9 +904,7 @@ module RbInstall super unless $dryrun $installed_list.puts(without_destdir(default_spec_file)) if $installed_list end - end - class GemInstaller def install spec.post_install_message = nil RbInstall.no_write(options) {super} @@ -925,6 +915,7 @@ module RbInstall end def generate_bin_script(filename, bindir) name = formatted_program_filename(filename) unless $dryrun super |