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
Hey @cheezy , I noticed today that loading via ENV does not support ERB. When you use FigNewton.load, the YAML is handled by your yml_reader gem which does ERB interpolation. When you use ENV['FIG_NEWTON_FILE'], FigNewton loads the yaml within itself and that method has no ERB interpolation.
I would suggest that FigNewton always call the yml_reader .load method to ensure parity regardless of entry point. yml_reader is included as a dependancy on FigNewton so this should be a quick win.
# ERB processedFigNewton.load('data.yml')
# Non ERB processedENV['FIG_NEWTON_FILE']='data.yml'
The text was updated successfully, but these errors were encountered:
Hey @cheezy , I noticed today that loading via ENV does not support ERB. When you use FigNewton.load, the YAML is handled by your yml_reader gem which does ERB interpolation. When you use ENV['FIG_NEWTON_FILE'], FigNewton loads the yaml within itself and that method has no ERB interpolation.
I would suggest that FigNewton always call the yml_reader .load method to ensure parity regardless of entry point. yml_reader is included as a dependancy on FigNewton so this should be a quick win.
The text was updated successfully, but these errors were encountered: