/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb is in rubygems-integration 1.8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | unless ENV['DEBIAN_DISABLE_RUBYGEMS_INTEGRATION']
class << Gem
OPERATING_SYSTEM_DEFAULTS = {
:ssl_ca_cert => '/etc/ssl/certs/ca-certificates.crt'
}
alias :upstream_default_dir :default_dir
def default_dir
File.join('/', 'var', 'lib', 'gems', Gem::ConfigMap[:ruby_version])
end
alias :upstream_default_bindir :default_bindir
def default_bindir
File.join('/', 'usr', 'local', 'bin')
end
alias :upstream_default_path :default_path
def default_path
extra_path = nil
if RbConfig::CONFIG['ruby_version'] == '2.1.0'
extra_path = File.join('/usr/share/rubygems-integration', '2.1')
end
upstream_default_path + [
File.join('/usr/share/rubygems-integration', Gem::ConfigMap[:ruby_version]),
extra_path,
'/usr/share/rubygems-integration/all'
].compact
end
end
if RUBY_VERSION >= '2.0' then
class << Gem::Specification
alias :upstream_default_specifications_dir :default_specifications_dir
def default_specifications_dir
File.join(Gem.upstream_default_dir, "specifications", "default")
end
end
end
end
|