aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/installer.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-20 00:31:12 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-20 00:31:12 +0000
commit8552f7aa680e1f1a31d76dc9038d80248a445960 (patch)
tree29de125ca8389a65e44d42b269a19274b8846b11 /lib/rubygems/installer.rb
parent347e748bddd42e5a39dcb5c55ac37704a14b9374 (diff)
downloadruby-8552f7aa680e1f1a31d76dc9038d80248a445960.tar.gz
* lib/rubygems: Update to RubyGems master 3de7e0f. Changes:
Only attempt to build extensions for newly-installed gems. This prevents compilation attempts at gem activation time for gems that already have extensions built. Fix crash in the dependency resolver for dependencies that cannot be resolved. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/installer.rb')
-rw-r--r--lib/rubygems/installer.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index 2e7ccc731e..214652a241 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -346,7 +346,10 @@ class Gem::Installer
def write_spec
open spec_file, 'w' do |file|
+ spec.installed_by_version = Gem.rubygems_version
+
file.puts spec.to_ruby_for_cache
+
file.fsync rescue nil # for filesystems without fsync(2)
end
end