diff --git a/lib/bashly/concerns/renderable.rb b/lib/bashly/concerns/renderable.rb index 9a56cb78..11cb67ce 100644 --- a/lib/bashly/concerns/renderable.rb +++ b/lib/bashly/concerns/renderable.rb @@ -4,6 +4,9 @@ module Bashly module Renderable def render(view) template = File.read view_path(view) + # TODO: This new format is only supported in Ruby >= 2.6 + # So for now, we keep the old deprecated syntax + # ERB.new(template, trim_mode: '%-').result(binding) ERB.new(template, nil, '%-').result(binding) end diff --git a/lib/bashly/models/command.rb b/lib/bashly/models/command.rb index 6056d212..0f9483bc 100644 --- a/lib/bashly/models/command.rb +++ b/lib/bashly/models/command.rb @@ -38,7 +38,7 @@ def commands return [] unless options["commands"] options["commands"].map do |options| options['parents'] = parents + [name] - command = Command.new options + Command.new options end end