Skip to content

Commit

Permalink
Merge pull request #101 from paulslaby/master
Browse files Browse the repository at this point in the history
Fix relative_path_from error with old ruby 2.5.x
  • Loading branch information
mgrachev committed Apr 25, 2024
2 parents db2afaf + ca48152 commit 708a61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdjson_formatter/rdjson_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def convert_path(path)
base_path = Dir.pwd

begin
Pathname.new(File.expand_path(path)).relative_path_from(base_path).to_s
Pathname.new(File.expand_path(path)).relative_path_from(Pathname.new(base_path)).to_s
rescue ArgumentError
path
end
Expand Down

0 comments on commit 708a61f

Please sign in to comment.