Skip to content

Commit

Permalink
Merge pull request #355 from interagent/bf/ruby-updates
Browse files Browse the repository at this point in the history
update supported rubies
  • Loading branch information
beanieboi authored Oct 9, 2023
2 parents 8f25423 + e1b30e8 commit b66e3ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.5', '2.6', '2.7', '3.0']
ruby-version: ['3.0', '3.1', '3.2']
activesupport-version: ['5', '6']
sinatra-version: ['1', '2']
env:
Expand Down
2 changes: 1 addition & 1 deletion lib/pliny/commands/creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def parse_erb_files
Dir.glob("#{app_dir}/{*,.*}.erb").each do |file|
static_file = file.gsub(/\.erb$/, '')

template = ERB.new(File.read(file), 0)
template = ERB.new(File.read(file))
context = OpenStruct.new(app_name: name)
content = template.result(context.instance_eval { binding })

Expand Down
2 changes: 1 addition & 1 deletion lib/pliny/commands/generator/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def display(msg)

def render_template(template_file, vars = {})
template_path = File.dirname(__FILE__) + "/../../templates/#{template_file}"
template = ERB.new(File.read(template_path), 0, '>')
template = ERB.new(File.read(template_path), trim_mode: '>')
context = OpenStruct.new(vars)
template.result(context.instance_eval { binding })
end
Expand Down

0 comments on commit b66e3ae

Please sign in to comment.