lib/pa.rb in pa-1.2.2 vs lib/pa.rb in pa-1.2.3

- old
+ new

@@ -215,10 +215,10 @@ # @option o [String] base_dir # @param [String, #path] path def initialize(path, o={}) @path2 = Pa.get(path) # convert ~ to ENV["HOME"] - @path2.sub!(/^~/, ENV["HOME"]) if @path2 # nil + @path2.sub!(/^~/, ENV["HOME"].to_s) if @path2 # nil @options = o @rel = o[:rel] || "" @base_dir = o[:base_dir]