diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-02-17 22:20:47 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-02-23 15:42:55 -0600 |
commit | 700aabb26dc04587c3d90d26b913bd70cb7c2f63 (patch) | |
tree | a6c0076e1bfc8800ca666ab27cbbe23a3f552ad7 /lib/bundler/source | |
parent | cb6e8891c6320210861dfc106b4adb80368def1a (diff) | |
download | bundler-700aabb26dc04587c3d90d26b913bd70cb7c2f63.tar.gz |
[Path] Set spec installed_by_version so RubyGems will know it has an extensions dir
Diffstat (limited to 'lib/bundler/source')
-rw-r--r-- | lib/bundler/source/path.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb index 0bb5f1b8..0e00837b 100644 --- a/lib/bundler/source/path.rb +++ b/lib/bundler/source/path.rb @@ -137,6 +137,7 @@ module Bundler Dir["#{expanded_path}/#{@glob}"].sort_by {|p| -p.split(File::SEPARATOR).size }.each do |file| next unless spec = Bundler.load_gemspec(file) spec.source = self + spec.installed_by_version = Gem::Version.create(Gem::VERSION) # Validation causes extension_dir to be calculated, which depends # on #source, so we validate here instead of load_gemspec Bundler.rubygems.validate(spec) |