Sha256: 3c2c79205e59ccdaf43b038e3982360a775039d7a901f0fc0cedb66dfd42354f
Contents?: true
Size: 443 Bytes
Versions: 26
Compression:
Stored size: 443 Bytes
Contents
if RUBY_VERSION < '1.9' require 'backports/tools' class << File def expand_path_with_potential_to_path(file, dir = nil) raise ArgumentError, 'home not set' if file == '~' && ENV["HOME"] == '' expand_path_without_potential_to_path( Backports.convert_path(file), dir == nil ? dir : Backports.convert_path(dir) ) end Backports.alias_method_chain self, :expand_path, :potential_to_path end end
Version data entries
26 entries across 26 versions & 2 rubygems