Initialize all load paths in operating_system.rb
This commit is contained in:
parent
2d95badf6a
commit
e7f3c86e5a
2 changed files with 7 additions and 2 deletions
|
|
@ -46,8 +46,10 @@ module Gem
|
|||
RbConfig::CONFIG['libdir']
|
||||
end
|
||||
|
||||
@default_dirs ||= Hash.new do |hash, key|
|
||||
hash[key] = if path = default_locations[key]
|
||||
@default_dirs ||= default_locations.inject(Hash.new) do |hash, location|
|
||||
destination, path = location
|
||||
|
||||
hash[destination] = if path
|
||||
{
|
||||
:bin_dir => File.join(path, RbConfig::CONFIG['bindir'].split(File::SEPARATOR).last),
|
||||
:gem_dir => File.join(path, RbConfig::CONFIG['datadir'].split(File::SEPARATOR).last, 'gems'),
|
||||
|
|
@ -60,6 +62,8 @@ module Gem
|
|||
:ext_dir => ''
|
||||
}
|
||||
end
|
||||
|
||||
hash
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -897,6 +897,7 @@ make check TESTS="-v $DISABLE_TESTS"
|
|||
%changelog
|
||||
* Tue Feb 03 2015 Vít Ondruch <vondruch@redhat.com> - 2.3.0-0.5.r49485
|
||||
- Upgrade to Ruby 2.3.0 (r49485).
|
||||
- Initialize all load paths in operating_system.rb.
|
||||
|
||||
* Tue Feb 03 2015 Vít Ondruch <vondruch@redhat.com> - 2.2.0-5
|
||||
- Make operating_system.rb more robust.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue