79576888

Date: 2025-04-16 10:02:15
Score: 0.5
Natty:
Report link

Directory/path management in ruby is very clunky due to historical reasons.

I've found success in using File.expand_path to expand the full path correctly relative to the current directory __dir__ (/Users/you/ProjectRoot/fastlane/)

File.read(File.expand_path("./shared_metadata/release_notes.txt", __dir__))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: aclima