Sha256: 35e309418447a36c011f1a0595eae303647fdfadb1440c63bfc9fc3cb93d4783
Contents?: true
Size: 393 Bytes
Versions: 17
Compression:
Stored size: 393 Bytes
Contents
# frozen_string_literal: true module Gemsmith module Generators # Generates Bundler Audit support. class BundlerAudit < Base def run return if configuration.dig :generate, :bundler_audit cli.gsub_file "#{gem_name}/Rakefile", %r(require.+bundler/audit.+\n), "" cli.gsub_file "#{gem_name}/Rakefile", /Bundler::Audit.+\n/, "" end end end end
Version data entries
17 entries across 17 versions & 1 rubygems