Skip to content

Commit af6b8a7

Browse files
authored
Resolve ruby warnings (#45)
1 parent d98d749 commit af6b8a7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/bashly/concerns/renderable.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ module Bashly
44
module Renderable
55
def render(view)
66
template = File.read view_path(view)
7+
# TODO: This new format is only supported in Ruby >= 2.6
8+
# So for now, we keep the old deprecated syntax
9+
# ERB.new(template, trim_mode: '%-').result(binding)
710
ERB.new(template, nil, '%-').result(binding)
811
end
912

lib/bashly/models/command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def commands
3838
return [] unless options["commands"]
3939
options["commands"].map do |options|
4040
options['parents'] = parents + [name]
41-
command = Command.new options
41+
Command.new options
4242
end
4343
end
4444

0 commit comments

Comments
 (0)