lib/gemsmith/templates/%gem_name%/bin/%gem_name%.tt in gemsmith-6.2.0 vs lib/gemsmith/templates/%gem_name%/bin/%gem_name%.tt in gemsmith-7.0.0

- old
+ new

@@ -1,8 +1,9 @@ -#!/usr/bin/ruby +#! /usr/bin/ruby +# frozen_string_literal: true -require "<%= config.fetch(:gem).fetch(:name) %>" -require "<%= config.fetch(:gem).fetch(:name) %>/cli" -require "<%= config.fetch(:gem).fetch(:name) %>/identity" +require "<%= config.dig(:gem, :name) %>" +require "<%= config.dig(:gem, :name) %>/cli" +require "<%= config.dig(:gem, :name) %>/identity" -Process.setproctitle <%= config.fetch(:gem).fetch(:class) %>::Identity.version_label -<%= config.fetch(:gem).fetch(:class) %>::CLI.start +Process.setproctitle <%= config.dig(:gem, :class) %>::Identity.version_label +<%= config.dig(:gem, :class) %>::CLI.start