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

Version Path
gemsmith-15.5.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-15.4.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-15.3.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-15.2.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-15.1.1 lib/gemsmith/generators/bundler_audit.rb
gemsmith-15.1.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-15.0.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-14.11.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-14.10.1 lib/gemsmith/generators/bundler_audit.rb
gemsmith-14.10.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-14.9.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-14.8.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-14.7.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-14.6.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-14.5.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-14.4.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-14.3.0 lib/gemsmith/generators/bundler_audit.rb