lib/gemsmith/skeletons/rubocop_skeleton.rb in gemsmith-5.6.0 vs lib/gemsmith/skeletons/rubocop_skeleton.rb in gemsmith-6.0.0

- old
+ new

@@ -1,17 +1,13 @@ module Gemsmith module Skeletons # Configures Rubocop support. class RubocopSkeleton < BaseSkeleton - def enabled? - cli.template_options.key?(:rubocop) && cli.template_options[:rubocop] - end - def create - return unless enabled? + return unless configuration.create_rubocop? - cli.template "%gem_name%/.rubocop.yml.tt", cli.template_options - cli.template "%gem_name%/lib/%gem_name%/tasks/rubocop.rake.tt", cli.template_options + cli.template "%gem_name%/.rubocop.yml.tt", configuration.to_h + cli.template "%gem_name%/lib/tasks/rubocop.rake.tt", configuration.to_h end end end end