diff options
Diffstat (limited to 'lib/rubygems/installer.rb')
-rw-r--r-- | lib/rubygems/installer.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb index c6fad3c492..47995f4cb7 100644 --- a/lib/rubygems/installer.rb +++ b/lib/rubygems/installer.rb @@ -212,17 +212,17 @@ class Gem::Installer FileUtils.rm_rf gem_dir FileUtils.mkdir_p gem_dir - + if @options[:install_as_default] extract_bin write_default_spec else extract_files - + build_extensions write_build_info_file run_post_build_hooks - + generate_bin write_spec write_cache_file @@ -349,11 +349,11 @@ class Gem::Installer file.fsync rescue nil # for filesystems without fsync(2) end end - + ## # Writes the full .gemspec specification (in Ruby) to the gem home's # specifications/default directory. - + def write_default_spec File.open(default_spec_file, "w") do |file| file.puts spec.to_ruby @@ -738,12 +738,12 @@ EOF def extract_files @package.extract_files gem_dir end - + ## # Extracts only the bin/ files from the gem into the gem directory. # This is used by default gems to allow a gem-aware stub to function # without the full gem installed. - + def extract_bin @package.extract_files gem_dir, "bin/*" end |