summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-03-09 18:45:00 +0900
committerNobuyoshi Nakada <[email protected]>2024-03-09 18:45:00 +0900
commit6bfb6e604549401d7b61bb0edd63ce557dff3acb ()
tree906b45625ee7513a53c310e173bf0eff6ff83b60 /tool/rbinstall.rb
parentced648f96f4003e915a309a945d1b2ea47454ef9 (diff)
Merged intermediate class `GemInstaller` to `UnpackedInstaller`
-rwxr-xr-xtool/rbinstall.rb13
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