You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix __FILE__ and __dir__ in primary Gemfiles (#193)
Gemfile classes call instance_eval without telling Ruby what file the string
came from, and so Ruby thinks that FILE should point to
`appraisal/lib/appraisal/gemfile.rb` instead of the Gemfile itself, and that breaks
anything inside the Gemfile that references either __FILE__ or __dir__.
This fixes the case where `ruby Pathname.new(__dir__).join(".ruby-version").read`
is used in the original `Gemfile` across Appraisals.
0 commit comments