Rakefile in rubocop-minitest-0.15.2 vs Rakefile in rubocop-minitest-0.16.0

- old
+ new

@@ -1,7 +1,9 @@ # frozen_string_literal: true +task release: 'changelog:check_clean' # Before task is required + require 'bundler' require 'bundler/gem_tasks' Dir['tasks/**/*.rake'].each { |t| load t } @@ -40,13 +42,10 @@ cop_name = args.fetch(:cop) do warn 'usage: bundle exec rake new_cop[Department/Name]' exit! end - github_user = `git config github.user`.chop - github_user = 'your_id' if github_user.empty? - - generator = RuboCop::Cop::Generator.new(cop_name, github_user) + generator = RuboCop::Cop::Generator.new(cop_name) generator.write_source generator.write_test generator.inject_require(root_file_path: 'lib/rubocop/cop/minitest_cops.rb') generator.inject_config(config_file_path: 'config/default.yml', version_added: bump_minor_version)